Initial directory setup
- Create directory called todo
mkdir todo
- Clone rails backend project inside todo directory
https://github.com/mjesar/Rails-6-Todo-API
- Clone react todo web app in same directory
https://github.com/mjesar/Todo-React-webapp
Running projects
Now assuming you are in todo-lab directory
- Install gems in backend
bundle install
- setup database
rails db:migrate
- Run backend
rails s
- then run frontend app so it will choose its port 3001
npm install
-
Now open local app (http://localhost:3000) for backend
and for frontend (http://localhost:3001)
-
To run all rspec tests
bundle exec rspec .