https://github.com/dm94/fastify-boilerplate
Fastify boilerplate with typescript, tests and swagger
https://github.com/dm94/fastify-boilerplate
boilerplate fastify node swagger typescript
Last synced: about 2 months ago
JSON representation
Fastify boilerplate with typescript, tests and swagger
- Host: GitHub
- URL: https://github.com/dm94/fastify-boilerplate
- Owner: dm94
- License: mit
- Created: 2023-02-26T09:34:25.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-02-26T10:03:22.000Z (over 3 years ago)
- Last Synced: 2025-05-29T14:16:30.135Z (about 1 year ago)
- Topics: boilerplate, fastify, node, swagger, typescript
- Language: TypeScript
- Homepage:
- Size: 13.7 KB
- Stars: 0
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# fastify-boilerplate
Fastify boilerplate with typescript, tests and swagger
# This boilerplate is a mix of others for a minimum configuration.
- [fastify-typescript-starter](https://github.com/yonathan06/fastify-typescript-starter)
## Features
- Typescript + eslint + Prettier
- Routes are automatically generated on the base of the folders.
- Documentation is automatically generated in OpenAPI as you create endpoints.
- Connectors for MongoDB and MySQL
- Added JWT
- CORS-ready
## Fastify Plugins
- [@fastify/autoload](https://github.com/fastify/fastify-autoload)
- [@fastify/cors](https://github.com/fastify/fastify-cors)
- [@fastify/jwt](https://github.com/fastify/fastify-jwt)
- [@fastify/mongodb](https://github.com/fastify/fastify-mongodb)
- [@fastify/mysql](https://github.com/fastify/fastify-mysql)
- [@fastify/rate-limit](https://github.com/fastify/fastify-rate-limit)
- [@fastify/swagger](https://github.com/fastify/fastify-swagger)
- [@fastify/swagger-ui](https://github.com/fastify/fastify-swagger-ui)
## Installation
With npm
```bash
npm install
npm run dev
```
With pnpm
```bash
pnpm install
pnpm run dev
```
## Swagger UI
Only enabled for the development environment
http://localhost:8080/doc