{"id":21603230,"url":"https://github.com/paoloprodossimolopes/node-microservice-notification","last_synced_at":"2026-05-09T01:36:32.376Z","repository":{"id":227188682,"uuid":"770714803","full_name":"PaoloProdossimoLopes/node-microservice-notification","owner":"PaoloProdossimoLopes","description":"⚙️🔔 Node.js microservice using NestJS, TypeScript, and Prisma for notification management ⚙️🔔","archived":false,"fork":false,"pushed_at":"2024-03-12T03:24:18.000Z","size":120,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-18T13:55:12.010Z","etag":null,"topics":["ddd","microservice","nestjs","node","prisma","testing","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PaoloProdossimoLopes.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2024-03-12T02:57:57.000Z","updated_at":"2024-03-12T03:11:34.000Z","dependencies_parsed_at":"2024-03-12T04:24:18.349Z","dependency_job_id":"5dcbff5e-ca49-4832-8571-e7a449270ab9","html_url":"https://github.com/PaoloProdossimoLopes/node-microservice-notification","commit_stats":null,"previous_names":["paoloprodossimolopes/node-microservice-notification"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/PaoloProdossimoLopes/node-microservice-notification","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaoloProdossimoLopes%2Fnode-microservice-notification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaoloProdossimoLopes%2Fnode-microservice-notification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaoloProdossimoLopes%2Fnode-microservice-notification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaoloProdossimoLopes%2Fnode-microservice-notification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PaoloProdossimoLopes","download_url":"https://codeload.github.com/PaoloProdossimoLopes/node-microservice-notification/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PaoloProdossimoLopes%2Fnode-microservice-notification/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32804252,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-08T08:22:46.396Z","status":"ssl_error","status_checked_at":"2026-05-08T08:22:45.650Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ddd","microservice","nestjs","node","prisma","testing","typescript"],"created_at":"2024-11-24T19:15:45.222Z","updated_at":"2026-05-09T01:36:32.353Z","avatar_url":"https://github.com/PaoloProdossimoLopes.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notifications\n\nThis is a Node.js microservice built with NestJS, TypeScript, and Prisma for efficient notification management. It supports creating, reading, unreading, canceling, and listing notifications for users, as well as counting a user's notifications.\n\n[![Run in Insomnia}](https://insomnia.rest/images/run.svg)](https://insomnia.rest/run/?label=Node%20Notifications%20microservice\u0026uri=https%3A%2F%2Fgithub.com%2FPaoloProdossimoLopes%2Fnode-microservice-notification%2Fblob%2Fmain%2FInsomnia.json)\n\n## Features\n\n- Create notifications\n- Read notifications\n- Mark notifications as unread\n- Cancel notification sending\n- List a user's notifications\n- Count a user's notifications\n\n## Installation\n\n1. Clone the repository:\n\n```bash\ngit clone https://your-repository-url.git\ncd node-microservice-notification\n```\n\n2. Install dependencies:\n\n```bash\nnpm install\n```\n\n3. Set up your environment variables:\n\nCopy the `.env.example` file to a new file named `.env` and fill in your database and other environment settings.\n\n4. Run the Prisma migrations:\n\n```bash\nnpx prisma migrate dev\n```\n\n## Usage\n\nTo start the server in development mode, run:\n\n```bash\nnpm run start:dev\n```\n\nFor production mode, first build the project:\n\n```bash\nnpm run build\n```\n\nThen start the server:\n\n```bash\nnpm run start:prod\n```\n\n## Testing\n\nTo run the tests:\n\n```bash\nnpm test\n```\n\n## API Endpoints\n\nThe service defines the following API endpoints:\n\n- POST `/notifications` - Create a new notification\n- GET `/notifications/to/:recipientId` - List all notifications sended to user\n- GET `/notifications/to/:recipientId/count` - Count all notifications sended to user\n- PATCH `/notifications/:notificationId/read` - Mark a notification as read\n- PATCH `/notifications/:notificationId/unread` - Mark a notification as unread\n- PATCH `/notifications/:notificationId/cancel` - Cancel a notification already sended\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a pull request.\n\n## License\n\nThis project is unlicensed and free for use.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaoloprodossimolopes%2Fnode-microservice-notification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpaoloprodossimolopes%2Fnode-microservice-notification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpaoloprodossimolopes%2Fnode-microservice-notification/lists"}