This repository contains authentication microservice which enables to authenticate either GitHub or Google.
- Programmist is able to log in to application using GitHub account
- Non-programist is able to log in to application using Google
- The information is stored in user database
The application can be run locally or in a docker container, the requirements for each setup are listed below.
$ npm install
$ npm start
Application will run by default on port 1234
First build the image:
$ docker-compose build
When ready, run it:
$ docker-compose up
Application will run by default on port 1234
Configure the port by changing services.api.ports
in docker-compose.yml. Port 1234 was used by default so the value is easy to identify and change in the configuration file.
Application testing is executed in GitHub Actions in actions/setup-node. You can find configuration files in ./.github/workflows/
.
This microservice has three endpoint which are listed below.
Check if user exists in out database by using Google Auth. Returns user after check or database save.