0.0.1 • Published 3 years ago

sunubus-auth-service v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Sunubus authentication service

This repository contains the source code of the Sunubus authentication service. It is written in NodeJS.

How to setup

Install docker and docker-compose in your system

Get an .env file from one of the developers.

Clone the repository by running:

git clone git@github.com:SunuBus/sunubus-auth-service.git

Then cd into it:

cd sunubus-auth-service

Start the service

Simply start the service by running

docker-compose up

Developing endpoints

Endpoints are located under src/endpoints and are functions located in separate files. They are further subdivided into multiple folders depending on what subservice they belong to.

Under every subfolder lies an index.js file that exports an http router for that specific set of endpoints.

Endpoints can also be exposed through our rabbitmq broker for other services to call into. See https://github.com/SunuBus/sunubus-js-utils/tree/master/src/rabbit

Database models are under src/models and service providers are under src/providers.

Deployment

Services are deployed to an AWS ECS cluster and exposed through an EC2 Load Balancer.

To deploy an already configured service, simply merge and push your changes to the dev, ma-prod or master branch, respectively for deploying to dev, Morocco Prod or Senegal Prod.