A clean and ready-to-use Express.js template for building modern server-side applications with minimal setup.
npm i -g express-template-kitThen run:
npx express-template-kit my-appmyApp/
│
├── src/
│ ├── config/ # DB, cloud configs
│ ├── controllers/ # Route logic
│ ├── middlewares/ # Auth, error, etc.
│ ├── models/ # Mongoose schemas
│ ├── routes/ # API endpoints
│ ├── utils/ # Reusable helpers
│ └── app.js # Main express app
│
├── .env
├── .gitignore
├── package.json
└── server.js # Connect DB and start server| Script | Description |
|---|---|
npm run dev |
Starts development server with nodemon |
npm start |
Starts production server |
- Express.js with ESM module support
- dotenv configured for environment variables
- Nodemon for live-reloading during development
- Modular folder structure (routes, controllers, middlewares)
- Error-handling middleware built-in
- Scalable and clean architecture
- Easy to extend for APIs or full-stack apps
npx express-template-kit my-app
cd my-app
npm install
npm run devServer will start on: http://localhost:3000/api/v1
You can change the port and other settings in the .env file.
Contributions are welcome! Here's how to contribute:
- Fork the repository
- Create your feature branch: git checkout -b feature/your-feature-name
- Commit your changes: git commit -m 'Add new feature'
- Push to the branch: git push origin feature/your-feature-name
- Submit a pull request
- 🌐 https://mtayyebdev.vercel.app
- 📧 Contact: Available via portfolio site
Licensed under MIT