Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/carlostojal/vcard_notifications

Notification service.
https://github.com/carlostojal/vcard_notifications

Last synced: 2 days ago
JSON representation

Notification service.

Awesome Lists containing this project

README

        

# vCard Notification Service

This service uses WebSocket to dispatch notification to the Vue.js clients.

## Authentication

This service does nothing special about authentication. In fact, it must not be trusted at all. A JWT with a symmetric key is used, which contains the user ID. The payload of the JWT just looks like this:
```json
{
"sub": "0987654321"
}
```

## Running

First, you need to setup the app by creating a `.env` file. Create a copy of the `.env.example` file and make your own changes.

### Bare metal

- Run `npm install`;
- Run `npm start`.

### Docker

- Run `docker build -t vcard_notifications .`;
- Run `docker run vcard_notifications`.