react-cli-setup
v1.0.12
Published
A modern React + Vite + ShadCN + Redux-Toolkit starter template with Tailwind CSS, Radix UI, and optimized development setup. Perfect for building sleek, fast, and accessible UI components. π Let me know if you need any modifications! π
Downloads
2
Maintainers
Readme
React Setup CLI π
A CLI tool to quickly set up a React project with pre-configured templates like ShadCN, Redux, and more.
π Why Use React Setup CLI?
- β‘ Instant Project Setup β Get a fully configured React project in seconds.
- π¨ Pre-built Templates β Includes ShadCN, Redux, and more.
- π Best Practices β Organized structure with ready-to-use configurations.
- π₯ GitHub-Hosted Templates β Clones the latest templates directly.
π₯ Installation
To install globally:
npm i -g react-cli-setupIf react-setup is not recognized, try running with npx:
npx react-setup init --shadcn --name my-appAlso, ensure the global binaries path is added to your system's Environment Variables.
π Usage
To create a new React project, run:
react-setup init --shadcn --name my-appor with Redux:
react-setup init --shadcn-redux --name my-appThis will:
β
Clone the selected template from GitHub
β
Create a new folder with the specified name
β
Guide you to the next steps
π Available Commands
react-setup init
Initialize a new React project.
| Option | Description |
| ---------------- | ------------------------------------------------------- |
| --shadcn | Clone the ShadCN-based React project |
| --shadcn-redux | Clone the ShadCN-based React project with Redux |
| --electron | Clone the ShadCN-based React project with electron |
| --name <name> | Set a custom project name (default: my-react-project) |
Example:
react-setup init --shadcn --name my-awesome-appπ’ Project Structure
Once initialized, your project will have:
my-app/
οΈπ src/
π components/
π pages/
π store/
π assets/
π routes/
π main.tsx
οΈπ public/
οΈπ package.json
οΈπ tsconfig.json
οΈπ vite.config.ts
οΈπ README.mdπ Next Steps
After cloning, navigate into the project and start:
cd my-app
npm install
npm run devπ License
This project is licensed under the MIT License.
π€ Contributing
Contributions are welcome! Open an issue or submit a PR.
π¨βπ» Author
Nitesh
π§ Email: [email protected]
π GitHub: https://github.com/Niteshcodes/
Happy coding! π
