express-template-kit
Version:
A clean and ready-to-use Express.js template for modern servers.
86 lines (66 loc) ⢠2.57 kB
Markdown
# š express-template-kit
[](https://www.npmjs.com/package/express-template-kit)
[](LICENSE)
[](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