A search engine for events in Poland.
- Next.js 16
- React 19
- TypeScript
- Tailwind CSS 4
- React Aria Components
- Lucide
- Supabase
- Playwright
- ESLint, Husky, commitlint
- pnpm
- Node.js
>= 24.11.0 - pnpm
>= 10.17.1 - Docker
-
Install dependencies:
pnpm install
-
Start local Supabase:
pnpm db:start
-
Copy
.env.exampleto.env.localand fill in the Supabase values frompnpm db:status. -
Start the dev server:
pnpm dev
The app runs at http://localhost:3000. Local emails are available in Mailpit at http://localhost:54324.
| Command | Description |
|---|---|
pnpm build |
Production build |
pnpm start |
Run the production build |
pnpm lint |
Lint with ESLint |
pnpm typecheck |
Type-check with TypeScript |
pnpm test:unit |
Run unit tests (Vitest) |
pnpm test:unit:watch |
Run unit tests in watch mode |
pnpm test:e2e |
Run end-to-end tests (Playwright) |
pnpm db:stop |
Stop local Supabase |
pnpm db:reset |
Reset the local database |
pnpm db:diff |
Generate a migration from the schema |
Unit tests (__tests__/, Vitest) cover the pure validation and routing rules
in isolation: no Supabase, no Mailpit, no dev server. Each spec lives in a
__tests__ folder next to the code it covers, e.g.
modules/create-event/__tests__/validation.test.ts tests
modules/create-event/helpers/validation.ts.
End-to-end tests (e2e/, Playwright) need pnpm db:start and a dev server, so
they are the slow layer and cover only the flows that genuinely need a browser
and a real auth session.
Pure logic that would otherwise be trapped inside a "use server" action lives
in a sibling helpers/validation.ts (or, for the auth routes,
app/auth/safe-path.ts) so it can be unit tested without stubbing
next/navigation or the Supabase client.