An auth server for
dearborncodingclub.com.
This repo contains a Go server that is used for authentication on the dearborncodingclub.com website.
Copy the sample .env file and configure your environment variables:
cp .env.example .envModify .env as needed:
export POSTGRESQL_PASSWORD=password
export POSTGRESQL_NAME=db_name
export POSTGRESQL_USER=db_user
export POSTGRESQL_HOST_ISOLATED=db_host.some_website.com
export POSTGRESQL_PORT=5432
export HMAC_SECRET=your_hmac_secret_hereRun source to set the env for the terminal
source .env- To run the server, ensure that you have Docker desktop installed locally.
- Log in to docker with
docker login. - Spin up composed container with
docker compose up --build. - Navigate to
localhost:8080to access theauthAPI.
- To run the server, ensure that you have
Goinstalled locally on your system. - Run
go mod vendorfrom the root director. - Run
go run ./cmd/main.goto spin up the server. - Navigate to
localhost:8080.
Note
There are a series of environment variables that should exist in a .env file at the root of your clone of this repo. Please reach out to one of the maintainers to get access to the right vars to hook everything up.