Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/wd-David/fastify-esbuild
Boilerplate to create a Fastify app with better DX
https://github.com/wd-David/fastify-esbuild
Last synced: 4 months ago
JSON representation
Boilerplate to create a Fastify app with better DX
- Host: GitHub
- URL: https://github.com/wd-David/fastify-esbuild
- Owner: wd-David
- Created: 2022-04-24T04:18:39.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-28T12:58:38.000Z (almost 2 years ago)
- Last Synced: 2024-08-02T15:46:38.577Z (7 months ago)
- Language: TypeScript
- Size: 568 KB
- Stars: 53
- Watchers: 1
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# fastify-esbuild
Opinionated boilerplate to build a Fastify app with better DX.
---
## Articles
- [Better Backend DX: Fastify + ESBuild = ⚡️](https://davipon.hashnode.dev/better-backend-dx-fastify-esbuild)
- [Better Backend DX: JSON Schema + TypeScript + Swagger = ✨ Vol. 1](https://davipon.hashnode.dev/better-backend-dx-json-schema-typescript-swagger-vol-1)
- [Better Backend DX: JSON Schema + TypeScript + Swagger = ✨ Vol. 2](https://davipon.hashnode.dev/better-backend-dx-json-schema-typescript-swagger-vol-2)## Features
- Use `@fastify/autoload` for filesystem-based routes & plugins.
- Use [`esbuild-kit/tsx`](https://github.com/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)---
## How to start?
```zsh
# Install dependencies
pnpm i# Start development
pnpm dev# Build production code
pnpm build# Run production code
pnpm start
```