- brew update
- brew install mongodb
- mkdir -p /data/db
- sudo chown -R `id -un` /data/db
- Enter your password on prompt
- Run
mongod
on one terminal (always) - Run
mongo
on another one if you want mongo shell
- From the project folder go to /server/db/
- Run the following command:
mongoimport --db twoodle --collection boards --drop --jsonArray --file seed.json
- Run
npm start
in the root directory - Run
node server.js
in /server directory - Run
mongod