Clone the repository:
git clone https://github.com/Numostanley/auth_app.git
Enter the root directory.
cd auth_app
Run docker-compose
docker-compose up --build
Clone the repository:
git clone https://github.com/Numostanley/auth_app.git
Enter the root directory.
cd auth_app
Change the directory to the src folder:
cd src
Install go dependencies:
go mod tidy
Load go dependencies
go mod vendor
Change the PostgreSQL host settings in the env/dev/.env or env/prod/.env file to localhost
PG_HOST="localhost" // or your database host
Running the Project
go run cmd/auth_app/main.go
Ensure your email settings in the env/dev/.env or env/prod/.env file are properly set up:
EMAIL_USER="[email protected]" // change to your email user
EMAIL_PASSWORD="ExamplePassword@1" // change to your email password
EMAIL_HOST="smtp.gmail.com" // change to your email host
Without the correct email settings, user verification emails will not be sent.
Also change the ISSUER settings in the env file to your application url or host
ISSUER="https://api.example.com/" # change to your application url
Change the redirect_uris in the src/extras/clients.json file to your application uri
"redirect_uris": "https://api.example.com/v1/admin"
Ensure you have PostgreSQL properly installed and configured if you are using the manual installation method.
You can also find the Postman API documentation
to this project at:
https://www.postman.com/orange-capsule-84916/workspace/auth-app