Skip to main content

Development

Prerequisites

  • Node.js 20+
  • MongoDB running locally (default mongodb://localhost:27017)
  • Garage or other S3-compatible storage (for S3 backend)

Setup

cd paaster
npm install

Copy the .env file:

cp .env.example .env

Running the dev server

npm run dev

The dev server starts on port 5173 by default.

Scripts

ScriptDescription
npm run devStart Vite dev server
npm run buildProduction build
npm run previewPreview production build
npm run checkTypeScript + Svelte type checking
npm run lintPrettier + ESLint
npm run formatPrettier formatting

Project conventions

  • TypeScript throughout
  • Svelte 5 runes ($state, $derived, $effect)
  • Zod for API input validation
  • Argon2 for password/access key hashing
  • Tailwind CSS v4 for styling