Skip to content

altrup/altrup.dkg.zone

Repository files navigation

altrup.dkg.zone

A simple-looking website about me :)

Setup

Guide to running the website

Prerequisites

Installation & Usage

  • Clone repository

    git clone https://github.com/altrup/altrup.dkg.zone.git
  • Enter newly created folder

    cd altrup.dkg.zone
  • Set up Supabase (see Database (Supabase) below) or use with a json file

  • Copy .env.example and update to your values

    cp .env.example .env
  • Start Docker container

    docker compose up -d
  • To stop, run

    docker compose down
  • To update, run

    docker compose build

Database (Supabase)

The site needs a Supabase backend. Host it however you like — Supabase Cloud or self-hosted — this repo only tracks the database schema, as migrations in supabase/migrations.

  • Apply the migrations to your database with the Supabase CLI

    npx supabase db push --db-url "postgresql://postgres:PASSWORD@HOST:5432/postgres"
  • If your database already has the schema (e.g. it predates the migration files), mark the baseline as applied instead of pushing it

    npx supabase migration repair --status applied 20260720000000 --db-url "$SUPABASE_DB_URL"

The migrations create the tables, trigger, and policies but no data — add your own rows, or see the personal-data branch, which carries the site owner's content as supabase/personal-seed.sql synced via scripts/personal-seed.sh (pull dumps the database to the file, push applies the file to the database).

Testing

  • For testing changes, instead of using docker and rebuilding every time, you can also run using npm

  • Install npm packages

    npm install
  • Run website

    npm run dev

Releases

Packages

Used by

Contributors

Languages