Giter Club home page Giter Club logo

static-pwa-boilerplate's Introduction

Basic html template for modern static progressive web apps

Ready to create a static progressive web app with a manifest and a serviceworker, easily deployable with Github pages.

Includes:

  • Thumbnail images
  • Skeleton CSS + normalize
  • Web app manifest
  • Basic service worker + registration companion
  • Initial web push notification support (you will need a external server)

DEMO: https://gallaoro.github.io/static_pwa_boilerplate/ or visit the gh-pages branch of this repository

demo application

Installation

  • Install git sudo apt-get install git
  • Clone the repo: git clone https://github.com/lellefood/static_pwa_boilerplate.git
  • Rename directory: mv static_pwa_boilerplate <new_project_name>
  • Change directory: cd <new_project_name>
  • Modify the manifest.json with your informations
  • Start writing your website

Developing

Project folder stucture

root
├── css
│   └── skeleton.css
│   └── normalize.css
│   └── index.css
│
├── js
│   └── index.js
│
├── img
│   └── thumb
│       └── 64.png
│       └── 144.png
│       └── 192.png
│       └── 512.png
│       └── 1366x768.png
│
├── index.html
├── manifest.json
├── README.md
└── serviceworker.js

FAQ

  • How can I add a new page? Add a new file <new_page_name>.html in the root of the project.
    Link to it with /<new_page_name>.html

  • How can I add web push notifications? The initial code to get a pushSubscription is already given in the index.js script, follow this tutorial to know how web push work.

Deploy

Follow the simple instructions on Github pages website to know how to deploy your pwa for free

static-pwa-boilerplate's People

Contributors

gallaoro avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.