Skip to content

πŸ“ Next.js To-Do List App πŸš€ A simple and efficient To-Do List App built with Next.js that allows users to add, edit, delete, and mark tasks as completed. This project helped me explore the power of Next.js, React Hooks, Local Storage, and Tailwind CSS.

Notifications You must be signed in to change notification settings

sahilkhurana01/To-Do-List-App-with-Next.js

Repository files navigation

πŸ“ Next.js To-Do List App

πŸš€ A simple and efficient To-Do List App built with Next.js that allows users to add, edit, delete, and mark tasks as completed. This project helped me explore the power of Next.js, React Hooks, Local Storage, and Tailwind CSS.

🌟 Features

  • βœ… Add Todos: Quickly add new tasks.
  • πŸ“ Edit Todos: Modify existing tasks.
  • ❌ Delete Todos: Remove completed or unnecessary tasks.
  • βœ”οΈ Mark as Completed: Track task progress.
  • πŸ’Ύ Persistent Storage: Uses LocalStorage to save tasks.
  • 🎨 Modern UI: Styled with Tailwind CSS for a sleek design.

πŸš€ Tech Stack

  • Next.js – SSR, optimized performance
  • React.js – Component-based UI
  • Tailwind CSS – Modern styling
  • LocalStorage – Data persistence

πŸ“‚ Project Structure

πŸ“¦ todo-list-app
β”œβ”€β”€ πŸ“ pages
β”‚   β”œβ”€β”€ index.js (Home Page)
β”‚   β”œβ”€β”€ about.js (About Us Page)
β”‚   β”œβ”€β”€ contact.js (Contact Page)
β”‚   β”œβ”€β”€ todos.js (My Todos Page)
β”‚   └── edit/[id].js (Edit Todo Page)
β”œβ”€β”€ πŸ“ components
β”‚   β”œβ”€β”€ Header.js
β”‚   β”œβ”€β”€ Footer.js
β”‚   β”œβ”€β”€ TodoItem.js
β”‚   β”œβ”€β”€ Modal.js
β”‚   └── AddTodo.js
β”œβ”€β”€ πŸ“ styles (Tailwind CSS styles)
└── README.md

🎯 Getting Started

1️⃣ Clone the repository

git clone https://github.com/sahilkhurana01/todo-list-app.git

cd todo-list-app

2️⃣ Install dependencies

yarn install  # or npm install

3️⃣ Run the development server

yarn dev  # or npm run dev

πŸ“Œ Open http://localhost:3000 to view in the browser.

πŸ’‘ What I Learned

  • How to manage state using React Hooks (useState, useEffect)
  • Implementing dynamic routing in Next.js
  • Using LocalStorage for data persistence
  • UI design with Tailwind CSS

πŸ› οΈ Future Enhancements

  • πŸ”Ή User Authentication (NextAuth, Firebase, or JWT)
  • πŸ”Ή Database Integration (MongoDB, PostgreSQL, or Firebase)
  • πŸ”Ή Drag & Drop feature for reordering tasks
  • πŸ”Ή Dark Mode Support

πŸ“Œ Live Demo

πŸ”— Attached below

next.js.todo.app.mp4

πŸ“’ Contributing

Feel free to fork, clone, and contribute to this project. PRs are welcome! πŸŽ‰

🏷️ License

This project is open-source and available under the MIT License.

About

πŸ“ Next.js To-Do List App πŸš€ A simple and efficient To-Do List App built with Next.js that allows users to add, edit, delete, and mark tasks as completed. This project helped me explore the power of Next.js, React Hooks, Local Storage, and Tailwind CSS.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages