Socket
Socket
Sign inDemoInstall

sunubus-auth-service

Package Overview
Dependencies
23
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    sunubus-auth-service

Sunubus authentication backend service


Version published
Maintainers
1
Created

Readme

Source

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.

FAQs

Last updated on 30 Apr 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc