Skip to content

jowsey/httpunk

Repository files navigation

httpunk favicon

httpunk

A Cyberpunk-themed web-game.

a screenshot of a 3D-rendered city map with glowing blue buildings in an area labelled "South Central"

Setup

  1. Ensure you have Bun and Docker installed

  2. Install dependencies:

bun install
  1. Populate a .env based on the provided .env.example

  2. In your Discord application, add an OAuth2 redirect pointing to <deployment_url>/api/auth/callback/discord

  3. Initialise Postgres with database schema:

docker compose up -d postgres # start Postgres
bun run db:push
docker compose stop postgres # optional: stop Postgres for now

Development

Launch Valkey & Postgres, and run the Vite dev server & core backend (--watch) in parallel:

bun run dev

Database

Generate Better Auth's schema files:

bun run better-auth:generate

Push & migrate schema changes to Postgres:

bun run db:push

Deployment

Build SvelteKit's Node server:

bun run build

Launch Valkey & Postgres, and run the Node server & core backend in parallel:

bun run prod

About

A Cyberpunk-themed web-game

Resources

License

Stars

Watchers

Forks