Skip to content

Latest commit

 

History

History
28 lines (17 loc) · 731 Bytes

README.md

File metadata and controls

28 lines (17 loc) · 731 Bytes

RestMen

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

  • 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.

How to test REST?

  • If you are using VSCode,like me, Get the REST Client extension.
  • Make a new route.rest or route.http file inside routesfolder.
  • Add GET http://loalhost:3000/subscribers to get rest send request option generated by the extension.