A fast answering API that passes payloads to a second process through IPC and answers [STATUS, [MESSAGE]] very quickly.
Usage: yarn start will start the two PM2 managed processes API and SERVICES. pm2 logs will let you watch the feed from pm2. to stop precisely this app's processes: - pm2 stop API - pm2 stop Service pm2 list will list all active processes pm2 stop all will stop all active process
Add a .env file in the root of the project with all needed env Vars as: - PG_HOST=yourhost - PG_USER=youruser - PG_PASSWORD=yourDBpassword - PG_DATABASE=yourDBname - PG_PORT=5432 - SECRET_KEY=yourSecretKey
Add a .env.test file in the root of the project: - PG_PASSWORD=yourDBpassword - SECRET_KEY=hgz-yourSecretKey - NODE_ENV=test
You'll need to post /signin :
{
username: yourUserName,
pass: yourPassword
}
Get the token to your Authorization headers for all tasks routes.