Frontend Setup
Prerequisites
- Node 20+
- pnpm 9+
Local Development
Copy env file:
bashcp .env.development.example .env.development # set VITE_API_BASE_URL to your local django-api URLInstall dependencies:
bashpnpm installStart dev server:
bashpnpm devVite serves on
http://localhost:3000(configured invite.config.js).
Building for Production
bash
pnpm build
pnpm preview # preview the build locallyLinting & Formatting
bash
pnpm lint # ESLint (Airbnb config)
pnpm format # PrettierHusky + lint-staged run these automatically on commit.
Environment Variables
| Variable | Description |
|---|---|
VITE_API_BASE_URL | Base URL for django-api (e.g. http://localhost:8000) |
VITE_RECAPTCHA_SITE_KEY | Google ReCaptcha v3 site key |
All Vite env vars must be prefixed with VITE_ to be exposed to the browser bundle.