feat: implement full backend API for Pantree Phase 1 MVP

This commit is contained in:
Azriel
2026-05-10 04:57:26 +00:00
parent d755eea792
commit 03a2cfb748
32 changed files with 4139 additions and 0 deletions

39
.env.example Normal file
View File

@@ -0,0 +1,39 @@
# ─────────────────────────────────────────────
# Pantree Backend — Environment Variables
# Copy to .env and fill in real values.
# NEVER commit .env to version control.
# ─────────────────────────────────────────────
# Server
PORT=3000
NODE_ENV=development
# PostgreSQL
DB_HOST=localhost
DB_PORT=5432
DB_NAME=pantree
DB_USER=postgres
DB_PASSWORD=changeme
# JWT — use a long random secret in production
JWT_SECRET=change-this-to-a-long-random-secret
JWT_EXPIRES_IN=24h
# Google OAuth
GOOGLE_CLIENT_ID=your-google-client-id.apps.googleusercontent.com
# Email (SMTP / SendGrid / SES)
EMAIL_HOST=smtp.ethereal.email
EMAIL_PORT=587
EMAIL_USER=
EMAIL_PASS=
EMAIL_FROM=noreply@pantree.app
# App base URL (used in password-reset links)
APP_BASE_URL=https://pantree.app
# Account deletion window (days)
ACCOUNT_DELETION_DAYS=15
# Password reset token expiry (hours)
RESET_TOKEN_EXPIRY_HOURS=1