A fast and modern CLI tool to scaffold ready-to-use Node.js Express backend projects.
Generate a clean, professional Express server with support for MongoDB and PostgreSQL in seconds.
- ⚡ Extremely fast project generation
- 📁 Clean and scalable folder structure
- 🗄️ MongoDB + Mongoose (default)
- 🐘 PostgreSQL + Prisma support
- 🔐 JWT authentication middleware included
- 📦 Automatic
npm install - 🌐 Install in current directory with
. - ✨ Full ES Modules support (
"type": "module") - 🚀 Ready for production
npx create-server-nodejs my-appnpx create-server-nodejs my-app --postgresqlnpx create-server-nodejs .my-app/
├── Controllers/ # Controllers and business logic
├── Models/ # Database models
├── Routers/ # API routes
├── Middlewares/ # Authentication, validation, error handling
├── Utils/ # Helper functions
├── config/ # Configuration files
├── prisma/ # Prisma schema (only when using PostgreSQL)
├── server.js
├── app.js
├── .env.example
├── package.json
└── README.mdcd my-app
# Copy environment variables
cp .env.example .env
# For PostgreSQL only:
# npx prisma generate
# npx prisma db push
# Run development server
npm run dev| Command | Description |
|---|---|
npx create-server-nodejs <name> |
Create a new project |
npx create-server-nodejs . |
Scaffold in current directory |
--mongodb |
Use MongoDB + Mongoose (default) |
--postgresql |
Use PostgreSQL + Prisma |
- Express.js
- MongoDB + Mongoose or PostgreSQL + Prisma
- JWT Authentication
- bcryptjs, cors, morgan, dotenv
- Nodemon (dev dependency)
This project is licensed under the MIT License.
Made with ❤️ for faster backend development Happy coding!