booking-microservices-nestjs

Practical microservices, built with Nestjs, CQRS, Vertical Slice Architecture, Event-Driven Architecture, Postgres, RabbitMQ and the latest technologies.

nodejstestingdockerboilerplatejwtnodemicroservicestypescriptcqrsmonitoringmicroservicerabbitmq
FreeRepo

Preview

booking-microservices-nestjs preview

Overview

This is a boilerplate for building distributed microservices using NestJS, PostgreSQL and RabbitMQ with Vertical Slice Architecture and CQRS patterns. It includes four core services (Identity, Flight, Passenger, Booking) that communicate asynchronously via RabbitMQ and synchronously via REST, with built-in support for JWT authentication, OpenTelemetry tracing, comprehensive testing and Docker deployment to help you ship fast.

Features

vertical-slice-architectureevent-driven-architecturecqrsrabbitmq-messagingrest-apijwt-authenticationrole-based-access-controldistributed-tracingswagger-documentationdependency-injectiondomain-driven-designinbox-patternoutbox-patternproblem-details-standard

Feature Flags

authenticationsubscriptionsecommerceauthorizationloggingErrorTrackingnotificationsapiDocsformsValidationloggingmonitoring

Recommended Use Cases

distributed-systemsmicroservices-architectureevent-driven-systemsbooking-systemsscalable-applications

Frontend

None

Backend

nestjsnodejstypescripttypeormrabbitmqpostgresqlmongodbaxiosjoipassportopentelemetryprometheus

Auth Providers

passportjwt

Deployment Targets

verceldockerdocker-compose

Payment Providers

None

Quick Facts

โญ Stars
246
๐Ÿด Forks
49
๐Ÿงพ License
mit
๐Ÿ”„ Active
Yes
๐Ÿ•’ Last Commit
2025-10-09T12:55:43.000Z

Stack

Framework
nestjs
Language
typescript
Database
postgresql, mongodb
Auth
jwt, passport
ORM
typeorm
Testing
jest, testcontainers, supertest
Monitoring
opentelemetry, prometheus, grafana, jaeger, zipkin
Logging
nestjs-logger, opentelemetry

Data Layer

Databases
postgresql, mongodb
ORM
typeorm

UI Stack

Developer Experience

Docker
Yes
Tests
Yes
Quickstart
Yes
env.example
Yes

Pricing

Classification
free
Selected
โ€”
Notes
MIT licensed open-source project
Get Started with this Boilerplate