# README
Go OAuth2 Backend
This is a simple backend written in Go that uses OAuth2 to authenticate users with Discord and Google. It can be extended to support other OAuth2 providers.
Environment Variables
Copy the .env.example
file to .env
and fill in the values or set the environment variables manually.
General
PORT
- Port to run the applicationAPP_URL
- Application URL (with port if needed) (used for redirecting)
Database
DB_HOST
- Database hostDB_PORT
- Database portDB_DATABASE
- Database nameDB_USERNAME
- Database usernameDB_PASSWORD
- Database password
OAuth2
DISCORD_CLIENT_ID
- Discord OAuth2 client IDDISCORD_CLIENT_SECRET
- Discord OAuth2 client secretGOOGLE_CLIENT_ID
- Google OAuth2 client IDGOOGLE_CLIENT_SECRET
- Google OAuth2 client secret
MakeFile
Build the application
make build
Run the application
make run
Create DB container
make docker-run
Shutdown DB container
make docker-down
Live reload the application
make watch
Clean up binary from the last build
make clean
# Packages
No description provided by the author