Jim's
Tutorials

Spring 2018
course
site

Nate's Work

OverView

Basic Functionality

Features to add

File Structure

Rails

React

Deploying and Troubleshooting

Deploying

{
  "name": "student-data",
  "engines": {
    "node": "6.3.1"
  },
  "scripts": {
    "build": "cd client && npm install && npm run build && cd ..",
    "deploy": "cp -a client/build/. public/",
    "postinstall": "npm run build && npm run deploy && echo 'Client built!'"
  }
}
>>> heroku buildpacks:add heroku/nodejs --index 1
heroku buildpacks:add heroku/ruby --index 2

High Level App Structure

Troubleshooting

class ApplicationController < ActionController::API
  def fallback_index_html
   render :file => 'public/index.html'
 end
end
  componentDidMount() {
    fetch(`/api/v1/classrooms`, {
      credentials: 'same-origin',
      method: 'GET',
      headers: { 'Content-Type': 'application/json' }
    })

Resources

https://cs.marlboro.college /cours /spring2018 /jims_tutorials /web_tech /project_final
last modified Sat December 21 2024 12:50 pm

attachments [paper clip]

  last modified size
TXT classroom_page_screenshot.png Sat Dec 21 2024 12:50 pm 145K
TXT student-data-tracker-master.zip Sat Dec 21 2024 12:50 pm 254K