fastify-boilerplate

fastify boilerplate for building RESTful APIs ⏰ Includes design (APIs), deploy(Application) and monitoring(Application).

templateboilerplatemonitoringmicroservicedeploymentfastifyeslintprettiersentry

Preview

fastify-boilerplate preview

Overview

This is a production-ready Node.js API boilerplate built on Fastify, Knex and Pino that helps developers ship fast by providing built-in essentials like JSON schema validation, centralized error handling, auto-generated Swagger documentation, database migrations, structured logging and Prometheus monitoring. It eliminates repetitive setup work so you can focus on building APIs with good practices from the start.

Features

json-schema-validationrequest-body-validationcentralized-error-handlingswagger-documentationhttps-supportdatabase-migrationsdata-seedingformatted-loggingcode-lintingcode-formattinghttp-clientprometheus-monitoringgrafana-dashboards

Feature Flags

userDashboardauthenticationsubscriptionsinvoicesblogemailslandingpagepaymentsecommercefileUploadsauthorizationteamsOrgsanalyticsloggingErrorTrackingcmsaiapiDocsformsValidationmultitenancymonitoring

Recommended Use Cases

rest-api-developmentmicroservice-architectureproduction-ready-api-server

Frontend

None

Backend

fastifynodejsknexpino

Auth Providers

None

Deployment Targets

None

Payment Providers

None

Quick Facts

⭐ Stars
110
🍴 Forks
18
🧾 License
mit
🔄 Active
Unknown
🕒 Last Commit
2023-03-08T13:50:08.000Z

Stack

Framework
fastify
Language
nodejs
ORM
knex
Monitoring
prometheus, grafana, sentry
Logging
pino
CI
github-actions

Data Layer

ORM
knex

UI Stack

Developer Experience

Docker
No
Tests
Yes
Quickstart
Yes
env.example
No
CI
github-actions

Pricing

Classification
free
Selected
5 usd / month
Notes
Open source boilerplate with MIT license
Get Started with this Boilerplate