A modern React application built with Vite, featuring task management functionality, posts viewing, and theme switching capabilities. This project demonstrates the implementation of React best practices, context API usage, and responsive design with Tailwind CSS.
- Task Management (Create, Read, Update, Delete)
- Posts viewing and interaction
- Dark/Light theme switching
- Responsive design
- Modern React practices (Hooks, Context API)
- Clean component architecture
- React 18
- Vite
- Tailwind CSS
- Context API for state management
- React Router for navigation
- Modern JavaScript (ES6+)
Before you begin, ensure you have installed:
- Node.js (v14.0.0 or higher)
- npm (v6.0.0 or higher)
-
Clone the repository:
git clone https://github.com/your-username/your-repo-name.git cd your-repo-name -
Install dependencies:
npm install
-
Start the development server:
npm run dev
-
Open http://localhost:5173 to view it in your browser.
src/
├── api/ # API integration
├── components/ # Reusable components
├── context/ # Context providers
├── pages/ # Page components
└── assets/ # Static assets
npm run dev- Starts the development servernpm run build- Builds the app for productionnpm run preview- Preview the production build locally
- Create an account on Vercel
- Install Vercel CLI:
npm install -g vercel
- Run:
vercel login vercel
- Create an account on Netlify
- Build your project:
npm run build
- Drag and drop the
distfolder to Netlify's sites page or Connect your GitHub repository through Netlify's UI
- Add homepage to package.json:
{ "homepage": "https://username.github.io/repo-name" } - Install gh-pages:
npm install --save-dev gh-pages
- Add deploy scripts to package.json:
{ "scripts": { "predeploy": "npm run build", "deploy": "gh-pages -d dist" } } - Deploy:
npm run deploy
For this project, I recommend using Vercel because:
- Zero-configuration deployment
- Automatic builds and deployments from Git
- Seamless integration with React and Vite
- Free tier with generous limits
- Excellent performance and reliability
- 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
This project is licensed under the MIT License - see the LICENSE file for details.
- React Team for the excellent documentation
- Vite Team for the build tool
- Tailwind CSS Team for the styling framework



