Skip to content

Repository files navigation

ToDo NextJS App

Description

This is a simple todo app built with NextJS, Shadcn, and Swapy. It is a simple web application that allows you to add and delete todos. It also allows you to add and delete task lists while saving your data to local storage, meaning on refresh, your data is still there.

How To Run

In order to run the project, you need to have Node.js installed. Next, you can run the project using:

npm install
npm run dev

For production, you can use:

npm install
npm run build
npm run start

How to Deploy

login to netlify, choose deploy from git and choose the repository. Next, in the branch, choose the 'main' branch and click deploy. However, if it isn't automatically filled, put npm run build in the build command, and .next in the publish directory. Enjoy!

Attributions

ShadCN: https://ui.shadcn.com/ NextJS: https://nextjs.org/ LocalStorage: https://dev.to/collegewap/how-to-use-local-storage-in-nextjs-2l2j Drag and Drop (Swapy): https://github.com/TahaSh/swapy/blob/main/examples/react/App.tsx

Link to Deployment

https://thiha-ludex-todo-app.netlify.app/

Why NextJS?

So initially I tried creating the project using only React, With create-react-app, but I ran into issues regarding conflicting dependencies. I then went on to try Vite and React, but I also faced issues, but this time with Tailwind. Since I want to use shadcn, I decided to now use NextJS.

Issues with Swapy

Swapy is a great library for creating drag and drop divs with nice animations. However, it is still very buggy and the documentation is not the best. I tried to use it for the tasks themselves, but I kept running into issues regarding the order of the tasks after dragging them, even the state of it. I feel like I have spent too much time trying to figure out how to use it for the tasks, so for now it will be only on the task lists themselves. I also tried using Swapy for both the lists and the tasks within them, but Swapy would get confused and allowed swapping of lists and tasks, which does not make sense.

Things I would like to add
  • Allow editing of the task list title
  • Allow editing of the task
  • Add a drag and drop for the tasks within the task lists
  • Add a sidebar with ShadCN, allowing to create many task list managers (one for work, one for home, one for shopping, etc.)
  • Add a recently deleted tasks section located in the sidebar

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages