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.
When you run the script, it automatically:
- Installs and configures Tailwind CSS
- Updates
vite.configwith 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
src/
βββ assets/
βββ components/
βββ features/
β βββ auth/
β βββ api/
β βββ components/
β βββ hooks/
β βββ index.ts
βββ hooks/
βββ layouts/
βββ pages/
βββ routes/
βββ services/
βββ store/
βββ types/
βββ utils/- Create a fresh Vite React project:
npm create vite@latest my-app
cd my-app
npm install-
Copy
app.pyinto the project root -
Run the script:
python app.py- Done π
Your project is now structured and ready for real development.
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.
- Python (automation script)
- Vite
- React
- Tailwind CSS
- 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)
Feel free to fork it and modify it for your own workflow.
If you improve it, share it back.