Install MongoDB locally – source

Start mongoDB server:

mongod --dbpath <path to data directory

Do’t forget to manually stop it with ctrl+c

This whole process seems a bit manual, is there an automatic way to do all of this and not have to manually specify dbpath every time I want to start the server?


  • mongod
  • mongo
  • help
  • show dbs
  • use
  • insert
  • find
  • update
  • remove

C – create
R – read
U – update
D – destroy/delete

Mongoose – is for mongodb what jQuery is for working with JS and the DOM.

Thing are getting quite difficult to understand 😕