Task Manager is a web application built with Next.js that allows users to manage their tasks efficiently. Users can create, update, delete, and filter tasks based on priority and other criteria.
- Read ,Create, update, and delete tasks
- Sort tasks by priority, due_date, status and created_at etc
- Filter tasks based on status, priority, and other attributes
- Typescript
- Next.js
- Tailwindcss
- Prisma ORM
- Postgresql
- Shadcn.ui
-
Clone the repository:
git clone https://github.com/veronica-76sh/Task-manager.git cd task-manager-app
-
Install dependencies:
npm install
-
Run the development server:
npm run dev
-
Open http://localhost:3000 with your browser to see the result.
Retrieves all tasks.
-
Query parameters:
sort
,filter
-
Response:
[ { "id": "string", "title": "string", "description" : "string" ,"priority": "string", "status": "string", "dueDate": "date" } ]
Creates a new task.
-
Request body:
{ "title": "string", "description" : "string" ,"priority": "string", "status": "string", "dueDate": "date" }
-
Response body:
{ "message": "Task created successfully" }
Updates an existing task.
-
Request body:
{ "title": "string", "description" : "string", "status": "string", "priority": "string" }
-
Response:
{ "message": "Task updated successfully" }
Deletes a task.
-
Response:
{ "message": "Task deleted successfully" }
Tasks can be sorted by the following criteria:
priority dueDate status
- GET /api/tasks?sort=priority
Tasks can be filtered by the following attributes:
status priority
- GET /api/tasks?status=IN_PROGRESS
-
Fork the repository.
-
Create a new branch: git checkout -b feature/your-feature-name.
-
Make your changes and commit them: git commit -m 'Add some feature'.
-
Push to the branch: git push origin feature/your-feature-name.
-
Open a pull request.