A simple Todo application built with Next.js and TypeScript that demonstrates API routes, optimistic UI updates, and basic CRUD operations.
Live Site : Click here
- Create new tasks
- Mark tasks as complete/incomplete
- Delete tasks
- Optimistic UI updates for smooth user experience
- Next.js 15.3.0
- React 19
- TypeScript
- Tailwind CSS
- Lucide React for icons
- Node.js (LTS version recommended)
- npm or yarn
- Clone the repository:
git clone https://github.com/yourusername/nextjs-todo-app.git
cd nextjs-todo-app
- Install dependencies:
npm install
# or
yarn install
- Run the development server:
npm run dev
# or
yarn dev
- Open http://localhost:3000 with your browser to see the application.
app/page.tsx- Main Todo application component with state managementapp/lib/data.ts- In-memory data store and CRUD functionsapp/api/todos/route.ts- API routes for listing and creating todosapp/api/todos/[id]/route.ts- API routes for updating and deleting specific todos
- Add persistent storage with a database
- Add authentication
- Implement filtering and sorting
- Add due dates to tasks
MIT
