MongoDB
 sql >> Database >  >> NoSQL >> MongoDB

Modo corretto per avviare mongodb ed express?

start crea un nuovo cmd in Windows, ecco la mia configurazione:

"scripts": {
  "prestart": "start mongod --config ./data/mongod.cfg",
  "start": "node ./server/bin/www",
  "poststart": "start mongo admin --eval \"db.getSiblingDB('admin').shutdownServer()\"",
  "pretest": "start mongod --dbpath data",
  "test": "mocha test",
  "posttest": "start mongo admin --eval \"db.getSiblingDB('admin').shutdownServer()\""
},

Buona fortuna!