1.0.21 • Published 5 months ago

@aditya_kbr01/stack-gen v1.0.21

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

Stack-Gen

A powerful CLI tool to generate production-ready full-stack applications with customizable configurations.

npm version License: MIT

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:

  1. Project name
  2. Stack selection (MERN or PERN)
  3. Server configuration
  4. 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:

  1. Clone the repository:

    git clone https://github.com/Adityakbr01/stack-gen.git
    cd stack-gen
  2. Install dependencies:

    npm install
  3. Build the project:

    npm run build
  4. Link the package locally for testing:

    npm link

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. 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

1.0.21

5 months ago

1.0.20

5 months ago

1.0.19

5 months ago

1.0.18

5 months ago

1.0.17

5 months ago

1.0.16

5 months ago

1.0.15

5 months ago

1.0.14

5 months ago

1.0.13

5 months ago

1.0.12

5 months ago

1.0.11

5 months ago

1.0.10

5 months ago

1.0.9

5 months ago

1.0.8

5 months ago

1.0.7

5 months ago

1.0.6

5 months ago

1.0.5

5 months ago

1.0.4

5 months ago

1.0.3

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago