Testing push notifications with plain vanilla Javascript and a bit of Salt-N-Pepa
- Clone the repo and run
npm install
from the local repo root. - Start up your local mongo instance, if it is not already running on your local machine. If you do not have mongo installed on your machine, get it up and running before you proceed.
- Start up the server with
gulp serve
. - Open http://localhost:3000 in Chrome. You will need to make sure notifications are enabled in order for the demo to work properly.
- Push it!
gulp build
→ Compiles project CSS, Javascript, images, and HTML fromsrc
and saves todist
gulp serve
→ Compiles project files and starts the local server
Either command can be run with one or more of the following options:
--watch
→ Watch for changes, and re-compile the project files when changes are made tosrc
--minify
→ Re-compiles project files with production-ready minified Javascript