A progressive Node.js framework for building efficient and scalable server-side applications.
Nest application for practicing queueing with Bull and Redis.
$ npm install
or
$ yarn install
$ docker-compose up
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
# .env
PG_USER
PG_PASSWORD
PG_HOST
PG_PORT
PG_DATABASE
# GET
http://localhost:3000/
# Gets hello world
# GET
http://localhost:3000/invoke-msg?msg=Hello World
# Invokes a message to be queued
# GET
http://localhost:3000/cron-job
# Gets all cron jobs
# POST
http://localhost:3000/cron-job
@ Body
{
"name": "test",
"cron": "*/5 * * * * *",
"data": {
"msg": "Hello World"
}
}
# Creates a cron job
# PUT
http://localhost:3000/cron-job
@ Body
{
"name": "test",
"cron": "*/5 * * * * *",
"data": {
"msg": "Hello World"
}
"key": "mycronjobkey"
}
# Updates a cron job
# DELETE
http://localhost:3000/cron-job
@ Body
{
"key": "mycronjobkey"
}
# Deletes a cron job