A minimal Node.js + TypeScript backend template using Express, Drizzle ORM (Postgres), Supabase auth, Zod validation and OpenAPI docs generated from Zod schemas.
npm install- DATABASE_URL
- SUPABASE_URL
- SUPABASE_ANON_KEY
- NODE_ENV (set it to 'local' for local testing)
- PORT
- RATE_LIMIT_WINDOW_MS
- RATE_LIMIT_MAX_REQUESTS
- See the
src/modelsdirectory and define your table structure there - Reflect the changes in the cloud by runnning the file
db.sh
- Define schema for the table in
src/schemasdirectory - Register your schema for swagger
- define the endpoints in the
src/routessection
- define the controllers in the
src/controllerssection
- define the Service/helper functions in the
src/servicessection