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
- Open a
psqlinteractive session:sudo -u postgres psql - Create a new user, e.g.
durhackin your PostgreSQL instance with theCREATEDBpermissionCREATE USER durhack WITH PASSWORD 'durhack' CREATEDB; -- or CREATE USER durhack WITH PASSWORD 'durhack'; ALTER ROLE durhack WITH CREATEDB;
- In the
commondirectory, runpnpm build - In the
serverdirectory, create a.envfile (edit to reflect your database user/password):DATABASE_URL="postgresql://durhack:durhack@localhost:5432/durhack?schema=public"
- In the
server/configdirectory, create alocal.tsfile (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
serverdirectory, runpnpm exec prisma migrate dev - In the
serverdirectory, runpnpm generate
Drop us a line at [email protected]!