Skip to content

Getting Started

Setup with Docker Compose (main setup)

  1. Navigate to core/apps/api

  2. Set up environment variables:

    cp .env.dev.example .env.dev
    

  3. Open .env.dev

    1. For AUTH_DISCORD_CLIENT_ID and AUTH_DISCORD_CLIENT_SECRET, go to the Discord developer portal and create an account. Create a new application and go to the OAuth2 tab in the left sidebar. Copy the Client ID and the Client Secret into their respective environment variables.

    2. Fill out any other required keys and tokens, if empty.

  4. Continue with the main setup instructions

Setup without Docker Compose

  1. Make sure you have Go installed on your system.
  2. Initialize the Go project

    go mod tidy
    
    go install github.com/air-verse/air@latest
    go install github.com/sqlc-dev/sqlc/cmd/sqlc@latest
    go install github.com/pressly/goose/v3/cmd/goose@latest
    

  3. Run the program with

    air