Tips and Tricks in a world of Mix

Posts tagged ‘mongodb’


Activate MongoDB from one bat file

  • Put this code in your bat file
  • It’ll start and activate the mongodb in 2 different admin privileged cmd windows.
  • Please check the paths before to adjust to your environment.

START “runas /user:administrator” cmd /K “cd C:\Program Files\MongoDB\Server\3.4\bin & mongod.exe –dbpath c:\data\db”


START “runas /user:administrator” cmd /K “cd C:\Program Files\MongoDB\Server\3.4\bin & mongo.exe “


Mean Stack – message board with authentication demo with Angular2

Heroku Demo online


Download Demo at – Github repository with explanations in Readme


Seeder of all levels to work with Node.js Express with MongoDb and Angular2 – each branch different stage. Connecting Angularjs with nodejs

Demo Heroku Deployed

Demo AWS Deployed

Both use as a source for MongoDB database


Download node.js Now we can use npm – node package manager –

First Command Line run to run node.js server

npm run build  

Second Command Line to run the angular client ( views of node for now)

npm start


Download MongoDB And install

To use MongoDB after installation add packages

    Ø npm install --save mongoose
    Ø npm install mongoose-unique-validator   (--this one is for unique fields)

For running MongoDB server for me it worked specificly with –dbpath “e:\data\db” only

cd E:\MongoDB\Server\3.2\bin
E:\MongoDB\Server\3.2\bin>mongod.exe --dbpath "e:\data\db"

More there – Github repository with explanations in Readme




The project based on this course


Tag Cloud

%d bloggers like this: