In ProgressBackendJune 2024

Task Management API

A task management REST API supporting projects, tasks, subtasks, and assignments. Features JWT authentication, role-based permissions, and Prisma ORM for type-safe database operations.

Overview

A task management REST API supporting projects, tasks, subtasks, and assignments. Features JWT authentication, role-based permissions, and Prisma ORM for type-safe database operations.

Architecture

RESTful API with middleware-based auth. Zod validates all inputs. Prisma manages schema and migrations. The service layer encapsulates business logic for tasks, projects, and users.

Key Features

What makes this project stand out.

Project and task CRUD operations
Subtask support with ordering
JWT authentication with role permissions
Input validation with Zod schemas
Soft delete for data recovery

Tech Stack

Technologies used to build this project.

Express.jsPrismaPostgreSQLJWTZod

Lessons Learned

Key takeaways from building this project.

1Input validation at the boundary prevents bugs downstream
2Soft deletes are safer than hard deletes
3Zod schemas double as TypeScript types
Built with v0