MongoDB Setup
Set up MongoDB version 3.4Â
Download & Installation instructions
Configure MongoDB. Follow these steps:
Mongo Version to use 3.4.x
Go to the bin directory of your MongoDBÂ installationÂ
Run the following command to start MongoDB. Make sure that the data directory pre-exists at the target location:
mongod --dbpath < path to the data directory>Â
for e.gÂ/usr/bin/mongodb-linux-x86_64-2.6.3/bin/mongod --dbpath /dev/data/db
orÂ
e.g mongod -dbpath="D:/Software/MongoDB/data"Download MongoDB clients (RoboMongo etc.) to connect to your local database. Make sure that database: dashboard is created, and you are able to connect to it.
Configuring MongoDBÂ
a.) Create database in the local DB:Â kpidashboard via the client, if not already present.Â
b.) Download and execute below scripts to set up master data, Scripts are available here.
kpi_master_insert.js
filter_category_insert.js
kanban_filter_category_insert.js
global_config_insert.js
enggmaturity_kpi.js
enggmaturity_kpi_category.js
enggmaturity_kpi_category_weightage.js
enggmaturity_kpi_maturity_definition.js
enggmaturity_kpi_questionnaire.js
superadmin_setup.js
create_resources.js
create_permissions.js
create_roles.js
Below command can be used to execute the script:
mongo localhost:27017/kpidashboard--username=<user-name> --password=<password> < <path to script>
P.S. : No username and password is required for the local setup, unless manually setup.
© 2022 Publicis Sapient. All rights reserved.