Skip to content

Latest commit

 

History

History
93 lines (53 loc) · 1.47 KB

README.md

File metadata and controls

93 lines (53 loc) · 1.47 KB

Tasks in background with Redis

Project built during the course of Background Tasks using Node.js and Redis by DIO

Environment variables

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

Installation

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

API documentation

Create User

  POST /users
Body Type Description
name string User name for account creation
email string User mail for account creation

Learnings

What did you learn building this project?

Create queues using redis in a simple welcome email sending process.

Authors

Stack used

Back-end: Node, Express, Javascript, NodeMailer, Bull, Monitoro