Auth — Authentication microservice
@cryb/auth
is the microservice used authenticate users and other authenticated data types.
@cryb/auth
has been actively developed since December 2019. In January 2020 it was rewritten in Go.
The codebase for @cryb/auth
is written in Go. MongoDB is used as the primary database.
First, clone the @cryb/auth
repository locally:
git clone https://github.com/crybapp/auth.git
The following services need to be installed for @cryb/auth
to function:
- MongoDB
We recommend that you run the following services alongside @cryb/auth
, but it's not required.
@cryb/api
@cryb/atlas
You also need to install the required dependencies by running go get -d ./
.
Ensure that .env.example
is either copied and renamed to .env
, or is simply renamed to .env
.
In this file, you'll need some values. Documentation is available in the .env.example
file.
Make sure that you have installed MongoDB, and that it is running on port 27017.
The command to start MongoDB is mongod
.
To run @cryb/auth
, run go run .
.
To build @cryb/auth
, run go build -o main .
.
Once built, run ./main
to run the compiled app.
If you have an issues with @cryb/auth
, please either open a GitHub issue, contact a maintainer or join the Cryb Discord Server and ask in #tech-support
.