UNPKG

express-template-kit

Version:

A clean and ready-to-use Express.js template for modern servers.

86 lines (66 loc) • 2.57 kB
# šŸš€ express-template-kit [![NPM Version](https://img.shields.io/npm/v/express-template-kit.svg)](https://www.npmjs.com/package/express-template-kit) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE) [![Downloads](https://img.shields.io/npm/dt/express-template-kit.svg)](https://www.npmjs.com/package/express-template-kit) A clean and ready-to-use Express.js template for building modern server-side applications with minimal setup. # šŸ“¦ Installation (Recommended) ```bash npm i -g express-template-kit ``` Then run: ```bash npx express-template-kit my-app ``` # šŸ“ Folder Structure ```bash myApp/ │ ā”œā”€ā”€ 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 ``` # āš™ļø Scripts | Script | Description | | ------------- | -------------------------------------- | | `npm run dev` | Starts development server with nodemon | | `npm start` | Starts production server | # 🌟 Features - āœ… 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 # šŸš€ Quick Start Guide ```bash npx express-template-kit my-app cd my-app npm install npm run dev ``` Server will start on: http://localhost:3000/api/v1 You can change the port and other settings in the .env file. # šŸ¤ Contributing Contributions are welcome! Here's how to contribute: 1. Fork the repository 2. Create your feature branch: git checkout -b feature/your-feature-name 3. Commit your changes: git commit -m 'Add new feature' 4. Push to the branch: git push origin feature/your-feature-name 5. Submit a pull request # šŸ§‘ā€šŸ’» Author ### Muhammad Tayyeb - 🌐 https://mtayyebdev.vercel.app - šŸ“§ Contact: Available via portfolio site # License Licensed under MIT