fastify-esbuild
fastify-esbuild copied to clipboard
Boilerplate to create a Fastify app with better DX
fastify-esbuild
Opinionated boilerplate to build a Fastify app with better DX.
Articles
- Better Backend DX: Fastify + ESBuild = ⚡️
- Better Backend DX: JSON Schema + TypeScript + Swagger = ✨ Vol. 1
- Better Backend DX: JSON Schema + TypeScript + Swagger = ✨ Vol. 2
Features
- 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)
How to start?
# Install dependencies
pnpm i
# Start development
pnpm dev
# Build production code
pnpm build
# Run production code
pnpm start