-
Notifications
You must be signed in to change notification settings - Fork 0
Development
Pier Dolique edited this page Sep 22, 2024
·
3 revisions
- Install Docker (required for the local database)
docker compose up -d
echo "DATABASE_URL=postgresql://perd:[email protected]:5432/perd"" >> .env
echo "LOCAL_DATABASE=true" >> .env
npm run db:migrate
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"