Dev System Setup
Software Requirement
Mongo DB (V 5.0.18)
NodeJS
Mongo Client (NoSqlBooster/Robomongo(optional))
Maven(3.2.3)
Eclipse or any IDE
Java 8
Step 1 - Get the code
Create a local folder
Clone the repo from - https://github.com/PublicisSapient/PSknowHOW.git
run the command in root folder -
mvn clean install -DskipTests -Dfindbugs.skip=true -Dpmd.skip=true -Dmaven.javadoc.skip=true
Step 2 - Setup the database
Connect MongoDB with MongoClient
Create DB user using following commonds
mongo admin --eval "db.createUser({user: '${MONGODB_ADMIN_USER}', pwd: '${MONGODB_ADMIN_PASS}', roles:[{role:'root',db:'admin'}]});
use ${kpidashboard}
db.createUser({user: '${MONGODB_APPLICATION_USER}', pwd: '${MONGODB_APPLICATION_PASS}', roles:[{role:'readWrite', db:'${kpidashboard}'}]})
Execute the scripts from root/database-scripts/installation-script using Mongo Client
Step 2 - Update the properties
Update the applicaiton.properties -
MONGODB_APPLICATION_USER and MONGODB_APPLICATION_PASS in application.properties for all occurance of
spring.data.mongodb.username =
spring.data.mongodb.password =Â
Step 2 - Run the UI
npm install -g @angular/cli (not mandatory as the npm command can itself resolve it, if it doesn't then only execute)
npm installÂ
npm start
Navigate to
http://localhost:4200/
DB Setup
Changes Needs To Be Done
 Update DB details and customAPI URL, in all the application.properties file of customapi and processor's.
customapi\src\main\resources\application-dev.propertiesÂ
processors\<Any-processor>\src\main\resources\application.properties
In case node_modules and Package-lock.json file is present in UI folder , then delete it.
(node_modules will be not there if user is cloning it first time it will be generated after “npm install “ command)
Guidance For Mac Users:
Do not run any commands with sudo.
Preferably setup the code under <Users>/<userId>/Documents folder (or within that hierarchy) to get away from any permission issues
Â
Clone repo
install software as mentioned on page
load project in your repo
mvn clean install -DskipTests -Ddockerfile.skip=true -Dmaven.javadoc.skip=true
UI install and clean - npm install
Run UI Project - npm start
Start Mongo db
Import mongo dump or run processor to create data
Change application.properties for customapi
10. Run customapi application
11. change environment.ts file and change baseUrl to - baseUrl: '//localhost:8080'
© 2022 Publicis Sapient. All rights reserved.