- Node JS: 14.17.0
- TypeScript: 4.3.2
- Express: 4.17.1
- amqplib
- Axios
- Knex.js
- ioredis
- Node Cron (cron)
- Node MySQL 2 (mysql2)
- rimraf
- TSyringe
- Create .env file in the root folder using .env.sample as an example and replace the content with your project configs/secrets.
- Install development dependencies:
npm install
- View documentation
- Start application:
npm run dev
- Application will run at
localhost:3000
npm run lint
npm run test:unit
- Dev (TS):
npm run cli-dev <option> <arg>
- PRD (JS):
npm run cli <option> <arg>
Description | Command | Short |
---|---|---|
Help | --help |
-h |
List jobs | --list-jobs |
-lj |
Run job | --run-job <jobname> |
-rj <jobname> |
Ex:
- npm run cli --run-job "List Users Job"
- npm run cli -rj "listusersjob"
- npm run cli-dev -lj
- npm run cli-dev --help