Weekly Planner
Getting started

Local setup

Install dependencies, push Instant schema/permissions, and use project scripts.

Local setup

Install

npm ci

InstantDB

  1. App id lives in src/config.js (APP_ID). Mirror it in .env as INSTANT_APP_ID.
  2. Admin token in .env from the Instant dashboard.
  3. Optionally lock schema and permissions:
npm run push:schema
npm run push:perms

instant.schema.ts re-exports src/schema.jssrc/schema.js is the source of truth.

Scripts

CommandWhat it does
npm run devVite dev server (port 3000)
npm run buildProduction → dist/
npm run lintESLint
npm run typecheckCheck core JavaScript modules
npm run testVitest regression tests
npm run checkLint, typecheck, test, build
npm run previewPreview production build
npm run push:schemaPush Instant schema
npm run push:permsPush Instant permissions
npm run sync:auth-originsRegister Instant auth origins (Vercel previews)

Docs site

This documentation app is separate:

cd docs
npm ci
npm run dev

On this page