Skip to content

Development

Pier Dolique edited this page Sep 22, 2024 · 3 revisions

Required actions

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

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:

DATABASE_URL=postgresql://perd:[email protected]:5432/perd
LOCAL_DATABASE=true
OAUTH_TWITCH_CLIENT_ID = "woofBark14"
OAUTH_TWITCH_CLIENT_SECRET = "pooqueSrenque88"
SESSION_SECRET = "WoofBarkWoofBarkWoofBarkWoofBaofBarkWoofBarkWoofBark"
WRANGLER_DEV = "true"
Clone this wiki locally