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 Fri Apr 26 2024 01:01 pm 145K
TXT student-data-tracker-master.zip Fri Apr 26 2024 01:01 pm 254K