/HttpToWebPush

Primary LanguageC#MIT LicenseMIT

HttpToWebPush

A middleware between Http and Web Push Notifications

Technologies

  • .NET 6
  • ASP.NET Core 6
  • Blazor WebAssembly
  • Typescript
  • TailwindCSS

Deploy

appsettings.json

{
  "ConnectionStrings": {
    "HttpToWebPush": ""
  },
  "HttpToWebPush": {
    "PushApi": {
      "subject": "",
      "publicKey": "",
      "privateKey": ""
    }
  }
}

docker-compose.yml

version: '3'

services:
  grafana:
    image: ghcr.io/patrick-b6n/http-to-web-push:latest
    container_name: http-to-web-push
    restart: always
    volumes:
      - ${PWD}/appsettings.json:/app/appsettings.json

Development

Database

docker-compose up

Backend

cd ./src/HttpToWebPush.Server/

dotnet watch

Frontend

cd ./src/HttpToWebPush.UI/

yarn watch-ts   # watch for typescript changes
yarn watch-css  # watch for css changes 
yarn build-sw   # build serviceworker

# TODO: combine into one command

Thanks