An open API service indexing awesome lists of open source software.

https://github.com/ajay-dhangar/todo-app-optimized

A high-performance, responsive Todo application built with React, TypeScript, Vite, Tailwind CSS, and Vitest. Fully optimized for modern web standards with testing, ESLint, and responsive UI.
https://github.com/ajay-dhangar/todo-app-optimized

eslint modern-ui modern-ui-ux performance prettier react react-hooks responsive-design tailwindcss todo-app typescript typescript-react unit-testing vite vitest

Last synced: 2 months ago
JSON representation

A high-performance, responsive Todo application built with React, TypeScript, Vite, Tailwind CSS, and Vitest. Fully optimized for modern web standards with testing, ESLint, and responsive UI.

Awesome Lists containing this project

README

          

# ๐Ÿ“ TodoApp โ€“ Optimized React + TypeScript Application

A modern, high-performance Todo application built using React, TypeScript, Vite, and Tailwind CSS. Designed with best practices in mind for performance, scalability, and maintainability.

![TodoApp Screenshot](./assets/social-preview.png)

---

## โœจ Features

- โš›๏ธ **React 18** with concurrent features
- ๐Ÿ” **TypeScript** for static type checking
- โšก **Vite** for lightning-fast development and builds
- ๐ŸŽจ **Tailwind CSS** for utility-first styling
- ๐Ÿงช **Vitest** for fast unit & integration testing
- ๐Ÿง  Optimized with `React.memo`, `useMemo`, `useCallback`
- ๐Ÿงผ Linting & formatting with ESLint + Prettier
- ๐Ÿ“ฑ Fully responsive and accessible design

---

## ๐Ÿš€ Getting Started

### Prerequisites
- Node.js `v16+`
- npm or yarn

### Installation

```bash
# Clone the repository
git clone https://github.com/your-username/todo-app-optimized.git
cd todo-app-optimized

# Install dependencies
npm install

# Start the dev server
npm run dev
````

### Run Tests

```bash
npm run test
```

### Build for Production

```bash
npm run build
npm run preview
```

---

## ๐Ÿ“ Project Structure

```
src/
โ”œโ”€โ”€ components/ # Reusable UI components
โ”œโ”€โ”€ hooks/ # Custom hooks like useTodos
โ”œโ”€โ”€ types/ # Type definitions
โ”œโ”€โ”€ utils/ # Utility & performance helpers
โ”œโ”€โ”€ data/ # Mock data
โ”œโ”€โ”€ test/ # Unit tests (Vitest)
โ”œโ”€โ”€ App.tsx # Root component
โ”œโ”€โ”€ main.tsx # Entry point
โ””โ”€โ”€ index.css # Tailwind styles
```

---

## ๐Ÿงช Testing

* โœ… Hooks: 95% Coverage
* โœ… Components: 88% Coverage
* โœ… Utils: 100% Coverage

```bash
npm run test:watch # Watch mode
npm run test:coverage # Generate coverage report
```

---

## ๐Ÿ“Š Performance Insights

* ๐Ÿš€ Lighthouse Scores:

* Performance: 95
* Accessibility: 98
* Best Practices: 100
* SEO: 95

* ๐Ÿงฉ Bundle:

* Initial: \~98 KB (gzipped)
* Lazy Loaded: \~47 KB
* Total Assets: \~145 KB

---

## ๐Ÿงฐ Developer Tools

| Tool | Purpose |
| --------------- | ----------------- |
| React | UI Library |
| TypeScript | Type Safety |
| Vite | Build Tool |
| Tailwind CSS | Styling |
| Vitest | Testing Framework |
| ESLint/Prettier | Code Quality |

---

## ๐Ÿ“ฑ Responsive Design

| Device | Screen Width |
| ------- | -------------- |
| Mobile | < 768px |
| Tablet | 768px โ€“ 1024px |
| Desktop | > 1024px |

---

## ๐ŸŒ Deployment Options

* Vercel
* Netlify
* GitHub Pages
* Docker

```bash
npm run build
npm run preview
```

---

## ๐Ÿ™Œ Contributing

1. Fork the repo
2. Create a feature branch
3. Write clean, tested code
4. Run `npm run lint && npm run test`
5. Create a PR with proper title & description

---

## ๐Ÿ“„ License

This project is licensed under the [MIT License](./LICENSE).

---

## โค๏ธ Acknowledgments

* [React](https://reactjs.org/)
* [TypeScript](https://www.typescriptlang.org/)
* [Vite](https://vitejs.dev/)
* [Tailwind CSS](https://tailwindcss.com/)
* [Vitest](https://vitest.dev/)

---

Built with ๐Ÿ”ฅ by [Ajay Dhangar](https://github.com/Ajay-Dhangar)