Skip to content

Rubab13/vite-react-setup-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 

Repository files navigation

Vite React Setup πŸš€

A simple automation script that turns a fresh Vite + React project into a production-ready codebase in seconds.

Instead of manually setting up Tailwind, folder structure, and boilerplate cleanup every time, this tool handles it for you automatically.


⚑ What It Does

When you run the script, it automatically:

  • Installs and configures Tailwind CSS
  • Updates vite.config with proper plugins
  • Cleans default Vite boilerplate
  • Sets up a production-grade folder structure
  • Adds global CSS reset + Tailwind setup
  • Organizes code into scalable architecture
  • Prepares feature-based development structure

πŸ“ Final Folder Structure

src/
β”œβ”€β”€ assets/
β”œβ”€β”€ components/
β”œβ”€β”€ features/
β”‚   └── auth/
β”‚       β”œβ”€β”€ api/
β”‚       β”œβ”€β”€ components/
β”‚       β”œβ”€β”€ hooks/
β”‚       └── index.ts
β”œβ”€β”€ hooks/
β”œβ”€β”€ layouts/
β”œβ”€β”€ pages/
β”œβ”€β”€ routes/
β”œβ”€β”€ services/
β”œβ”€β”€ store/
β”œβ”€β”€ types/
└── utils/

πŸš€ How to Use

  1. Create a fresh Vite React project:
npm create vite@latest my-app
cd my-app
npm install
  1. Copy app.py into the project root

  2. Run the script:

python app.py
  1. Done πŸŽ‰

Your project is now structured and ready for real development.


🧠 Why I Built This

Every time I started a React project, I had to repeat the same setup:

  • Tailwind installation
  • Folder structure creation
  • Boilerplate cleanup
  • Config adjustments

It was small workβ€”but repetitive and annoying.

So I automated it.

Now I can start building features immediately instead of wasting time on setup.


πŸ“Œ Tech Used

  • Python (automation script)
  • Vite
  • React
  • Tailwind CSS

πŸ’‘ Future Improvements

  • Add Redux/Zustand setup option
  • Add React Router setup
  • Add ESLint + Prettier config
  • Convert into CLI tool (npx style)
  • Add multiple templates (basic / advanced / enterprise)

🀝 Contributing

Feel free to fork it and modify it for your own workflow.

If you improve it, share it back.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages