This repository is the latest website for DurHack.
We're hosting the client
project using Netlify at durhack.com.
Any changes to the main
branch are deployed automatically.
The archive/xyz
branches are also deployed using Netlify.
We're hosting the server
project on an IONOS VPS at api.durhack.com.
Changes to the main
branch are not deployed automatically.
- Complete durhack-nginx setup
- Install a local PostgreSQL server instance
- Create a new user, e.g.
durhack
in your PostgreSQL instance with theCREATEDB
permissionCREATE USER durhack WITH PASSWORD 'durhack' CREATEDB; -- or CREATE USER durhack WITH PASSWORD 'durhack'; ALTER ROLE durhack WITH CREATEDB;
- In the
common
directory, runpnpm build
- In the
server
directory, create a.env
file (edit to reflect your database user/password):DATABASE_URL="postgresql://durhack:durhack@localhost:5432/durhack?schema=public"
- In the
server/config
directory, create alocal.ts
file (ask DurHack chief tech officer for a real client secret):import type { ConfigIn } from "@/config/schema" import type { DeepPartial } from "@/types/deep-partial" export default { keycloak: { clientId: "api.durhack-dev.com", clientSecret: "not-a-real-client-secret", }, } satisfies DeepPartial<ConfigIn>
- In the
server
directory, runpnpm exec prisma migrate dev
- In the
server
directory, runpnpm generate
Drop us a line at hello@durhack.com!