A simple REST API that shows how to use bull as a job priority queue
You must have
-
Node.js (v8.12.0 or higher) and npm (6.4.1 or higher) installed on your local machine. Run
node -v
andnpm -v
in your terminal to confirm that you have them installed -
GIT bash
To get started, clone this repository on your local machine using the following steps:
Open your terminal and navigate to the folder you want the project to be and enter the the following commands:
$ git clone https://github.com/Aeeiee-Team/Nodejs-Express-Bull.git
$ cd Nodejs-Express-Bull
$ npm install
Create a .env
file and add the environment variables described in the .env.sample file. Below are the relevant environment variables worth adding:
DATA_DB
- Connection string for monogodb database (development environment).SENDGRID_API_KEY
- Sendgrid API key for sending reset password email notification.SENDERS_EMAIL
- Email that has gone through the single sender verification and will show as the sender's emailTWILIO_ACCOUNT_SID
- Twilio account SID for messagingTWILIO_AUTH_TOKEN
- Twilio account auth token for messagingMESSAGING
- Twilio assigned number for messaging
You'll need to register on the sendgrid platform to get an API key. You'll also need to go to settings and fufil the single sender verification requirement with the senders email.