This is a simple user registration API with ExpressJS. It has sign up, sign in and get users routes. Mocha, Chai, and Supertest are used for testing.
For development, you will need Node.js, a node global package, and MongoDB. You may also need to install Postman to run the APIs.
$ git clone https://github.com/abibou1/nodejs-authentication.git
$ cd nodejs-authentication
$ npm install
You will an .env file where you set global variables: API_PORT and MONGO_URI.
For example:
API_PORT=8080
MONGO_URI=mongodb://127.0.0.1:27017
$ npm start
or
$ npm run dev
More information about the apis here:
https://app.swaggerhub.com/apis/abibou1/authAPIS/1.0.0#/
$ npm run test
docker-compose build
docker-compose up