expresso-cli-pro
v1.5.0
Published
Expresso CLI Pro - The ultimate Full-Stack MVC & API Scaffolder
Maintainers
Readme
Expresso CLI Pro 🚀☕
Expresso CLI Pro is a premium, smart full-stack framework for scaffolding professional Node.js projects with a clean MVC architecture, integrated React (Vite) frontend, auto-generated documentation, and Laravel-style API monitoring.
🌟 Key Features
- Smart Routing: Automatically switches between React Frontend and JSON API.
- Expresso Telescope 🔭: A beautiful, built-in Laravel Telescope clone to monitor API requests, payloads, headers, and performance in real-time.
- Auto-Generated Swagger Docs: Generates complete API documentation (Swagger UI) automatically—no manual JSDoc required!
- Database Auto-Creation: Instantly connects and auto-creates your MySQL/MongoDB databases and tables on first run.
- Full-Stack Orchestrator: Run both Backend and Frontend with a single command.
- Interactive Master Menu: No commands to remember, just run and select.
🚀 Quick Start (Backend Only)
Initialize Project:
npx expresso-cli-pro init(Select your DB. If using MySQL, the database and tables are created automatically!)
Start Server:
cd your-app-name npm run dev
🔭 Expresso Telescope (API Monitoring)
Get a stunning, real-time dashboard to monitor all incoming API traffic, exactly like Laravel Telescope.
- Run the generator in your project:
npx expresso-cli-pro generate:telescope - Visit
http://localhost:3000/telescope - Features include: Dark/Light Mode toggle, Live Polling pause/play, Request Filtering, and full Request/Response/Headers payload viewing.
📚 Auto-Generated API Docs
Tired of writing JSDoc comments? Expresso handles it automatically.
- Generate documentation boilerplate:
npx expresso-cli-pro generate:docs - Simply run your server using
npm run dev. Yourswagger_output.jsonwill auto-generate based on your actual routes! - Visit
http://localhost:3000/api-docsto test your APIs.
💻 Full-Stack Setup (Add React)
Add Frontend: Inside your project root, run:
npx expresso-cli-pro g(Select "Frontend (React Integration)")
Run Both (Dev Mode): This starts Node.js and React (Vite) simultaneously:
npm run dev
🛠 Production Build & Deploy
When you are ready to go live, use the Smart Build command:
npx expresso-cli-pro build:stackWhat this does:
- Builds the React production bundle.
- Syncs it to
src/public. - Configures the server to serve it dynamically.
📂 Master Menu
If you don't want to type commands, just run:
npx expresso-cli-proAnd select your action from the menu! 🛠📦🚀
