Skip to content

andrelinos/notifications-service

Repository files navigation

Notifications Service

Notifications Service

Github top language Github language count Repository size License Github forks Github stars

About   |   Features   |   Technologies   |   Requirements   |   Starting   |   License   |   Author


About

This project aims to create and manage the notifications of a system in an organized and well be structured way. Developed during Rocketseat Education's Ignite Lab Classes (@rocketseat-education)

Features

✔️ Create notification;
✔️ List notification recipient by id;
✔️ Count notifications from recipient id;
✔️ Get recipient data from notification id;
✔️ Cancel notification by id;
✔️ Mark notification as read;
✔️ Mark notification as unread;
✔️ Persist information to database;

Nota: Database options to persist data https://www.prisma.io/docs/concepts/database-connectors#overview

Technologies

The following tools were used in this project:

Other tools

  • Upstash
      • Create new Cluster
      • Insert a name
      • Select a region
      • Click Create to continue

Requirements

Before starting 🏁, you need to have Git and Node installed.

Starting

  • Access your terminal

  • Execute commands bellow:

    # clone project
    $ git clone https://github.com/andrelinos/notifications-service.git
    
    # Access project folder 
    cd notifications-service
  • Access here and follow steps to continue

Commands to use

# Execute application
$ yarn start

# Create a new notification message
$ yarn create:producer

Url application

The server will initialize in the http://localhost:3000




Routes application

{
 "recipientId": "0dc9af21-4915-4908-b8b1-779a7cad9629",
 "content": "Você tem uma nova notificação",
 "category": "social"
}
{
  "count": 2
}
{
  "notifications": [
    {
      "id": "e44e7c26-8939-4d22-8834-c539ba2d0949",
      "content": "Você tem conta pra pagar",
      "category": "mega",
      "recipientId": "0dc9af21-4915-4908-b8b1-779a7cad9629"
    },
    {
      "id": "e92af443-40fd-4c86-90a2-069a4cd3b9bf",
      "content": "Você tem conta pra pagar",
      "category": "mega",
      "recipientId": "0dc9af21-4915-4908-b8b1-779a7cad9629"
    }
  ]}

License

This project is under license from MIT. For more details, see the LICENSE file.

Made with ❤️ by Andrelino Silva

 

Back to top

About

Developed during Rocketseat Education's Ignite Lab Classes by @rocketseat-education

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published