A modern full-stack application template using React with Vite for lightning-fast development, Tailwind CSS for styling, and Express.js for the backend. This template provides a clean starting point for building full-stack applications with a beautiful dark-themed UI and optimized development experience.
- Frontend: React + Vite for lightning-fast development
- Styling: Tailwind CSS for utility-first styling
- Backend: Express.js REST API
- Build: Optimized production builds with Vite
- API Integration: Ready-to-use API endpoints
- Node.js (v14 or higher)
- npm or yarn
- Git
- Clone the repository:
git clone https://github.com/kirtick28/Sample-Vite-React-tailwind.git
cd Sample-Vite-React-tailwind- Set up the backend:
cd server
npm install- Create a
.envfile in the server directory:
PORT=5000- Set up the frontend:
cd ../client
npm install- Start the backend server:
cd server
node index.jsThe server will start running on http://localhost:5000
- In a new terminal, start the frontend development server:
cd client
npm run devThe frontend will be available at http://localhost:5173
The backend provides the following REST API endpoints:
- GET
/api/test- Returns a test message
- Response:
{ message: "API is working!" }
- GET
/api/health- Returns the health status of the API
- Response:
{ status: "healthy" }
- GET
/*- Returns a default message for any undefined routes
- Response:
{ message: "Backend is running!" }
- Responsive design
- Loading states and error handling
- Real-time API integration
server/
├── index.js # Main server file
├── .env # Environment variables
└── package.json # Dependencies
client/
├── src/
│ ├── App.jsx # Main application component
│ └── main.jsx # Application entry point
├── index.html # HTML template
└── package.json # Dependencies
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
- Kirtick M M - Initial work
- React.js
- Express.js
- Tailwind CSS
- Vite