Skip to content

This Project is an API for role based Authentication in node JS

Notifications You must be signed in to change notification settings

sumitx28/NodeJS_RoleBased_Auth

 
 

Repository files navigation

Getting Started with the Project

Prerequisites

Ensure you have Docker Desktop installed.

Configuration

Key variables which are used in the startup of the app. They are pre-configured for initial use, can be adjusted to tailor the app's startup settings.

  • APP_DB: MongoDB URI
  • PORT: Preset to 3000 for backend
  • SECRET: JWT SECRET TOKEN

Refer to docker-compose.yaml

Starting the Application

Running All Services with latest build

To start the application containers with the latest build:

docker-compose -f docker-compose.yaml up -d --build

Running All Services

To start both the backend and MongoDB database services as defined in the docker-compose.yaml file:

docker-compose -f docker-compose.yaml up -d

Running only a Database (MongoDB)

To start only the MongoDB database as defined in the docker-compose.yaml file:

docker-compose -f docker-compose.yaml up -d mongodb

Additional Docker Commands

Rebuild containers after changes

docker-compose -f docker-compose.yaml build

Stopping Services

To stop all running containers:

docker-compose -f docker-compose.yaml down

Remove all volumes (including database data):

docker-compose -f docker-compose.yaml down -v

About

This Project is an API for role based Authentication in node JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 99.4%
  • Other 0.6%