NestJS + Prisma/Postgres API shared by the site, admin and attendee app. Ports the site's D1 application flow and review, stores every inquiry form, sells tickets with discount codes (manual payment confirmation), and runs booth/startup/mystery-investee QR scans with derived points and raffles. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 lines
1.1 KiB
Plaintext
21 lines
1.1 KiB
Plaintext
# Docker: postgresql://postgres:postgres@localhost:5432/grv
|
|
# No Docker: `pnpm db:dev` (PGlite) → postgresql://postgres:postgres@127.0.0.1:5433/postgres and DATABASE_POOL_MAX=1
|
|
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/grv
|
|
DATABASE_POOL_MAX=10
|
|
PORT=4000
|
|
# 32+ random chars: openssl rand -hex 32
|
|
JWT_SECRET=change-me-change-me-change-me-change-me
|
|
# Comma-separated. Anyone else who logs in is an ATTENDEE.
|
|
ADMIN_EMAILS=tech@ethiopiatrustfund.org
|
|
STAFF_EMAILS=
|
|
# Browser origins allowed to call the API (site, admin). The mobile app needs none.
|
|
CORS_ORIGINS=http://localhost:3000,http://localhost:5173
|
|
SITE_URL=https://grv.ethiopiatrustfund.org
|
|
ADMIN_URL=http://localhost:5173
|
|
# Empty RESEND_API_KEY = emails (and OTP codes) are printed to the console instead of sent.
|
|
RESEND_API_KEY=
|
|
RESEND_FROM=GRV Summit <grv@ethiopiatrustfund.org>
|
|
NOTIFY_TO=tech@ethiopiatrustfund.org
|
|
# Shown to buyers after a ticket order until a payment gateway is wired.
|
|
PAYMENT_INSTRUCTIONS=Our team will email you an invoice with bank transfer details within one business day. Your tickets are issued once payment is confirmed.
|