A modern, responsive Todo application built with React, TypeScript, and Tailwind CSS. This application provides a clean and intuitive interface for managing your daily tasks.
- ✅ Add, edit, and delete tasks
- ✅ Mark tasks as complete/incomplete
- ✅ Clean, modern UI with Tailwind CSS
- ✅ Responsive design for all devices
- ✅ Local storage persistence
- ✅ TypeScript for type safety
- ✅ Component-based architecture
- Framework: React 19.1.0
- Language: TypeScript
- Styling: Tailwind CSS 4.1.11
- Build Tool: Vite 7.0.0
- UI Components: Shadcn UI
- Icons: Lucide React & React Icons
Before you begin, ensure you have the following installed on your system:
- Node.js (version 18.0 or higher)
- npm (version 8.0 or higher) or yarn (version 1.22 or higher)
node --version
npm --versionIf you don't have Node.js installed, download it from nodejs.org.
git clone https://github.com/chef0111/todo-react.git
cd todo-reactUsing npm:
npm installTo start the development server:
npm run devTo build the application for production:
npm run buildThis will:
- Compile TypeScript
- Bundle and optimize your code
- Create a
distfolder with production-ready files
To preview the production build locally:
npm run previewtodo-react/
├── public/ # Static assets
│ └── vite.svg
├── src/
│ ├── components/ # React components
│ │ ├── ui/ # Reusable UI components
│ │ ├── Footer.tsx
│ │ ├── Header.tsx
│ │ ├── TodoApp.tsx # Main todo application
│ │ └── TodoItem.tsx # Individual todo item
│ ├── hooks/ # Custom React hooks
│ │ └── useLocalStorage.ts
│ ├── lib/ # Utility functions
│ │ └── utils.ts
│ ├── assets/ # Images and icons
│ ├── App.tsx # Main App component
│ ├── main.tsx # Entry point
│ └── index.css # Global styles
├── package.json # Dependencies and scripts
├── vite.config.ts # Vite configuration
├── tsconfig.json # TypeScript configuration
└── tailwind.config.js # Tailwind CSS configuration
| Command | Description |
|---|---|
npm run dev |
Start development server |
npm run build |
Build for production |
npm run preview |
Preview production build |
npm run lint |
Run ESLint |
Enjoy building with KampfPortal! 🚀