Skip to content

fast answers API with 2 node process (API/SERVCES) managed by PM2 IPC for quick API answers on post requests.

Notifications You must be signed in to change notification settings

ajkula/fast-tasks

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fast Tasks

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

Env variables management

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.

swagger-ui API Doc

About

fast answers API with 2 node process (API/SERVCES) managed by PM2 IPC for quick API answers on post requests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published