Pierwsze uruchomienie
Migracja bazy i start serwera deweloperskiego.
Pełna treść jest utrzymywana po angielsku i może być uzupełniana sukcesywnie. Poniżej znajduje się lokalna wersja / mapa tej strony.
Database
bun run db:migrate
# prototype-only alternative (not for shared envs):
# bun run db:pushInspect schema with bun run db:studio. For preview or production, run the matching bun run env:pull:preview|production once, then db:studio:preview|production / db:migrate:preview|production — the target is always explicit in the command.
Dev server
bun run devVisit http://localhost:3000. Locales are en-US and pl-PL (see integrations/next-intl/i18n.config.ts).
Create an admin user
- Sign up via
/auth/sign-up - Verify email (Resend / logs depending on setup)
- Promote the user to
adminin the DB (or your seed path) — role codes live inauth.access.tsasROLE_CODES.ADMIN - Open
/admin
Auth callback routing: admins → /admin, customers → /app (src/proxy.ts + ROUTES).