✅ Interactive CLI powered by Inquirer.js
✅ Choose React (CRA) or Vite as frontend framework
✅ Support for JavaScript or TypeScript
✅ Backend setup with Express.js + Sequelize (SQL) or Express.js + Mongoose (MongoDB)
✅ Auto-installs CORS, dotenv, react-router-dom by default
✅ Choose styling: CSS, Bootstrap, or Tailwind CSS 🎨
✅ Pre-configures frontend-backend proxy (CRA or Vite)
✅ Adds a default health-check route (/status) to test full-stack connectivity
✅ Optional installation of ESLint & Prettier for clean coding
✅ Works across Windows, macOS, and Linux 🖥️
- Node.js (CLI tool & package manager)
- Inquirer.js – for CLI prompts
- Chalk – for colorful CLI output
- fs-extra / fs – for file system handling
- React (CRA) or Vite
- JavaScript / TypeScript
- Styling frameworks:
- CSS
- Bootstrap
- Tailwind CSS
- Express.js (default backend framework)
- Database Choices:
- SQL → Sequelize + SQLite (default, can expand to PostgreSQL, MySQL, etc.)
- MongoDB → Express + Mongoose
react-router-dom– routing in React ⚡cors– enable CORS in Expressdotenv– environment variable managementeslint– linting 🧹prettier– code formatting
The goal of this project is to streamline and automate full-stack setup. Instead of wasting time configuring projects manually, this CLI lets you:
- Choose your stack interactively 🖱️
- Generate ready-to-run frontend + backend apps ⚡
- Start building features instantly 🚀
This project is built for students, developers, and teams who create multiple projects and want a consistent, fast, and reliable setup.
✨ Add Next.js as a frontend option ✨ Support for PostgreSQL, MySQL, and MongoDB Atlas by default ✨ Auto-generate Dockerfile & docker-compose.yml for containerization ✨ Add Redux / Zustand / TanStack Query as optional frontend state managers ✨ Auto-create unit tests with Jest / Mocha ✨ Add GitHub Actions CI/CD pipeline support
- Node.js v14+
- npm (bundled with Node.js)
- Git installed (recommended for Vite and CRA)
- Any OS: Windows / macOS / Linux
# Clone this repo
git clone https://github.com/parthamk/CLIJS.git
cd CLIJS
# Make file executable (Linux/Mac)
chmod +x cli.js
# Run the script
./cli.jsnode cli.js- Open project in VS Code:
code .- Navigate to server:
cd server
node index.js # Runs backend on http://localhost:5000- Navigate to client:
cd ../client
npm start # Starts React app (frontend)- Visit:
- Frontend →
http://localhost:3000(CRA) orhttp://localhost:5173(Vite) - Backend →
http://localhost:5000/status
- Frontend →
project-name/
│── client/ # React/Vite frontend
│ └── src/ # React source files
│── server/ # Express backend
│ └── index.js # Entry point (API + DB setup)
│── cli.js # The CLI script
When you run your project, the frontend will fetch backend status and show:
✔ Frontend is running successfully
✔ Server is running successfully
All systems check complete. Happy hacking! 🚀
Contributions are always welcome! 🙌
- Fork repo
- Create feature branch
- Submit PR
MIT License – Free to use & modify.
🔥 With this CLI tool, you save time + effort and kickstart your dev projects with best practices pre-configured.
💡 Recommended: Keep this tool globally installed using:
bash > npm install -g . > cli.js >