api-nestjs-boilerplate-rest

A REST API Boilerplate using NestJS and Fastify

boilerplatetypescriptfastifynestjseslintprettiervitestcommitlinthusky
FreeRepo

Preview

api-nestjs-boilerplate-rest preview

Overview

This is a NestJS boilerplate for building scalable REST APIs with TypeScript, featuring Fastify as the web server, TypeORM with PostgreSQL for data management and comprehensive tooling including testing with Vitest, security features like Helmet and CSRF protection and development tools such as ESLint, Prettier and Swagger documentation.

Features

rest-apitypescriptfastify-servertypeorm-ormpostgresql-databaseredis-cachehelmet-securitycors-configurationcsrf-protectiondata-validationvitest-testingcode-coveragee2e-testsunit-testseslint-lintingprettier-formattinghusky-git-hookscommitlint-validationswagger-openapi-docspino-loggingdocker-containerizationgithub-actions-ciredis-cachingresponse-compressionhealth-checksconventional-commits

Feature Flags

emailspaymentsloggingErrorTrackingjobsQueuenotificationsapiDocscachinglogginghealthCheckscompressioncorscsrfvalidationdockercitestinglintingformatting

Recommended Use Cases

scalable-rest-apismicroserviceshigh-performance-backendsenterprise-applications

Frontend

None

Backend

nestjsfastifytypeormpostgresqlredispino

Auth Providers

None

Deployment Targets

dockerself-hosted

Payment Providers

None

Quick Facts

โญ Stars
0
๐Ÿด Forks
0
๐Ÿงพ License
mit
๐Ÿ”„ Active
Unknown

Stack

Framework
nestjs
Language
typescript
Database
postgresql
ORM
typeorm
Testing
vitest
Monitoring
health-checks
Logging
pino
CI
github-actions

Data Layer

Databases
postgresql, redis
ORM
typeorm

UI Stack

Developer Experience

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

Pricing

Classification
free
Selected
โ€”
Notes
Open source MIT licensed template
Get Started with this Boilerplate