Skip to content
BEvanGelderen edited this page Dec 20, 2024 · 8 revisions

Requirements

  • A PostgreSQL database
    • An easy way to throw up a quick database is using a Docker/Podman, but you can also install it systemwide.

Note by Beryl: You can use either Docker or Podman but do not use both.

Docker

cd db
docker compose up --build

Podman

cd db
podman compose up

 

Setup

First: clone the repo, create a Postgres database, and add a .env file in the following format to your project root:

DATABASE_URL="postgresql://user:wachtwoord@localhost:5432/dbname?schema=public"
DEBUG=true

SURFCONEXT_ISSUER="https://connect.test.surfconext.nl"
SURFCONEXT_CLIENT_ID="beta.prime-applets.ewi.tudelft.nl"
SURFCONEXT_CLIENT_SECRET="xxx"

And generate an Auth.js secret by running pnpx auth secret.

Then install the dependencies, generate prisma's client code, and run the migrations:

pnpm install
pnpx prisma generate
pnpx prisma migrate deploy
npx auth secret ⁠

Finally, you can start a local development server with:

pnpm dev
Clone this wiki locally