Project built during the course of Background Tasks using Node.js and Redis by DIO
To run this project, you will need to add the following environment variables to your .env
PORT
MAIL_HOST
MAIL_PORT
MAIL_USER
MAIL_PASS
REDIS_HOST
REDIS_PORT
Clone the project
git clone https://github.com/FransergioDev/curso-redis-dio
Enter the project directory
cd curso-redis-dio
Run the command below to install the project dependencies
npm install
Run command to upload a docker container with redis, if necessary edit the docker-compose.yml file
docker-compose up -d
Configure the .env file by modifying the name of .env.example and editing it with your informations
Run server
npm run start:dev
Run server queue
npm run queue
POST /users
Body | Type | Description |
---|---|---|
name |
string |
User name for account creation |
email |
string |
User mail for account creation |
What did you learn building this project?
Create queues using redis in a simple welcome email sending process.
Back-end: Node, Express, Javascript, NodeMailer, Bull, Monitoro