Node.js REST API with:
- JWT Authentication ( jsonwebtoken )
- Mail Service ( nodemailer )
- Queue jobs ( kue, Redis)
- Validation ( joi )
- MongoDB ( mongoose )
- Error reporting (dev-mode) ( youch )
- Error tracking (production-mode) ( sentry )
- Clone the repository.
- You will need Mongo installed in your machine or a docker container (
mongo
image recommended). - You will need Redis installed in your machine or a docker container (
redis:alpine
image recommended). - Setup the environment variables (dotenv). Rename file
.env-example
to just.env
and fill in the variables. *Remember to changeNODE_ENV
toproduction
if you host it online. *You will need a sentry.io account for Error tracking. - In root folder run
npm install
. - In root folder run
npm start
.