Go to the front-end
folder and run:
npm i
json-server --watch db.json
npm start
You will able to see a demo of the lab.
- Currently, tasks are fetched from the
json
server. Create aRack
server to provide tasks for thereact
app - Use the
shotgun
command to start therack
server - Create
tasks
andcategories
tables and create some seed data for them. The migrations have been created for you.category
has manytasks
task
belongs tocategory
- Your
rack
server should sendjson
responses for the following:- Show all tasks
- Create a new task
- Delete a task
NOTE: You can use postman
to test your backend. Your back-end responses might be little bit slow with only the rack server but once we start using Rails it will be much faster.