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/autoload
for filesystem-based routes & plugins. - Use
esbuild-kit/tsx
to reduce feedback loop during devlopment. - Use
esbuild
to bundle production code. - Use
json-schema-to-ts
to 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
- Add
docker
ordocker-compose
for deployment - Add
vitest
&msw
- Add
dotnev
for different stages - Add
mongodb
examples - Add
envoy
as a sidecar proxy