chore: bootstrap monorepo workspace and shared schemas

This commit is contained in:
Anton
2026-04-23 16:03:34 +03:00
commit 5f6a551b6c
15 changed files with 308 additions and 0 deletions

40
.env.example Normal file
View File

@@ -0,0 +1,40 @@
# ==========================================
# Database
# ==========================================
POSTGRES_USER=wishlist
POSTGRES_PASSWORD=change_me
POSTGRES_DB=family_wishlist
# DATABASE_URL uses the docker-compose service name `postgres`.
# When running backend outside docker against docker-postgres use localhost:5432.
DATABASE_URL=postgresql://wishlist:change_me@postgres:5432/family_wishlist
# ==========================================
# Users (two fixed accounts)
# Generate hashes with:
# pnpm hash-password "YourPlainPassword"
# The plain password is NEVER stored anywhere in the app.
# ==========================================
USER1_USERNAME=alice
USER1_PASSWORD_HASH=
USER1_SLUG=alice
USER1_DISPLAY_NAME=Alice
USER2_USERNAME=bob
USER2_PASSWORD_HASH=
USER2_SLUG=bob
USER2_DISPLAY_NAME=Bob
# ==========================================
# Secrets (generate: openssl rand -hex 32)
# ==========================================
JWT_SECRET=
COOKIE_SECRET=
# ==========================================
# Runtime
# ==========================================
NODE_ENV=development
BACKEND_PORT=3000
PUBLIC_APP_URL=http://localhost:8080
UPLOADS_DIR=./uploads
LOG_LEVEL=info