docker-compose up --remove-orphans -d --scale consumer=5
docker run -it --rm --name rabbitmq -p 5672:5672 -p 15672:15672 rabbitmq:3.9-management
curl -X POST localhost:3000/login -H 'Content-Type: application/json' -d '{"username":"user","password":"my_password"}'
curl localhost:3000/send-msg'
curl -X POST localhost:3000/tasks -H 'Content-Type: application/json' -d '{"msg":"wait 3s....."}'
Installs all the dependencies
Deletes the generated dist
folder.
Cleans the dist
folder first and then generates all the files.
Cleans, generates and then starts using node dist/index.js
command
Runs the program using ts-node src
, ie, it does not require to generate all the dist
files
Runs in watch mode using nodemon
. Helpful for rapid development and testing.
Checks esLinter using google/gts
library.
Fixes linter errors using google/gts
library.
It first cleans dist
, generates dist
as part of pretest
, and then runs test
.
After finishing running, it checks lint as posttest
.