No description
  • Svelte 39.6%
  • TypeScript 36.6%
  • Python 21.5%
  • CSS 1.4%
  • JavaScript 0.6%
  • Other 0.3%
Find a file
2026-06-24 23:59:10 +02:00
.forgejo/workflows ci: limit what gets pushed to codeberg 2026-06-24 11:02:24 +02:00
backend remove unfinished/untested achievements 2026-06-24 23:58:34 +02:00
frontend Release 0.1.0 2026-06-24 23:59:10 +02:00
.env.example Docker based deployment 2026-06-21 18:59:01 +02:00
docker-compose.yml backend: fix alembic in container 2026-06-24 22:14:52 +02:00
Dockerfile.backend backend: fix Dockerfile.backend 2026-06-24 21:49:16 +02:00
Dockerfile.frontend Docker based deployment 2026-06-21 18:59:01 +02:00
nginx.conf fix relative paths and 404 page 2026-06-21 20:53:15 +02:00
README.de.md Update README 2026-06-21 22:31:07 +02:00
README.md Update README 2026-06-21 22:31:07 +02:00

Project Fenrir

Auf Deutsch

Setup

The easiest way to run Fenrir is using Docker.

Prerequisites

1. Clone the repository

git clone https://codeberg.org/seidirselbsttreu/fenrir.git
cd fenrir

2. Configure environment variables

cp .env.example .env

Fill the .env file with your required data (like JWT_SECRET_KEY, DATABASE_URL, etc.).

3. Start the containers

docker compose up -d

On initial startup, a registration token will be generated and printed to the logs. You can access them using docker compose logs.

Now you can access the application at http://localhost:8000.

Shutting down

To stop the application, run:

docker compose down

Development

Frontend

Setup

  1. Install Node.js if you haven't installed it yet: https://nodejs.org/en/download/
  2. Install dependencies npm install

You can now run the frontend with npm run dev

Scripts

If you changed some models in the backend, you need to regenerate the API client:

  1. Update the openapi.json (provided by the running backend at /openapi.json)
  2. Then run npm run gen:api to regenerate the API client

Backend

Setup

  1. Install UV if you haven't installed it yet: https://docs.astral.sh/uv/#installation
  2. Create a virtualenv for installing the dependencies into uv venv and activate it
    • Linux/macOS (Bash/Zsh) source .venv/bin/activate
    • Windows (PowerShell) .venv\Scripts\Activate.ps1
  3. Install dependencies uv sync

Now you can start your local dev server with:

fastapi dev

Database migrations

Upstream Docs: https://alembic.sqlalchemy.org

After changing a model, run this command: alembic revision --autogenerate -m "message"

If your database is outdated, you can upgrade it using: alembic upgrade head