Get Started with PWA Fire Bundle

Build amazing Web experiences now with PWA Fire Bundle Github release version 4.0

Maye Edwin
Maye Edwin
4 min readJan 6, 2018

--

Get Started with PWA Fire Bundle

PWA Fire Bundle is an open source progressive web app javascript and json Bundle developed by Maye Edwin that allows you to convert your website into a progressive web app or build one in a few.

pwa_fire

It is the most simplest way you can ever convert your web app or website into a 100% Progressive Web App and still have some fun with the code. It doesn’t make you a lazy code beast.

What’s in this starter guide?

If you have done some pretty cool staff with web apps using basic html and javascript, then you are good to go else, get started with the codelab here.

In your root folder, create two empty files; service-worker.js and manifest.json and save. Once done; let's proceed down here;

Configuration guide and notes

1. Code to register the service worker

This is the first step to making your web app work offline. Copy and paste this code to your index file, eg just before the end of the body tag or in the head tag in html5

N/B : You need HTTPS

You can only register service workers on Websites, Web Apps or Pages served over HTTPS.

Read more about service workers HERE

This code checks to see if the service worker API is available, and if it is, the service worker at /sw.js is registered once the page is loaded.

2. Using the Web Manifest — manifest.json

When you have uploaded the manifest and it’s on your site, add a link tag to all the pages that encompass your web app, as follows;

Configuring the manifest.json helps you to specify how you want your web app to look like when launched on the device.

Read more about Web Manifest HERE

a) Service Worker // service-worker.js Guide

Follow the steps as commented in the code below in order to correctly configure the service-worker.js file.

b) Web Manifest // manifest.json Guide

Follow the steps below as described in order to correctly configure the manifest.json file.

Configure/edit the background and theme colors, display type, the Web App short name, the Web App name, icons size (keep icon sizes as specified below) and your icon/logo paths. Also state the img type eg image/ico or image/png.

Leave the start url as recommended below though this can be anything you want; the value we’re using has the advantage of being meaningful to Google Analytics.

Also remember to add the theme color to all your pages as shown in the code below;

Donate a star, like, follow and contribute in any way. Be sure to use project pwa_fire. If you use the pwafire_bundle, kindly let us know via mayedwine1@gmail.com or JUST simply Tweet us.

Engage us

Donate a star, like, follow and contribute in any way. If you use PWA Fire Developer Resources, kindly let us know. JUST simply Tweet us. You got any bug? Report it here for support. You want to contribute? Create your feature here.

--

--

Maye Edwin
Maye Edwin

I’m a software engineer, google developer expert in web technologies, and creator of the open-source library, pwafire.