Hereβs a clean, professional README.md you can drop straight into your repo. Itβs well-structured, beginner-friendly, and follows best GitHub practices β all in Markdown as requested.
## π Step 1: Create GitHub Repository
1. Go to GitHub and create a new repository.
2. Name it in **camelCase** (example: `viteSetupProject`).
3. Choose **Public** or **Private**.
4. β
Check **Add a README file**.
5. After creation, copy the **SSH URL**
Example:
```bash
git@github.com:username/viteSetupProject.gitgit clone git@github.com:suhailroushan/viteSetupProject.git
cd viteSetupProject
mkdir client && cd clientpnpm create vite@latest .- Framework β React
- Variant β JavaScript
- rolldown-vite β Yes
- Install & Start now β No
pnpm install
pnpm up --latestpnpm add tailwindcss @tailwindcss/vitecode .Delete the following files/folders:
public/vite.svg
src/assets/
eslint.config.js
Update vite.config.js:
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import tailwindcss from '@tailwindcss/vite'
// https://vite.dev/config/
export default defineConfig({
plugins: [react(), tailwindcss()],
})@import "tailwindcss";import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.jsx'
createRoot(document.getElementById('root')).render(
<App />
)import React from 'react'
const App = () => {
return (
<>
<h1 className="text-3xl font-bold underline">
Hello World
</h1>
</>
)
}
export default Apppnpm dev
# or
pnpm run devOpen your browser at:
http://localhost:5173
You now have:
- β‘ Fast Vite setup
- βοΈ React with clean structure
- π¨ Tailwind CSS ready
- π¦ pnpm-based dependency management
MIT β feel free to use and modify.
Happy coding π
---