IoT-Rex
A Ruby on Rails API & React project
Starting the rails server:
rails s
http://localhost:3000/
Starting the react app:
cd client && yarn start
http://localhost:3001/
Building the react app:
yarn build
Some other helpful commands:
- bundle update
- rake db:migrate
- rake db:rollback
- rails s
- rails c
- dropdb iot-rex_development
- heroku pg:pull iot-rex_development --app iot-rex
- heroku pg:reset --app iot-rex-stage --confirm iot-rex-stage
- heroku pg:push iot-rex_development --app iot-rex-stage
- git push heroku master
- heroku logs --tail
- heroku run rake db:migrate
- heroku run rails c
- heroku restart
Tutorials: