This is a simple To-Do List app built using NextJs, Prisma, tRPC and Shadcn UI. The app allows users to add and delete tasks, sort tasks by date and completion status, and filter tasks by their completion status.
- Add Task: Users can add new tasks with a title and a due date.
- Delete Task: Users can delete existing tasks.
- Sort Tasks: Tasks are automatically sorted by their due date and completion status.
- Filter Tasks: Users can filter tasks to show only completed or uncompleted tasks.
- Responsive design
Before you begin, ensure you have met the following requirements:
- Node.js (v14.x or later)
- npm (v6.x or later) or yarn (v1.x or later)
- PostgreSQL (or any other database supported by Prisma)
- Next.js: React framework for server-side rendering and static site generation, providing a powerful toolkit for building performant web applications.
- Prisma: Next-generation ORM for database access, making it easy to work with databases in a type-safe manner.
- tRPC: End-to-end typesafe APIs, allowing you to create robust and type-safe API layers between your client and server.
- TypeScript: Static type-checking, enhancing code quality and developer productivity with types and interfaces.
- Shadcn UI: A modern UI component library for React, offering a set of customizable and accessible components to speed up the development of beautiful and responsive user interfaces.
Follow these instructions to get a copy of the project up and running on your local machine for development and testing purposes.
- Clone the repository:
git clone https://github.com/Filbert88/To-do-app.git
- Navigate to the project directory:
cd to-do-app
- setup .env file and add your database URL:
DATABASE_URL="postgresql://JohnDoe:password@localhost:5432/defaultdb"
- Generate Prisma Client:
npm run postinstall
- Migrate the database:
npm run db:generate
- Run the server:
npm run dev
you can try the app that already hosted on vercel in https://to-do-app-ez.vercel.app/
This project is deployed on vercel. Before deploying, remember to add your database url on the environment variables. To learn more about vercel, you can view the documentation at Vercel
- Repository : https://github.com/Filbert88/To-do-app
- Website Link : https://to-do-app-ez.vercel.app/