Express + TypeScript + Prisma Boilerplate
🚀 Express.js + TypeScript Boilerplate for 2024: Backend Development!
I made a prisma boilerplate code generator for nestJS
I watched a talk on a tool called Amplication literally 30 minutes ago, saw the title just now and genuinely thought it'd be a promo for that. If you're interested: https://github.com/amplication/amplication
(The talk is going to be up on the WarsawJS YouTube channel in a while)
More on reddit.com[deleted by user]
Hello everyone,
since I often find myself recreating the same stuff over and over again, I created this Express/TS boilerplate repo.
This is honestly the first time I do something like this, and I would love to know from you if I there are stuff I can improve.
these are the dependencies in the project, straight from the package.json:
"dependencies": {
"@prisma/adapter-libsql": "^7.4.1",
"@prisma/client": "^7.4.1",
"bcrypt": "^5.1.1",
"compression": "^1.7.4",
"cors": "^2.8.5",
"dotenv": "^16.4.5",
"express": "^4.18.3",
"express-async-errors": "^3.1.1",
"express-rate-limit": "^7.1.5",
"helmet": "^7.1.0",
"http-status-codes": "^2.3.0",
"jsonwebtoken": "^9.0.2",
"morgan": "^1.10.0",
"passport": "^0.7.0",
"passport-jwt": "^4.0.1",
"passport-local": "^1.0.0",
"swagger-jsdoc": "^6.2.8",
"swagger-ui-express": "^5.0.1",
"uuid": "^9.0.1",
"winston": "^3.11.0",
"zod": "^3.22.4"
},
I built a production-ready Express.js + TypeScript boilerplate with JWT auth, Prisma, Docker, and monitoring tools
Hey developers! 👋
I've created a modern Express.js boilerplate that I wish I had when starting my Node.js projects. It's designed to help you skip the tedious setup and jump straight into building your API.
🔥 Key Features:
- TypeScript for type safety and better DX
- JWT authentication with refresh tokens
- Prisma ORM with MySQL integration
- Prometheus + Grafana monitoring
- Docker & Docker Compose setup
- Comprehensive testing setup (Jest)
- GitHub Actions CI/CD
- Security best practices (Helmet, rate limiting, CORS)
- Request validation using Zod
- Winston logging with daily rotation
🛠️ Everything is pre-configured and production-ready. Just clone, install, and start coding!
📦 Check it out: https://github.com/mzubair481/express-boilerplate
I built this because I found myself repeating the same setup for every new Express project. The boilerplate follows best practices and includes everything you need for a scalable and secure API.
Would love to hear your thoughts and suggestions for improvements! Feel free to contribute or raise issues if you find any.
Happy coding! 💻