This script automates the setup of a new React project using Vite with TypeScript and Tailwind CSS v4. It streamlines the configuration process, ensuring a minimal and efficient project structure to help you start coding immediately.
App.css
, react.svg
), keeping the project lightweight.App.tsx
with a simple, styled component using Tailwind CSS.Ensure the following are installed before running the script:
cd /path/to/your/folder
bash <(curl -s https://raw.githubusercontent.com/bhuvi819381/Script/refs/heads/main/install.sh)
To quickly set up the project, run the following command:
Alternatively, you can manually execute the script:
Clone this repository or download the script.
Open gitbash or vscode in the directory where the script is located.
Grant execute permission:
chmod +x install.sh
Run the script:
./install.sh
Enter the desired project name when prompted (e.g., my-app
).
The script will perform the following steps:
App.tsx
with a pre-configured Tailwind-styled component.Once completed, open http://localhost:5173/ in your browser to see the default Tailwind-styled app.
After running the script, App.tsx
will display a simple, centered message using Tailwind CSS:
export default function App() {
return (
<div className="flex h-screen items-center justify-center bg-gray-100 text-2xl font-semibold">
Hello, Tailwind CSS with React and TypeScript!
</div>
);
}
Bhuvnesh Upadhyay
Nishanth Venkatesan
This project is licensed under the MIT License, granting you the freedom to use, modify, and distribute it as needed.