to start using server you have to start mongodb at first Run mongod --dbpath ~/data/db then run node server.js or nodemon server.js if you want to enable hotreloading