A powerful CLI tool to quickly scaffold full-stack and backend projects with Express, MongoDB, and modern frontend frameworks.
npx rb-create-appnpm install -g rb-create-app
create-express-mongo-
Run the command in your terminal:
npx rb-create-app
-
Answer the prompts:
- Project Name: Enter your project name (e.g.,
my-awesome-app) - Project Type: Choose between:
Backend Only- Just the Express serverFull-Stack- Backend + Frontend with Vite
- Backend Language: Choose
JavaScriptorTypeScript - Frontend Framework (if full-stack): Choose
React,Vue, orSvelte
- Project Name: Enter your project name (e.g.,
-
Wait for setup: The CLI will:
- Create your project structure
- Generate all necessary files
- Install dependencies automatically
-
Start developing:
cd your-project-name npm run dev
- ✅ Express.js server (JavaScript or TypeScript)
- ✅ MongoDB integration ready
- ✅ Sample routes, controllers, and models
- ✅ Environment configuration
- ✅ CORS and middleware setup
Everything above, plus:
- ✅ Vite-powered frontend (React/Vue/Svelte)
- ✅ Pre-configured proxy to backend
- ✅ Monorepo setup with npm workspaces
- ✅ Concurrent dev scripts (run both servers at once)
# Create a full-stack TypeScript app with React
npx rb-create-app
✔ Project name: my-app
✔ Project type: Full-Stack
✔ Backend language: TypeScript
✔ Frontend framework: React
# Navigate and start
cd my-app
npm run devYour app will be running at:
- Backend: http://localhost:5000
- Frontend: http://localhost:5173
If you're developing this CLI tool:
-
Clone the repository:
git clone <your-repo-url> cd Project-setup-cli-tool
-
Install dependencies:
npm install
-
Link globally for testing:
npm link
-
Test the CLI:
create-express-mongo
-
Make changes and test - changes are reflected immediately!
-
Unlink when done:
npm unlink -g rb-create-app
- Node.js 14 or higher
- npm or yarn
Issue: Command not found after global install
Solution: Make sure npm global bin is in your PATH
Issue: Installation fails
Solution: Try running with administrator/sudo privileges
Issue: Port already in use
Solution: Change the port in the generated .env file
ISC
Found a bug or have a feature request? Please open an issue on GitHub.