This is meant to be a quickstart for web services in Go with OIDC based authentication.
- GNU Make: optional, enables some useful commands
- Docker: required
- Docker Compose: required
Execute the following steps to set the project's configuration for the first time.
Create the .env file in the project's root directory.
Note: use the .env.dist file as template.
Create the PEM key files in the project's root directory.
Note: use the make command to quickly generate the credentials.
Create the docker-compose.yaml.local file in the project's root directory.
Note: use the docker-compose.yaml.local.dist file as template. Don't forget to fill the .env file with the PEM keys volumes target path
Run the following command from the project's root directory:
make init
Note: this will set the name for the project's Go module.