Contributing
Contributing to Tinyauth is straightforward. Follow the steps below to set up a development server.
Requirements
Section titled “Requirements”- pnpm
- Golang v1.24.0 or later
- Git
- Docker
- Make
Cloning the Repository
Section titled “Cloning the Repository”Start by cloning the repository:
git clone https://github.com/tinyauthapp/tinyauthcd tinyauthInstalling Dependencies
Section titled “Installing Dependencies”While development occurs within Docker, installing the dependencies locally is recommended to avoid import errors. Install the Go dependencies:
go mod tidyFrontend dependencies can be installed as follows:
cd frontend/pnpm ciCreate the .env file
Section titled “Create the .env file”Configuration requires an environment file. Copy the .env.example file to .env and adjust the environment variables as needed.
Development Workflow
Section titled “Development Workflow”The development workflow is designed to run entirely within Docker, ensuring compatibility with Traefik and eliminating the need for local builds. A recommended setup involves pointing a subdomain to the local machine:
*.dev.example.com -> 127.0.0.1dev.example.com -> 127.0.0.1Ensure the domains are correctly configured in the development Docker Compose file, then start the development environment:
make devIn case you need to build the binary locally, you can run:
make binary