Skip to content

Nodejs + Postgresql + Redis Bull + Jwt + Swagger + Cloudinary +Sequelize

Notifications You must be signed in to change notification settings

danudenny/nodejs-boilerplate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NodeJS Express Boilerplate

NodeJS Express Rest API Boilerplate / Ready To Use.

example

Tech Stack :

Feature

  • Login with JWT Authentication
  • Signup with email notification
  • Guard API with JWT Auth Guard
  • Upload Image / File to Cloudinary
  • Use Redis Bull for Queue Job
  • Sequelize Migration
  • Use Pino for Logging

How To Install

  1. Clone This Repo
git clone https://github.com/danudenny/nodejs-boilerplate
  1. Install Package
# NPM
npm install

# Yarn
yarn install
  1. Copy .env.example to .env
  2. Populate .env
  • App dan Database
PORT = 3000
DEV_DATABASE_URL = postgres://<db_user>:<db_password>@127.0.0.`:5432/<db_name>
DATABASE_URL = postgres://<db_user>:<db_password>@127.0.0.1:5432/<db_name>
NODE_ENV = development
  • Mail
ADMIN_EMAIL = email@email.com
MAIL_USERNAME = username
MAIL_PASSWORD = password
MAIL_HOST = smtp.mailtrap.io
MAIL_PORT = 2525
  • JWT
JWT_SECRET = <jsonwebtokensecret>
  • Cloudinary
CLOUD_NAME= <cloudynaryname>
API_KEY= <cloudynaryAPIKey>
API_SECRET= <cloudynaryAPISecret>
  1. Set Environment Development database/config/config.js
  2. Start The API yarn start or yarn start:dev

Postman Documentation

Link Postman Documentation

About

Nodejs + Postgresql + Redis Bull + Jwt + Swagger + Cloudinary +Sequelize

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published