zhangxin511 / PushDemo

This is a demo repo for my medium post, a PWA application, which provide foreground and background messaging, notifications handling, using Angular, Angular Firebase, and Angular Firebase Cloud

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PushDemo

This project was generated with Angular CLI version 8.3.12. It is a demo project designed for technical article. Please read and follow that article to see how to play with demo

Run PWA locally

  1. Please update the content of environment.prod.ts to your own firebase setting
  2. Install http-server-spa globally: npm install -g http-server-spa@1.3.0, you will only need to run this once.
  3. Build production module with source map:ng build --prod --source-map
  4. Serve your application using http-server-spa dist/PushDemo/ index.html 18080 (I used 18080 port, you can use any free port you are using), visit http://localhost:18080/.

About

This is a demo repo for my medium post, a PWA application, which provide foreground and background messaging, notifications handling, using Angular, Angular Firebase, and Angular Firebase Cloud


Languages

Language:JavaScript 94.6%Language:TypeScript 5.0%Language:HTML 0.3%Language:CSS 0.1%