Skip to content

Development

Pier Dolique edited this page Jul 31, 2025 · 7 revisions

Required actions

  1. Install Docker (required for the local database)
  2. docker compose up -d
  3. echo "DATABASE_URL=postgresql://perd:perd@db.localtest.me:5432/perd"" >> .env
  4. echo "LOCAL_DATABASE=true" >> .env
  5. npm run db:migrate:local

Preview changes locally

To build a project locally and run it in preview mode before deployment (close to the product environment) you need to create .dev.vars file with the following content:

Do not need since wrangler@4.27.0 release. Having .env file should be enough.

DATABASE_URL=postgresql://perd:perd@db.localtest.me:5432/perd
LOCAL_DATABASE=true
OAUTH_TWITCH_CLIENT_ID = "woofBark14"
OAUTH_TWITCH_CLIENT_SECRET = "pooqueSrenque88"
SESSION_SECRET = "WoofBarkWoofBarkWoofBarkWoofBaofBarkWoofBarkWoofBark"

Clone this wiki locally