This is a Next.js project bootstrapped with create-next-app
. Itβs a beginner-friendly To-Do List app that helps users manage tasks efficiently while learning Next.js, React Hooks, and Tailwind CSS.
β
Add, Toggle, and Delete Tasks β Easily manage daily tasks.
β
Data Persistence with Cookies β Tasks remain after page refresh.
β
Dark Mode Support β Automatically adapts based on user preferences.
β
Next.js API Routes β (If backend is added) Handles task management efficiently.
β
Tailwind CSS for Styling β A clean and modern UI with responsive design.
First, install dependencies:
npm install
Then, run the development server:
npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev
Open http://localhost:3000 in your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
π nextjs-todo/
β£ π components/ # Reusable React components
β β£ π TodoItem.js # Single to-do item component
β£ π pages/ # Next.js pages
β β£ π index.js # Main page (To-Do List)
β£ π public/ # Static assets
β£ π styles/ # Global styles
β£ π package.json # Dependencies & scripts
β π README.md # Project documentation
API routes can be accessed at:
http://localhost:3000/api/hello
The pages/api
directory is mapped to /api/*
. Files in this directory are treated as API routes instead of React pages.
The easiest way to deploy this Next.js app is using Vercel:
For detailed deployment instructions, check out Next.js Deployment Documentation.
To learn more about Next.js, check out:
Contributions are welcome! Feel free to fork this repository, create a new branch, and submit a pull request.
This project is open-source and available under the MIT License.
π₯ Happy Coding! π Let me know if you need any changes!