This project uses Redis to do background jobs on Node.js within separate threads.
- Node.js
- NPM
- Redis
- Clone this repository
- Go to the folder:
cd ./background-jobs
- Install the dependencies:
npm install
- Duplicate the
.env.example
file and rename as.env
file with yours email and Redis credentials - Run
npm run start
to start the full featured local server. - Or Run
npm run app
andnpm run queue
to launch the app and the queue service.
This project is under MIT license.
Thanks to Roberto Souza that have made a tutorial in DIO explaining how the concepts of background jobs works with Node.js and Redis.