How enoquetembe/notifications-service works
Project type and purpose
• This is a standalone microservice (“Notification Service”) implemented in Node.js/TypeScript using the Nest.js framework.
• Its responsibility is to expose an HTTP API to send, cancel, read, count, and retrieve notifications, storing them in a database via Prisma.
File structure
• Top-level directories and files:
• prisma/ – database schema, migrations, and local SQLite dev.db
• src/
– app/ – domain layer: entities, repository interface, use-case implementations and errors
– infra/
· database/ – Prisma service, mappers, and Prisma-backed repository
· http/ – Nest controllers, DTOs, view models, and HTTP module
– app.module.ts, main.ts – Nest application bootstrap
• test/ – unit and e2e test artifacts
• package.json, nest-cli.json, tsconfig*, .env, config, lint, and build files
README for additional insights
• Confirms it’s a microservice, built with Nest.js, Prisma, Jest, TS.
• Usage patterns: typical HTTP/JSON calls, local SQLite in dev, easily extensible to other channels (email/SMS/push).