A REST API With Node.js, Express, & MongoDB
npm init
dependencies
npm i express mongoose
dev dependencies
npm i --save-dev dotenv nodemon
npm run devStart
- mongodb instructions here
- `"C:\Program Files\MongoDB\Server\4.4\bin\mongo.exe" with admin privilage on windows
use subscribers
tip: The db is created but won't show unless you put something in it.
- If you are using VSCode,like me, Get the REST Client extension.
- Make a new route.rest or route.http file inside
routes
folder. - Add
GET http://loalhost:3000/subscribers
to get rest send request option generated by the extension.