Skip to content

Frontend Setup

Prerequisites

  • Node 20+
  • pnpm 9+

Local Development

  1. Copy env file:

    bash
    cp .env.development.example .env.development
    # set VITE_API_BASE_URL to your local django-api URL
  2. Install dependencies:

    bash
    pnpm install
  3. Start dev server:

    bash
    pnpm dev

    Vite serves on http://localhost:3000 (configured in vite.config.js).

Building for Production

bash
pnpm build
pnpm preview   # preview the build locally

Linting & Formatting

bash
pnpm lint        # ESLint (Airbnb config)
pnpm format      # Prettier

Husky + lint-staged run these automatically on commit.

Environment Variables

VariableDescription
VITE_API_BASE_URLBase URL for django-api (e.g. http://localhost:8000)
VITE_RECAPTCHA_SITE_KEYGoogle ReCaptcha v3 site key

All Vite env vars must be prefixed with VITE_ to be exposed to the browser bundle.

Nova Home Care — Internal Developer Docs