-
Clone the repository
-
Install dependencies
pnpm i
-
Create environment file
env.ts
at the rootexport default { PORT: "3000", };
Optionally typecheck environment with
zod
import { z } from "zod"; z.object({ PORT: z.coerce.number(), URL: z.string().url(), UUID: z.string().uuid(), EMAIL: z.string().email().optional(), }).parse(process.env);
-
Development mode (debug)
pnpm dev
-
Production build
pnpm build && pnpm start