Skip to content

Latest commit

 

History

History
43 lines (30 loc) · 834 Bytes

File metadata and controls

43 lines (30 loc) · 834 Bytes

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