View Code? Open in Web Editor
NEW
nodejs server for itsalmost clone
JavaScript 97.86%
Shell 2.14%
itsalmost-clone-server's Introduction
itsalmost-clone-server's People
Stargazers
Watchers
itsalmost-clone-server's Issues
install express, create express server in index.js
, server should listen to port 5000
in development
nodemon is installed as a dev dependency, make a script called dev
that runs index.js
with nodemon
Parse incoming request body (json) and create an event that gets saved in the database
Fetch a single event by its mongoose id, path should look something like GET /event/:id , and return single event object as json
Name and Date for the event is bare minimum required for every post document, we can add more properties later on as we add other features.
also connect to the database on the express app in index.js