Backend for Kottans Statistics SPA app
Written with node.js, express, mongoDb.
Deployed and live now on HEROKU and MLAB.
Start mongo: mongod --dbpath C:/projects/mongodb-data/db
or npm run mongo-local
Start server: npm run start
dump db collection as json: mongoexport --host=127.0.0.1 --port 27017 --db Tododb --collection tasks --out ./dataset.json
dump whole db with BSON: mongodump --db Tododb --out ./dump
restore db from local by bson (needed mongo shell v.4+): mongorestore --uri mongodb+srv://<dblogin>:<passwordOfDb>@<dbNameonCloud>.c6hyj.mongodb.net --db <dbNameonCloud> /dump/<dbnameonlocalhost>