Opinionated boilerplate to build a Fastify app with better DX.
- Better Backend DX: Fastify + ESBuild = ⚡️
- Better Backend DX: JSON Schema + TypeScript + Swagger = ✨ Vol. 1
- Better Backend DX: JSON Schema + TypeScript + Swagger = ✨ Vol. 2
- Use
@fastify/autoloadfor filesystem-based routes & plugins. - Use
esbuild-kit/tsxto reduce feedback loop during devlopment. - Use
esbuildto bundle production code. - Use
json-schema-to-tsto validate & type your route - Auto-generated Swagger UI:
http://localhost:3000/documentation(production ready)
# Install dependencies
pnpm i
# Start development
pnpm dev
# Build production code
pnpm build
# Run production code
pnpm start