Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@xyzblocks/web-notifications-server

xyzblocks3MIT3.0.3TypeScript support: included

Web Notifications Server

readme

@xyzblocks/web-notifications-server

Web Notifications Server

Build Status

Installation

npm install @xyzblocks/web-notifications-domain @xyzblocks/web-notifications-server --save

API

  • function webNotificationsServer(notificationRepository: INotificationRepository, subscriptionService: SubscriptionService): express.Router

Getting Started

const app: express.Application = express();

app.use(
  webNotificationsServer(
    new InMemoryNotificationRepository(),
    new SubscriptionService(new InMemoryNotificationRepository(), new InMemorySubscriptionRepsitory()),
  ),
);

app.listen(3000);

Browse Swagger Documentation via http://localhost:3000/swagger/

Browse Demo Page via http://localhost:3000/demo/