Skip to content

This is a test project for API Authentication and Authorization built using Nodejs, Express, and MongoDB

Notifications You must be signed in to change notification settings

wysentanu/node-express-auth

Repository files navigation

NodeJS Express Auth

This project is for coding test to create an API for authentication and authorization using Express.

Configure Environment Variables

Initialize environment variables for the project.

cp .env.example .env

(Optional) when using docker, remember initialize the environment variables with the following command:

cp .docker.env.example .docker.dev.env

Install dependencies

yarn install

Run: Development Mode

Run the project in development mode with the following command:

yarn dev

OR using docker:

docker-compose --env-file .docker.dev.env -f docker-compose.dev.yml up

Test

Run test using the following command:

yarn test --coverage

API Documentation can be accessed through swagger doc on: http://localhost:3000/swagger

About

This is a test project for API Authentication and Authorization built using Nodejs, Express, and MongoDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published