CLI to setup multi-stack project
npm install stack-installer-cli> The fastest way to bootstrap modern web development projects with pre-configured setups
StackForge CLI is a powerful command-line tool that instantly scaffolds production-ready projects with your favorite tech stacks. Skip the tedious setup and jump straight into coding with pre-configured boilerplate code, routing, styling, and essential packages.
- šÆ 4 Popular Stack Options: React (JS/TS) and Express (Prisma/Mongoose)
- ā” Lightning Fast Setup: Get a complete project running in under 2 minutes
- šØ Pre-configured Styling: Tailwind CSS ready to go
- š ļø Built-in Routing: React Router and Express routes already set up
- š Authentication Boilerplate: JWT auth patterns included
- š¦ Advanced Package Options: Optional extras like WebSocket, Redis, Socket.IO
- š Beautiful CLI Experience: Interactive prompts with colorful feedback
- š§ Smart Configuration: Auto-generates .env files and project structure
``bashRun directly with npx (recommended)
npx stackforge-cli
$3
`bash
npx stackforge-cli
`Follow the interactive prompts to:
1. Choose your tech stack
2. Name your project
3. Select additional packages (optional)
š Available Stacks
| Stack | Description | Includes |
|-------|-------------|----------|
| React + JS | Modern React with JavaScript | Vite, React Router, Tailwind CSS, ESLint |
| React + TS | React with TypeScript | Vite, React Router, Tailwind CSS, TypeScript, ESLint |
| Express + Prisma | Node.js API with Prisma ORM | Express, Prisma, JWT Auth, CORS, Helmet |
| Express + Mongoose | Node.js API with MongoDB | Express, Mongoose, JWT Auth, CORS, Helmet |
š ļø CLI Parameters
$3
| Flag | Description | Example |
|------|-------------|---------|
|
-v, --verbose | Show detailed output during installation | npx stackforge-cli -v |
| -a, --advanced | Enable advanced package selection | npx stackforge-cli -a |$3
When using the
-a flag, you can select additional packages:#### React Projects
- WebSocket - Real-time communication
- @acernity/ui - Beautiful UI components
#### Express Projects
- Redis - In-memory data store and caching
- Socket.IO - Real-time bidirectional communication
- Bull Queue - Job queue system
- Kafka - Event streaming platform
$3
`bash
Standard interactive setup
npx stackforge-cliVerbose mode (see all installation details)
npx stackforge-cli -vAdvanced mode with extra packages
npx stackforge-cli -aCombine flags
npx stackforge-cli -v -a
`šļø Project Structure
$3
`
my-react-app/
āāā src/
ā āāā components/
ā āāā pages/
ā āāā hooks/
ā āāā utils/
ā āāā App.jsx
āāā public/
āāā tailwind.config.js
āāā vite.config.js
āāā package.json
`$3
`
my-express-app/
āāā src/
ā āāā controllers/
ā āāā middleware/
ā āāā models/
ā āāā routes/
ā āāā server.js
āāā prisma/ (if Prisma)
āāā .env
āāā package.json
`šÆ What You Get Out of the Box
$3
- ā” Vite for lightning-fast development
- šØ Tailwind CSS with custom configuration
- š§ React Router with example routes
- š§ ESLint with sensible defaults
- š± Responsive design patterns
- šŖ Component library structure$3
- š JWT Authentication with refresh tokens
- š”ļø Security Middleware (Helmet, CORS)
- š Database Models and schemas
- š£ļø RESTful API routes structure
- ā ļø Error Handling middleware
- š Request Validation setup$3
- š Environment Variables auto-configured
- š .gitignore with sensible defaults
- š¦ Package Scripts for development and production
- š Development Workflow readyš Getting Started After Installation
$3
`bash
cd your-project-name
npm run dev
`
Your React app will be running on http://localhost:5173$3
`bash
cd your-project-nameFor Prisma projects
npx prisma migrate dev --name init
npx prisma generateStart development server
npm run dev
`
Your API will be running on http://localhost:8000šØ Customization
All projects come with sensible defaults but are fully customizable:
- Tailwind CSS: Modify
tailwind.config.js for your design system
- ESLint: Adjust rules in .eslintrc.js
- Vite: Configure build options in vite.config.js`We welcome contributions! If you'd like to add new stacks or improve existing ones:
1. Fork the repository
2. Create your feature branch
3. Submit a pull request
MIT License - feel free to use this in your projects!
Having issues? Found a bug?
- Open an issue on GitHub
- Check our documentation
- Ask questions in discussions
---
Happy coding! š
Built with ā¤ļø to save developers time and get you building faster.