Let's build an application with a database to track our hobbies. The front-end React is provided so that we can focus on the back-end Express.
Investigate the provided files - React client and Express server
- How does the front-end React expect to interact with the data?
Set up the back-end server of the application so that we can view all of our hobbies (index page)
A Hobby should have:
- Name (required)
- Description (optional)
Remember that the back end consists of:
- Knex Migrations
- Objection Models
- Express Routers
Insert some Hobby records in the database through the server yarn console
The React front-end has a form to allow users to add a new hobby. Build the back end needed to persist the data submitted via the form
- Validations (bonus)