@aditya_kbr01/stack-gen v1.0.21
Stack-Gen
A powerful CLI tool to generate production-ready full-stack applications with customizable configurations.
Description
stack-gen helps developers quickly scaffold full-stack applications with modern tech stacks. It provides an interactive command-line interface to select and configure your preferred stack components, saving hours of initial setup time.
Features
- Generate MERN (MongoDB, Express, React, Node.js) stacks
- Generate PERN (PostgreSQL, Express, React, Node.js) stacks
- Multiple client configurations with Tailwind CSS and Shadcn UI
- Advanced server options with JWT authentication and caching
- Customizable project structure
Installation
# Install globally (Recommended)
npm install -g @aditya_kbr01/stack-gen
npm install -g stack-gen
# Or use with npx
npx @aditya_kbr01/stack-gen
Usage
Run the CLI and follow the interactive prompts:
# If installed globally
npx @aditya_kbr01/stack-gen
# Or using npx
npx @aditya_kbr01/stack-gen
Interactive Prompts
The CLI will guide you through a series of questions:
- Project name
- Stack selection (MERN or PERN)
- Server configuration
- Client configuration
Example session:
$ stack-gen
? Enter your project name: my-awesome-app
? Choose Stack: PERN
? Choose a Server: Advance Server (Recommended)
? Choose Advance Server Variant: With JWT and Cache
? Choose a Client: Advance Client (Recommended)
? Choose Advance Client Variant: tailwind-shadcn-zinc
Available Options
Stack Options
- MERN: MongoDB, Express, React, Node.js
- PERN: PostgreSQL, Express, React, Node.js
Server Options
- Basic Server: Minimal Express server setup
- Advance Server:
- with-jwt: Express server with JWT authentication
- with-jwt-and-cache: Express server with JWT and caching
Client Options
- Basic Client: Minimal React setup with TypeScript and Vite
- Advance Client:
- tailwind: React with Tailwind CSS
- tailwind-shadcn-gray: React with Tailwind CSS and Shadcn UI (Gray theme)
- tailwind-shadcn-slate: React with Tailwind CSS and Shadcn UI (Slate theme)
- tailwind-shadcn-neutral: React with Tailwind CSS and Shadcn UI (Neutral theme)
- tailwind-shadcn-stone: React with Tailwind CSS and Shadcn UI (Stone theme)
- tailwind-shadcn-zinc: React with Tailwind CSS and Shadcn UI (Zinc theme)
Project Structure
The generated project will have the following structure:
my-stack-project/
├── client/ # Frontend React application
│ ├── public/ # Static assets
│ ├── src/ # React source code
│ ├── package.json # Frontend dependencies
│ └── ...
├── server/ # Backend Express application
│ ├── src/ # Server source code
│ ├── package.json # Backend dependencies
│ └── ...
└── package.json # Root package.json for project-wide scripts
Development
To contribute to the stack-gen:
Clone the repository:
git clone https://github.com/Adityakbr01/stack-gen.git cd stack-gen
Install dependencies:
npm install
Build the project:
npm run build
Link the package locally for testing:
npm link
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
License
This project is licensed under the MIT License - see the LICENSE file for details.
Support
For support, issues, or feature requests, please file an issue on the GitHub repository.
Made with ❤️ by Adityakbr01
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago