https://github.com/tapiwamakandigona/express-api-starter
Production-ready REST API starter with Express, TypeScript, Prisma, JWT auth, validation, error handling, and tests
https://github.com/tapiwamakandigona/express-api-starter
api-boilerplate backend express jest jwt-authentication nodejs prisma rest-api typescript zod
Last synced: 3 months ago
JSON representation
Production-ready REST API starter with Express, TypeScript, Prisma, JWT auth, validation, error handling, and tests
- Host: GitHub
- URL: https://github.com/tapiwamakandigona/express-api-starter
- Owner: tapiwamakandigona
- License: other
- Created: 2026-02-18T09:41:45.000Z (4 months ago)
- Default Branch: main
- Last Pushed: 2026-02-27T14:00:25.000Z (4 months ago)
- Last Synced: 2026-02-27T18:44:21.211Z (4 months ago)
- Topics: api-boilerplate, backend, express, jest, jwt-authentication, nodejs, prisma, rest-api, typescript, zod
- Language: TypeScript
- Homepage:
- Size: 65.4 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
- Security: SECURITY.md
Awesome Lists containing this project
README
Express + TypeScript + Prisma REST API Starter
A production-grade REST API boilerplate with JWT authentication, input validation, Prisma ORM, comprehensive error handling, and full test coverage.
---
## โก What's Included
This is not a tutorial project โ it's a **production-ready starter** designed for immediate use in real applications.
| Layer | Technology | Purpose |
|-------|-----------|---------|
| **Runtime** | Node.js + Express | HTTP server |
| **Language** | TypeScript (Strict Mode) | Type safety |
| **ORM** | Prisma | Database access with migrations |
| **Auth** | JWT + bcrypt | Stateless authentication |
| **Validation** | Zod | Runtime input validation |
| **Testing** | Jest + Supertest | Unit + integration tests |
| **CI/CD** | GitHub Actions | Automated build + test |
---
## ๐๏ธ Architecture
```mermaid
graph TD;
Client[HTTP Client] --> Router[Express Router];
Router --> Middleware[Auth Middleware / JWT];
Middleware --> Controller[Route Controllers];
Controller --> Service[Business Logic];
Service --> Prisma[Prisma ORM];
Prisma --> DB[(PostgreSQL)];
Controller --> Validator[Zod Schemas];
```
---
## ๐ Quick Start
```bash
git clone https://github.com/tapiwamakandigona/express-api-starter.git
cd express-api-starter
npm install
cp .env.example .env
npx prisma migrate dev
npm run dev
```
## ๐งช Run Tests
```bash
npm test
```
---