Code Monkey home page Code Monkey logo

pwa-examples's Introduction

PWA Examples

Examples for progressive web apps.

In this repo, we currently have:

  • CycleTracker: A basic app for tracking menstrual cycles. The app's HTML includes a form to add a period cycle start and end dates. The JavaScript app functionality sorts the dates and saves thems to local storage. It also displays the dates retrieved from local storage below the form. The app includes a manifest file with three icons, color scheme, etc. The app also includes a service worker to handle asset caching.

  • a2hs: An example set up to show how Add to home screen (A2HS) works. See it live here. This includes an icon and manifest file for allowing the app to be added to home screen, and a simple service worker for making the site work offline.

  • js13kpwa: A list of A-Frame entries submitted to the js13kGames 2017 competition, used as an example for the MDN articles about Progressive Web Apps. The js13kPWA have the App Shell structure, works offline with the Service Worker, is installable thanks to the Manifest file and Add to Homescreen feature, and is re-engageable by using Notifications and Push. See it live here.

pwa-examples's People

Contributors

ahuigo avatar bsmth avatar captn3m0 avatar chrisdavidmills avatar end3r avatar estelle avatar hoopyfrood avatar mrbrain295 avatar ninofiliu avatar teoli2003 avatar wbamberg avatar yin1999 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pwa-examples's Issues

CODE_OF_CONDUCT.md file missing

As of January 1 2019, Mozilla requires that all GitHub projects include this CODE_OF_CONDUCT.md file in the project root. The file has two parts:

  1. Required Text - All text under the headings Community Participation Guidelines and How to Report, are required, and should not be altered.
  2. Optional Text - The Project Specific Etiquette heading provides a space to speak more specifically about ways people can work effectively and inclusively together. Some examples of those can be found on the Firefox Debugger project, and Common Voice. (The optional part is commented out in the raw template file, and will not be visible until you modify and uncomment that part.)

If you have any questions about this file, or Code of Conduct policies and procedures, please see Mozilla-GitHub-Standards or email [email protected].

(Message COC001)

Lighthouse PWA score below 100

This is the MDN example of a PWA. Surely the score should be continuously monitored and updated to show 100 in a Lighthouse Audit.
image

Cycletracker service worker not working

When I open /service_workers/index.html, I always see an error "sw.js:1 Uncaught (in promise) TypeError: Failed to execute 'addAll' on 'Cache': Request failed" in console, and it does not cache any data.

Probably, the name of file name in APP_STATIC_RESOURCES is wrong(styles.css -> style.css).

A2HS bug on desktop

I think there is some bug in your A2HS demo. It does not show any Add to Homescreen button in the latest Firefox for desktop. Not even in the latest Chrome.

Conflicts with Apache2 default alias

This is a reminder for Apache2 user.
Apache has a default alias for /icons/ that points to a directory used by Apache to serve icons. This could be causing conflicts with icons subdirectory.

Why not use a JSON file for the manifest?

It seems strange to me that the extension for the file needs to be .webmanifest when there are already a ton of sites with all the same metadata as is required, but in their manifest.json files. Are .webmanifest and .json interchangeable for this to work? if not, I think they should be as you'd be causing duplication of files.

Add to home screen does not appear

In firefox the button for install(Add to home screen) does not appear, I'm using Firefox 80.0.1 (64-bit) in ubuntu 18.04, I think the reason is that the beforeinstallprompt event is no firing

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.