samuelli / web-push-book

Web Push Book

Home Page:https://web-push-book.gauntface.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

web-push-book

Greenkeeper badge

A book on implementing push notifications in a web site / web app (Whatever you want to call it).

This is in extremely early stages (i.e. me just dumping down thoughts without proof reading or much focus), so if you spot or have feedback please raise an issue (or better yet, a pull request) and I'll do my best to address it when I can.

Otherwise get early access here.

Cheers, Matt

Running Node Demo

If you wish to run the node demo you'll first need to ensure you have the NPM dependencies installed:

npm install

Then start the node app by running:

node src/demos/node-server/index.js

Running Site Locally

If you want to run the site locally you'll need to install a number of dependencies for Jekyll and NPM.

  • Install RVM
  • rvm install ruby-2.2.0
  • gem install bundler
  • rvm . do bundle install
  • npm install

To run the site, you need to run gulp.

gulp

Note: Inlining Code

This repo uses a regex to inline code snippets into the docs.

To inline the contents of a whole file, use the following markup:

<% include('../../code-samples/example.js') %>

To incline a snippet of code, use the following markup:

<% include('../../code-samples/example.js', 'snippet-name') %>

This will be run before pandoc is used to generate the book.

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International License.

About

Web Push Book

https://web-push-book.gauntface.com

License:Other


Languages

Language:JavaScript 59.8%Language:HTML 22.9%Language:CSS 15.9%Language:Shell 1.3%Language:Ruby 0.1%