Skip to content

Latest commit

 

History

History
22 lines (19 loc) · 607 Bytes

README.md

File metadata and controls

22 lines (19 loc) · 607 Bytes

Commands

  • npm init
  • npm install --save express mongoose morgan body-parser
  • node index.js // run server
  • npm install --save nodemon
  • npm install --save bcrypt-nodejs
  • npm install --save bcrypt-nodejs
  • npm install --save passport passport-jwt
  • npm install --save passport-local
  • npm install --save cors

Run it (requires mongo to be started as well)

  • mongod
  • npm run dev // after setting up dev script in package.json which then runs nodemon instead

MongoDB

  • brew install mongodb
  • sudo mkdir -p /data/db
  • sudo chown -R $USER /data/db
  • mongod // run mongo

Robo 3T (mongodb viewer)