Skip to content

Latest commit

 

History

History
18 lines (10 loc) · 753 Bytes

readme.md

File metadata and controls

18 lines (10 loc) · 753 Bytes

Kottans-stats REST API

Backend for Kottans Statistics SPA app

Written with node.js, express, mongoDb.

Deployed and live now on HEROKU and MLAB.

commands to start locally

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>