1.0.1 • Published 3 years ago

perfecto-ai-reports v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Pre-requisite:

Install npm, mongo db

Steps to setup:

  1. Run the below command at base folder:

npm install

  1. Setup .env variables with the below keys:
HOST=http://localhost
PORT=80
MONGO_URL=mongodb://127.0.0.1:27017/perfecto
cloudName=<<CLOUDNAME>>
securityToken<<TOKEN>>dbName=ps
jobFilter=Sample
jobContainsCountryName=true
GCNA<<JOB NAMES with comma seperator>>
ASA<<JOB NAMES with comma seperator>>
AME<<JOB NAMES with comma seperator>>
AMERICAS<<JOB NAMES with comma seperator>>
#https://crontab.guru/every-5-minutes
REPORT_CRONTASK='*/5 * * * *'
REPORT_STARTBEFORE_IN_DAYS=5
REPORT_DELETEBEFORE_IN_DAYS=30
SESSION_SECRET=GFOIHTLBSSLNDU 
  1. Run the below command to bring up the server: npm run prod

  2. Run the below command to generate emailable file: npm run email

Jenkins

Just install the nodeJS plugin for jenkins.

After installing the plugin, restart jenkins, and go to the global configuration to automatically install node js

Enable: Provide Node & npm bin/ folder to PATH in Job configuration.