Skip to content

FachschaftMathPhysInfo/pepp

Repository files navigation

pepp

Praktische Ersti-Programmplanung

build

cp .env .env.local
docker compose build
docker compose up -d && docker compose logs -f

dev

frontend

cd frontend
npm i
npm run codegen
npm run dev

backend

Important

In development, the backend creates some example data and creates an admin user: Mail: [email protected], Password: admin

cd server
go generate ./...
go run server.go

deployment via docker compose

services:
  pepp:
    image: ghcr.io/fachschaftmathphysinfo/pepp
    ports:
      - 8080:8080
    env_file: .env

env vars

required

Key Description Example
PUBLIC_URL Domain under which pepp is deployed https://pepp.example.com
PEPPER_KEY Generate a random 32 characters long string for password security -
SMTP_HOST E-Mail provider smtp.example.com
SMTP_USER The user to log into the SMTP Server [email protected]
SMTP_PASSWORD The password to log into the SMTP Server -
SMTP_PORT The port of your SMTP Server 465
FROM_ADDRESS Address from which mails are send [email protected]

optional

Key Description Example
LOG_LEVEL Default is Info. Set to Debug for more information Debug
ENV Set to Production on deployment Production
ENABLE_TRACING Application exports traces to an OpenTelemetry Collector true
ADMIN_USER Default is [email protected]. Generated on initial startup [email protected]
POSTGRES_HOST When given tries to connect. Creates a SQLite per default postgres
POSTGRES_PASSWORD Required if POSTGRES_HOST is given -
POSTGRES_PORT Required if POSTGRES_HOST is given 5433
POSTGRES_USER Required if POSTGRES_HOST is given postgres
POSTGRES_DB Required if POSTGRES_HOST is given postgres
OIDC_LOGIN_PROVIDER_URL When given, initializes an Open ID Endpoint at /sso/oidc https://auth.example.com
OIDC_LOGIN_CLIENT_ID Required if OIDC_LOGIN_PROVIDER_URL is given pepp
OIDC_LOGIN_CLIENT_SECRET Required if OIDC_LOGIN_PROVIDER_URL is given insecure_secret
OIDC_LOGIN_SCOPES Required if OIDC_LOGIN_PROVIDER_URL is given openid profile email groups
OIDC_LOGIN_CLAIM_MAPPING Required if OIDC_LOGIN_PROVIDER_URL is given. Map single name strings to name and splitted to fn and sn '{"mail":"email","name":"name"}'

contributions

  1. create an issue
  2. from this issue create a branch and work on it
  3. create a pull request and tag one of the main contributors for a short review
  4. sanfter Schulterklopfer ♡

Releases

No releases published

Packages

 
 
 

Contributors 7

Languages