1.0.8 β€’ Published 5 months ago

create-pro-app v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
5 months ago

πŸš€ Create Pro App

Version License Node.js Vite

Create Pro App is a powerful, modern CLI tool to scaffold professional React applications with lightning-fast setup. Built with Vite under the hood, it offers a customizable boilerplate packed with features like authentication, state management, Tailwind CSS, and moreβ€”perfect for developers who want to hit the ground running.


✨ Features

  • Language Options: Choose between JavaScript or TypeScript for your project.
  • Package Managers: Supports npm or Yarnβ€”your choice!
  • Project Templates:
    • Minimal: A clean, lightweight React setup.
    • Dashboard: A pre-styled dashboard template (requires Tailwind CSS).
  • Authentication: Add route protection with a sleek login page.
  • State Management: Integrate Redux Toolkit with optional persistence.
  • API Handling: Pick Axios or Fetch for seamless API integration.
  • Styling:
    • Tailwind CSS: Rapidly style your app with utility classes.
    • Custom Fonts: Select from Google Fonts like Roboto, Inter, Poppins, etc.
  • Developer Tools:
    • Git: Initialize a Git repository with a robust .gitignore.
    • Husky: Set up Git hooks for pre-commit linting/formatting.
    • Prettier: Enforce consistent code formatting with a .prettierignore.
    • ESLint: Lint your code with modern React and TypeScript support.

πŸ› οΈ Installation

Get started in seconds by installing create-pro-app globally or running it via npx.

Via npm

npm install -g create-pro-app
create-pro-app

Via Yarn

yarn global add create-pro-app
create-pro-app

Via npx (No Install Required)

npx create-pro-app

πŸŽ‰ Usage

  1. Run the CLI:

    create-pro-app

    Or, if installed globally:

    create-pro-app
  2. Answer the Prompts:

    • Project Name: Name your project (e.g., my-pro-app).
    • Language: Pick JavaScript or TypeScript.
    • Package Manager: Choose npm or Yarn.
    • Template: Select Minimal or Dashboard.
    • Features: Enable authentication, Redux, Tailwind, etc., as needed.
  3. Review & Confirm:

    • A preview of your configuration will appear. Confirm to proceed!
  4. Project Setup:

    • The CLI will create your project directory, install dependencies, and generate files with a delightful spinner animation.
  5. Start Coding:

    cd your-project-name
    npm run dev  # or yarn dev

    Open http://localhost:5173 in your browser!


πŸ“‚ Project Structure

Here’s what your generated project looks like:

your-project-name/
β”œβ”€β”€ node_modules/           # Dependencies
β”œβ”€β”€ src/                   # Source code
β”‚   β”œβ”€β”€ components/        # React components (e.g., Dashboard)
β”‚   β”œβ”€β”€ pages/             # Pages (e.g., Login) if authentication is enabled
β”‚   β”œβ”€β”€ routes/            # Route definitions (if authentication is enabled)
β”‚   β”œβ”€β”€ store/             # Redux store and slices (if selected)
β”‚   β”œβ”€β”€ utils/             # API handlers (axiosInstance or fetchInstance)
β”‚   β”œβ”€β”€ App.jsx            # Main app component
β”‚   β”œβ”€β”€ main.jsx           # Entry point
β”‚   └── index.css          # Tailwind CSS (if selected)
β”œβ”€β”€ .gitignore             # Git ignore file
β”œβ”€β”€ .prettierignore        # Prettier ignore file (if Prettier is enabled)
β”œβ”€β”€ .prettierrc            # Prettier config (if enabled)
β”œβ”€β”€ eslint.config.js       # ESLint config (if enabled)
β”œβ”€β”€ index.html             # HTML entry point
β”œβ”€β”€ package.json           # Project metadata and scripts
β”œβ”€β”€ tailwind.config.js     # Tailwind config (if enabled)
β”œβ”€β”€ tsconfig.json          # TypeScript config (if TypeScript is selected)
└── vite.config.js         # Vite configuration

βš™οΈ Configuration Options

Prompts Breakdown

PromptOptions/ChoicesDescription
projectNameText input (default: my-pro-app)Name of your project directory.
languageJavaScript, TypeScriptProgramming language for your app.
packageManagernpm, YarnTool to manage dependencies.
templateMinimal, DashboardBase structure of your app (Dashboard requires Tailwind).
authenticationYes/NoAdds route protection with a login page.
stateManagerYes/NoEnables Redux Toolkit for global state.
persistYes/NoAdds state persistence to Redux (requires stateManager).
apiHandlerAxios, FetchHTTP client for API requests.
tailwindYes/NoIntegrates Tailwind CSS for styling.
customFontsYes/NoAdds a custom Google Font.
fontChoiceRoboto, Inter, etc.Selects a font (if customFonts is enabled).
gitInitYes/NoInitializes a Git repository.
huskyYes/NoSets up Husky for Git hooks.

πŸ“œ License

This project is licensed under the MIT License.

🌐 Get in Touch


Built with ❀️ by Ravinder Singh Negi. Happy coding!

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