• Stars
    star
    153
  • Rank 243,368 (Top 5 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 7 years ago
  • Updated about 1 month ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Sample project for demonstrating Push Notifications based on Push API and Web Push Protocol in ASP.NET Core

Demo.AspNetCore.PushNotifications

Sample project for demonstrating Push Notifications based on Push API and Web Push Protocol in ASP.NET Core:

Running the Project

In order to run the project, some configuration is required. Inside appsettings.json there are placeholders to provide public and private VAPID keys:

{
  "ConnectionStrings": {
    "PushSubscriptionSqliteDatabase": "Filename=./../pushsubscription.db"
  },
  "PushServiceClient": {
    "Subject": "https://localhost:65506/",
    "PublicKey": "<Application Server Public Key>",
    "PrivateKey": "<Application Server Private Key>"
  }
}

Those keys can be acquired with help of online generators (https://web-push-libs.github.io/vapid/js/) or Node.js (https://rossta.net/blog/using-the-web-push-api-with-vapid.html).

Donating

My blog and open source projects are result of my passion for software development, but they require a fair amount of my personal time. If you got value from any of the content I create, then I would appreciate your support by sponsoring me (either monthly or one-time).

Copyright and License

Copyright © 2017 - 2023 Tomasz Pęczek

Licensed under the MIT License

More Repositories

1

Lib.AspNetCore.ServerSentEvents

Lib.AspNetCore.ServerSentEvents is a library which provides Server-Sent Events (SSE) support for ASP.NET Core
C#
303
star
2

Demo.AspNetCore.ServerSentEvents

Demo project for demonstrating functionality of Lib.AspNetCore.ServerSentEvents
C#
87
star
3

Lib.Net.Http.WebPush

Lib.Net.Http.WebPush is a library which provides a Web Push Protocol based client for Push Service.
C#
75
star
4

Demo.AspNetCore.MicroFrontendsInAction

Samples from the book Micro Frontends in Action implemented with ASP.NET Core
C#
62
star
5

dotnet-server-timing

Libraries that simplify the onboarding of Server Timing API (a convenient way to communicate performance metrics about the request-response cycle) in .NET projects.
C#
59
star
6

Demo.AspNetCore.WebSockets

Sample project for demonstrating low-level WebSocket protocol aspects in ASP.NET Core
C#
50
star
7

Lib.Web.Mvc

Lib.Web.Mvc is a library which contains some helper classes for ASP.NET MVC such as strongly typed jqGrid helper, attribute and helper providing support for HTTP/2 Server Push with Cache Digest, attribute and helpers providing support for Content Security Policy Level 2, FileResult providing support for Range Requests, action result and helper providing support for XSL transformation and more.
C#
45
star
8

Demo.Ndjson.AsyncStreams

Sample project for demonstrating how to use async streams and NDJSON to improve user experience by streaming JSON objects from server to client and client to server in .NET
C#
39
star
9

Codility

Solutions to Codility programming challenges and tasks.
C#
34
star
10

Lib.AspNetCore.Security

Lib.AspNetCore.Security is a library which provides security features like Content Security Policy, Strict Transport Security or Expect-CT for ASP.NET Core
C#
32
star
11

Demo.Azure.Functions.GraphQL

Sample project for demonstrating GraphQL in Azure Functions
C#
31
star
12

Demo.AspNetCore.MaxConcurrentRequests

Sample education project for demonstrating various approaches to implementing concurrent requests limit
26
star
13

Ndjson.AsyncStreams

Ndjson.AsyncStreams is a solution for working with asynchronous streaming data sources over HTTP using NDJSON (Newline Delimited JSON).
C#
26
star
14

Lib.AspNetCore.WebSocketsCompression

[Archived] Lib.AspNetCore.WebSocketsCompression is a library which provides a managed implementation of the WebSocket protocol, along with server integration components and support for permessage-deflate compression.
C#
24
star
15

Demo.AspNetCore.WebApi

Sample Web API powered by ASP.NET Core MVC, Azure Cosmos DB and MediatR
C#
24
star
16

Demo.AspNetCore.Angular.PushNotifications

Sample project for demonstrating Push Notifications based on Push API and Web Push Protocol in ASP.NET Core powered Angular application
C#
23
star
17

Lib.AspNetCore.Mvc.JqGrid

A set of libraries which provide support for jqGrid usage in ASP.NET Core.
C#
23
star
18

Demo.AspNetCore.Changefeed

Sample application showing how to expose various databases changefeed from ASP.NET Core
C#
21
star
19

Blazor.BroadcastChannel

HTML5 Broadcast Channel API implementation for Microsoft Blazor
C#
16
star
20

HttpClientFactory.Azure.Functions

[Archived] Azure Functions and Azure WebJobs binding extensions for HttpClientFactory. This is no longer the best approach: https://www.tpeczek.com/2019/10/alternative-approach-to-httpclient-in.html
C#
14
star
21

Lib.AspNetCore.Mvc.Ndjson

Lib.AspNetCore.Mvc.Ndjson is a library that provides support for NDJSON (Newline Delimited JSON) based structured data streaming to ASP.NET Core MVC
C#
13
star
22

Demo.AspNetCore.SignalR.ServerToClientRpc

C#
13
star
23

RethinkDb.Azure

Azure extensions for RethinkDB.
C#
11
star
24

Demo.AspNetCore.StreamJsonRpc

Sample project for demonstrating JSON-RPC 2.0 in ASP.NET Core
C#
11
star
25

WebSub.NET

WebSub.NET is a set of libraries which aim at providing WebSub support for .NET platform
C#
11
star
26

Demo.AspNetCore.JqGrid

Sample project for demonstrating functionality of Lib.AspNetCore.Mvc.JqGrid
C#
10
star
27

Demo.AspNetCore.Mvc.Http2

Sample application experimenting with HTTP/2 and protocol based content delivery
C#
8
star
28

Lib.Net.Http.EncryptedContentEncoding

Lib.Net.Http.EncryptedContentEncoding is a library which adds Encrypted Content-Encoding (aes128gcm) support to HttpClient
C#
7
star
29

Demo.Azure.Funtions.PushNotifications

Sample project for demonstrating Push Notifications based on Push API and Web Push Protocol in Azure Functions
C#
7
star
30

demo-dotnet-on-aks-wasi-node-pool

Sample project for demonstrating how to run a .NET based Slight and Spin applications on WASM/WASI node pool in AKS
C
5
star
31

Demo.AspNetCore.ReportTo

Sample application experimenting with Report-To header and receiving reports (Report API)
C#
4
star
32

demo-devops-practices-for-azure-infrastructure

Sample project for demonstrating how to implement DevOps practices for Azure infrastructure.
Bicep
4
star
33

Demo.RateLimitHeaders

Sample project for demonstrating how to communicate and receive rate limit quotas with rate limit headers in .NET
C#
4
star
34

Demo.AspNetCore.RSocket

POC application trying to run RSocket server on top of ASP.NET Core primitives for non-HTTP servers
C#
3
star
35

Demo.AspNetCore.Security

Demo project for demonstrating functionality of Lib.AspNetCore.Security
C#
2
star
36

SDJ.VideoChat

Simple demo application showcasing Media Capture and Streams and WebRTC technologies
JavaScript
1
star
37

Lib.AspNetCore.ClientHints

Lib.AspNetCore.ClientHints is a library which provides support for set of HTTP request header fields, colloquially known as Client Hints, to address a need to deliver optimized content for each device to ASP.NET Core
C#
1
star