Clone this project, and cd
into the project directory.
# in a separate tab, run the db process so it's always on
mongod
# in a separate tab, run the express server so it's always on
node server.js
# or
nodemon server.js
# seed the database with bicycles
node seed.js
# launch the home page in your browser
open http://localhost:3000/
Finally, we recommend you use Postman to simulate API requests. Make sure that you select x-www-form-urlencoded
when you post
content to the bicycle#create
endpoint (see body-parser).
- get
/
-- bicycle index
get
/api/bicycles
- bicycle#indexget
/api/bicycles/:id
- bicycle#showpost
/api/bicycles
- bicycle#createput
/api/bicycles/:id
- bicycle#updatedelete
/api/bicycles/:id
- bicycle#destroy