This demo showcases how to implement a push notification functionality. Packages used:
-
Client
- Spectre.css: For the UI look and feel, nice and simple (:
- Riot: For the view implementation, I'm a hipster for javascript tools
-
Server
- Firebase: Cloud functions are a nice way to simulate simple server operations!
This project consists of two parts: the web application and the server. In this case the server is just a Firebase cloud function that received a POST request and triggers a push notification.
To perform a correct installation you need to run npm install
or yarn
in the root folder and the server folder.
Note: The functionality requires a pair of public/private keys, which
Please check the information in the package.json
file and you will see the list of available commands.
- Development:
npm run dev
oryarn dev
- Production:
npm run build
oryarn build
- Development:
npm run serve
oryarn serve
- Production:
npm run deploy
oryarn deploy
In order to generate a valid pair of cryptographic keys and store them in the way that this project requires you can execute the command npm run keys
or yarn keys
.