Express Practice

Part 1 - Server

src/index.js

  • This is the starting point of the server, put all code here

Body

Create express routes to get all things

Create express routes to get one thing

Create express routes to create one thing

Part 2 - Routes

Part 3 - Controllers

Part 4 - Database

Part 5 - Client

Redux

Reducers

  • create 4 more reducers for the state: vehicle, product, comment, contact

Actions

  • Create actions in actions/index.js
  • Create actions to do to a fetch call to one item. When complete, dispatch to the done action.
  • Create actions to handle the data

Components

Containers

React Router

Link

Points

  • Base - 10pts
  • Data shows in the page for the Lists - 5pts each (20pts)
  • Creating data works - 10pts each (40pts)
  • Can view one item at a time by id - 30pts