Newsletter
Join the Community
Subscribe to our newsletter for the latest news and updates
Express API boilerplate with TypeScript, Sequelize ORM, Zod validation, Swagger docs, and Docker support.
Express API with Sequelize is a production-ready Node.js boilerplate for building REST APIs with Express 4.21, TypeScript 5.8, and Sequelize 6, maintained by masb0ymas on GitHub. This template wires together a full backend toolchain: Sequelize ORM for PostgreSQL, Zod schema validation, Nodemailer for email, Pino for logging, Swagger OpenAPI 3.x documentation, ESLint/Prettier code quality, and Docker containerization. It is built on the author's earlier express-api template and is released under the MIT License.
Express API with Sequelize is a starter repository that takes a configured environment and produces a runnable REST API server with database models, validation, logging, and API documentation. It runs on Node.js (version 20 or higher) with PostgreSQL as the default database, and requires Docker only for optional containerized deployment. The project is authored by masb0ymas (github.com/masb0ymas) and is currently at version 6.0.0.
yarn db:create and yarn db:reset.docker build -t yourname/express:v1.0.0 . and docker run -p 7000:8000 -d yourname/express:v1.0.0.cp .env.example .env, configure PostgreSQL credentials, and start with yarn dev for a hot-reloading development server.yarn secret to generate a ready-to-use .env file with generated secrets.yarn build and yarn start to run the compiled server, or containerize it with the provided Dockerfile.The template follows a standard setup flow: you clone the repository, copy the environment template, install dependencies with Yarn, create and reset the database, then launch the development server. The repository also includes a release script (yarn release) for versioning and a Docker workflow for deployment. The main branch uses CommonJS modules; ES Module support is listed as pending implementation because of a Sequelize issue.
The project is free and open source under the MIT License, as indicated by the license badge in the repository header. There are no paid tiers or subscription plans.
Node.js version 20 or higher is required to run Express API with Sequelize. The prerequisites section explicitly lists Node.js at least 20.x, along with PostgreSQL and optional Docker.
Not yet. The main branch uses CommonJS by default because ES Module support is pending implementation due to a Sequelize issue. Developers who need ESM will need to wait for the maintainer to address this limitation.
After installing dependencies, run yarn db:create to create the database and yarn db:reset to reset the schema. You can also create the PostgreSQL database manually and configure the connection in the .env file.
Yes, it is released under the MIT License, so you can use, modify, and distribute it freely, including in commercial projects.
Build the image with docker build -t yourname/express:v1.0.0 . and run the container with docker run -p 7000:8000 -d yourname/express:v1.0.0. The container exposes port 8000, mapped to host port 7000 in the example.
