node-exstarter
v2.1.0
Published
A lightweight CLI tool to create Express backend projects.
Maintainers
Readme
🚀 Express Backend Starter
A lightning-fast way to bootstrap your Express.js backend project with essential configurations and best practices. Features real-time API logging with beautiful formatting and comprehensive monitoring tools to make development workflow smoother.
🚦 Quick Start
You can create your backend project in three ways:
1. Using npx (Recommended)
npx node-exstarter my-backend-app
cd my-backend-app
npm run dev2. In Existing Folder
# First create and enter your project folder
mkdir my-backend-app
cd my-backend-app
# Initialize the Express backend
npm install node-exstarter
# Start development server
npm run dev📁 Project Structure
my-backend-app/
├── src/
│ ├── config/ # Configuration files
│ ├── controllers/ # Route controllers
│ ├── middlewares/ # Custom middlewares
│ ├── models/ # MongoDB models
│ ├── routes/ # API routes
│ └── utils/ # Utility functions
├── .env # Environment variables
├── .gitignore
├── package.json
└── server.js # Entry point⚙️ Environment Variables
Create a .env file in the root directory:
PORT=5000
MONGO_URI=your-mongodb-connection-string🛣️ Available Scripts
npm run dev- Start development server with nodemonnpm start- Start production server
📝 Configuration
MongoDB Connection
Update the MONGO_URI in your .env file:
MONGO_URI=mongodb+srv://<username>:<password>@cluster.mongodb.net/your-dbCORS Configuration
CORS is pre-configured to accept all origins. Modify in server.js for production.
✨ Features
- 🛠️ Pre-configured Express.js professional setup
- 📦 One command installation
- 📜 Realtime API logging
- 🔐 JWT authentication ready
- 🗄️ MongoDB connection setup
- 🔄 CORS enabled
- 📁 Structured project architecture
- ⚡ Development ready with nodemon
- 🌍 Environment variables configuration
🤝 Contributing
Pull requests are welcome! Feel free to contribute to make this starter template even better.
📜 License
This project is licensed under the ISC License
👨💻 Developed By
Mehedi Hasan Shanto
Full Stack Developer | MERN Specialist
- 🌐 Portfolio: mehedishanto.web.app
- 💼 LinkedIn: linkedin.com/in/mehedi-shanto
- 🐱 GitHub: @mehedifiz
"Building tools that make developers' lives easier"
Feel free to reach out for any questions or suggestions!
⭐ Found this helpful? Star it on GitHub!
