Identity is a scalable and decentralized microservice for user identity management.
NATS Server with JetStream: Refer to the official NATS website for installation instructions.
This project relies on NATS Server with JetStream functionality for its operations. Ensure that you have NATS Server with JetStream installed and running before using this project.
For installation instructions and details about NATS Server with JetStream, please refer to the official NATS website (https://nats.io).
You can install Identity using one of the following methods:
-
Clone the repository, navigate to the project directory, build, and install the binary using the following command:
# clone the repository git clone https://github.com/flarexio/identity.git # navigate to the project directory cd identity # build and install go build -o $GOPATH/bin/identity cmd/identity/main.go
-
Copy the
config.yamlfile to the working directory. You can find an example configuration file in the project repository. -
Set the necessary environment variables, such as
IDENTITY_PATHandIDENTITY_HTTP_PORT, if required. -
Run the installed binary to start the Identity microservice:
identity
-
Make sure you have Docker installed and running on your system.
-
Run the following command to start the Identity microservice using Docker:
-
Copy the
config.yamlfile to the working directory. You can find an example configuration file in the project repository.docker run -d -p 8080:8080 flarexio/identity:latest
This command starts the Identity microservice in a Docker container, binds it to port 8080, and sets the
IDENTITY_PATHandIDENTITY_HTTP_PORTenvironment variables. It also mounts theconfig.yamlfile into the container at/root/.identity/config.yaml.
This project is licensed under the MIT License.