docker-express-postgres-boilerplate
A modern boilerplate for building scalable and maintainable REST APIs with JWT authentication, written in TypeScript. It features Docker, Express, Drizzle and integrates Clean Architecture principles with Dependency Injection powered by Inversify.
nodejsapidockerboilerplatejwtexpresstypescriptdatabaseauthenticationeslintjestrest-api
FreeRepo
Overview
This is a TypeScript-based REST API boilerplate built with Express, PostgreSQL and Docker that provides authentication, database management and testing infrastructure out of the box. It uses Clean Architecture principles, Dependency Injection and includes JWT authentication, Drizzle ORM for type-safe queries, comprehensive test coverage over 90% and pre-configured tools like ESLint, Jest and error handling middleware to help developers quickly start building scalable backend services.
Features
docker-containerizationjwt-authenticationtype-safe-database-queriesschema-first-database-modelsunit-testse2e-testshigh-code-coverageclean-architecturedependency-injectionroute-protectioncentralized-error-handlingsecurity-headerscorsschema-validationdatabase-transactionscode-lintinghttp-request-loggingautomatic-migration-generation
Feature Flags
authenticationblogemailsecommercefileUploadsauthorizationteamsOrgscmsformsValidationerrorTrackingloggingvalidationdockertesting
Recommended Use Cases
scalable-rest-apismaintainable-backend-applicationsmicroservicesauthentication-systemsdomain-driven-design-projects
Frontend
None
Backend
expressnodejstypescript
Auth Providers
jwt
Deployment Targets
docker
Payment Providers
None
Quick Facts
โญ Stars
41
๐ด Forks
9
๐ Active
Yes
๐ Last Commit
2025-11-04T10:47:03Z
Stack
Framework
express
Language
typescript
Database
postgresql
Auth
jwt
ORM
drizzle-orm
Testing
jest, supertest
Logging
morgan
Data Layer
Databases
postgresql
ORM
drizzle-orm
UI Stack
Developer Experience
Docker
Yes
Tests
Yes
Quickstart
Yes
env.example
Yes
Pricing
Classification
free
Selected
โ
Notes
Open source boilerplate template