Add local dev info

This commit is contained in:
MartinBraquet
2025-09-12 15:29:17 +02:00
parent 10c44d050f
commit ef91317232
2 changed files with 17 additions and 4 deletions

View File

@@ -2,14 +2,27 @@
# Required variables for basic local functionality
# For database connection. A 16-character password with digits and letters.
SUPABASE_DB_PASSWORD=
# For database read access.
# Ask the project admin. Should start with "eyJh".
NEXT_PUBLIC_SUPABASE_KEY=
# For authentication.
# Ask the project admin. Should start with "AIza".
NEXT_PUBLIC_FIREBASE_API_KEY=
# Optional variables for the backend server functionality (modifying user data, etc.)
# For database write access.
# A 16-character password with digits and letters.
# Ideally this secret should not be shared, even to the developers.
# TODO: set up local Postgres instead of Supabase for local development, add instructions to README, and remove this variable.
SUPABASE_DB_PASSWORD=
# For Firebase access.
GOOGLE_APPLICATION_CREDENTIALS_DEV="[...].json"
GOOGLE_APPLICATION_CREDENTIALS_PROD="${GOOGLE_APPLICATION_CREDENTIALS_DEV}"
# The URL where your local backend server is running.
# You can change the port if needed.
NEXT_PUBLIC_API_URL=localhost:8088

View File

@@ -13,8 +13,8 @@
"scripts": {
"verify": "yarn --cwd=common verify:dir; yarn --cwd=web verify:dir; yarn --cwd=backend/shared verify:dir",
"lint": "yarn --cwd=web lint-fix; eslint common --fix ; eslint backend/api --fix ; eslint backend/shared --fix",
"dev": "./dev.sh dev",
"prod": "./dev.sh prod",
"dev": "./run_local.sh dev",
"prod": "./run_local.sh prod",
"test": "jest",
"test:watch": "jest --watch",
"test:coverage": "jest --coverage",