@xyzblocks/web-notifications-server
v3.0.3
Published
Web Notifications Server
Downloads
4
Readme
@xyzblocks/web-notifications-server
Web Notifications Server
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/