Menu

1 / 2

How to build a project-management API in Node.js with NestJS: permissions, races, SSE

DEV Community: nestjs·Kamil Mysliwiec·5 days ago
#UMJsMcW0
#devtonestjs#devto#dev#import#user
Long article (20337 words) — no AI summary yet.
Reading 0:00
15s threshold

If you're choosing a stack for a project-management backend (projects, tasks, comments, a board that updates itself), it looks like a CRUD app, and any Node.js framework gets you to the first endpoint in an afternoon. The hard parts show up once a team uses it. Two people drag the same card at the same moment. Someone pages through the task list while someone else adds tasks to it. A browser tab streams live updates and must only ever see its own projects. A reminder job runs on every instance of the API, and the obvious version of it sends the same reminder more than once.

In this post I'll build that API with NestJS 12, PostgreSQL and Drizzle, every file of it, and spend most of the words on those parts. The docs version, kept up to date, is Build a project-management API in Node.js .

What we're building

Here's the feature list, and what each item means once several people use the app at the same time:

Permissions per record, not per route.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.