A simple example for a REST API using Fastify, TypeScript, Zod, and Swagger.
- Database: MongoDB with Mongoose
- Validation: Zod
- Logging: Pino
- Linting & Formatting: Biome - Biome
- API Documentation: Swagger
- Testing: Vitest
pnpm start
: Start the production serverpnpm dev
: Start the development serverpnpm dev:watch
: Start the development server with file watchingpnpm typecheck
: Run type checkingpnpm lint
: Run linterpnpm format
: Format the codepnpm test
: Run testspnpm check
: Run all checks (type checking, formatting and tests)
git clone https://github.com/BurakYs/fastify-example.git
cd fastify-example
pnpm install
cp .env.example .env
This project is licensed under the MIT License.