artiscommon
v1.1.2
Published
artis signal common services
Downloads
3
Readme
Artis Signal Common Project
Prerequisite (Development)
| Module | Version | | --- | --- | | Node | 12.16.0 | | Npm | 6.13.0 | | Mongodb | 4.0.2 |
Running Project In Local
$ git clone -b <branchName> <gitUrl> <projectName>
$ cd configs
$ mv configSample.js configs.js
$ vi configs.js (need to change environment)
$ npm install
$ node server.js
Code Quality Check
Download Java Version 11
Download SonarQuebe from https://www.sonarqube.org/downloads/
Please add below line at end of the file soanrqube-7.9.1 > conf > sonar.properties #sonar.host.url=http://localhost:9000
Install sonarqube-scanner from https://www.npmjs.com/package/sonarqube-scanner
Follow Steps given in this link https://yuriburger.net/2017/09/27/getting-started-with-sonarqube-and-typescript/ Except Rules
Command to start sonarquebe serving on localhost:9000 $ sonarqube-7.9.1/bin/macosx-universal-64/sonar.sh start
Start analysis of project with following command $ sonar-scanner
Deployment In Staging Server
$ git clone -b <branchName> <gitUrl> <projectName>
$ cd configs
$ mv configSample.js configs.js
$ vi configs.js (need to change environment)
$ cd ../..
$ sh package.sh
Start Server Using pm2
$ pm2 start server.js --name="<instance_name>" (for creating)
$ pm2 restart <instance_id> or <instance_name>
$ pm2 delete <instance_id> or <instance_name>
$ pm2 logs <instance_id> or <instance_id> (to check logs or errors)
$ pm2 logs <instance_id> --lines=100 (to check particular lines of previous logs)