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

attachments [paper clip]

  last modified size
TXT classroom_page_screenshot.png Tue Oct 15 2024 06:53 am 145K
TXT student-data-tracker-master.zip Tue Oct 15 2024 06:53 am 254K