All Projects → sylvainpolletvillard → pwa-workshop

sylvainpolletvillard / pwa-workshop

Licence: other
Workshop: Turning a regular website into a Progressive Web Application

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects
Vue
7211 projects
CSS
56736 projects
shell
77523 projects

Projects that are alternatives of or similar to pwa-workshop

Teaching-Data-Visualisation
Presentation and exercises for the Software Sustainability Institute Research Data Visualisation Workshop (RDVW)
Stars: ✭ 15 (-63.41%)
Mutual labels:  training, workshop
Advanced R
One day course covering functions, functional programming and tidy evaluation
Stars: ✭ 38 (-7.32%)
Mutual labels:  training, workshop
coldbox-zero-to-hero
ColdBox 120: From Zero to Hero Training
Stars: ✭ 16 (-60.98%)
Mutual labels:  training, workshop
Pwa Workshop Angular Firebase
Build a production ready PWA with Angular and Firebase! This workshop consists of multiple steps for producing a PWA by transforming a regular web app - Ionic Conference App into a PWA, finally deploying it to Firebase.
Stars: ✭ 45 (+9.76%)
Mutual labels:  workshop, progressive-web-app
Container.training
Slides and code samples for training, tutorials, and workshops about Docker, containers, and Kubernetes.
Stars: ✭ 2,377 (+5697.56%)
Mutual labels:  training, workshop
carto-workshop
CARTO training materials
Stars: ✭ 81 (+97.56%)
Mutual labels:  training, workshop
Docker Workshop
Contenido de un workshop para aprender Docker totalmente en español. Incluye varios ejercicios.
Stars: ✭ 27 (-34.15%)
Mutual labels:  training, workshop
progressive
This is the repository for my course, Building a Progressive Web App on LinkedIn Learning and Lynda.com.
Stars: ✭ 26 (-36.59%)
Mutual labels:  training, progressive-web-app
React Workshop
The course material for our React Hooks workshop
Stars: ✭ 184 (+348.78%)
Mutual labels:  training, workshop
Frida Boot
Frida Boot 👢- A binary instrumentation workshop, with Frida, for beginners!
Stars: ✭ 179 (+336.59%)
Mutual labels:  training, workshop
Pwa Fundamentals
👨‍🏫 Mike & Steve's Progressive Web Fundamentals Course
Stars: ✭ 256 (+524.39%)
Mutual labels:  workshop, progressive-web-app
csharpworkshop
Workshop content on Learning C# on Linux using .NET Core
Stars: ✭ 33 (-19.51%)
Mutual labels:  training, workshop
Afl Training
Exercises to learn how to fuzz with American Fuzzy Lop
Stars: ✭ 726 (+1670.73%)
Mutual labels:  training, workshop
Workshop
Docker, Kubernetes and Gravity Trainings by Gravitational
Stars: ✭ 1,963 (+4687.8%)
Mutual labels:  training, workshop
adsy-trainings
Workshop and training materials
Stars: ✭ 13 (-68.29%)
Mutual labels:  training, workshop
gitworkshop
Git Workshop covering git essentials & advanced topics
Stars: ✭ 15 (-63.41%)
Mutual labels:  training, workshop
stelligent-u
Templates and code for Stelligent U lessons
Stars: ✭ 92 (+124.39%)
Mutual labels:  training
kubernetes-workshop
Kubernetes Workshop
Stars: ✭ 20 (-51.22%)
Mutual labels:  workshop
go-learning
My Golang training material for testing smaller Go concepts and ideas.
Stars: ✭ 27 (-34.15%)
Mutual labels:  training
workshopctl
A tool to run workshops with
Stars: ✭ 38 (-7.32%)
Mutual labels:  training
title lang prev next
Introduction
en
false
./1-manifest/

Workshop: Turning a web app into a PWA

Logo

You may have heard about Progressive Web Apps (PWA) in the latest web trends. What is it all about and how do they improve classic web applications ? This workshop will let you understand PWA better with a bit of practice 💪.

We will transform together a classic web application into a PWA. This will enable the user to have a basic offline mode, and to install the app on his smartphone with a shortcut on the homescreen.

Requirements

  • Basic knowledge of HTML, CSS and JavaScript. Understanding Promises and asynchronicity in JS can be a plus.
  • A computer with a code editor such as Visual Studio Code
  • Google Chrome (PWA are supported on most browsers but to facilitate the organization of the workshop, we will all use the same browser during development)
  • A local web server (if you don't have any, try npmjs.com/http-server with cd app && http-server)

Preparation

  • Clone or download the example web app which is located in the app folder of this repo.
  • Open the app folder in your code editor.
  • Configure your local server to serve the app folder with HTTPS (see instructions below).
  • Load the app/index.html page on Google Chrome. A list of attendees should be displayed.

Local development with SSL

PWA require the use of HTTPS. This not a big matter for a deployed PWA because most web hosts provide HTTPS out of the box. However, it is not the case for local development. In fact, it requires manually generating and installing certificates to the certificate store. Fortunately, there is a cool CLI tool called mkcert that simplifies these steps.

Let's setup our local HTTPS server by following these steps:

  • Install mkcert as indicated in its GitHub page
  • Run mkcert -install to install a local CA (Certification authority)
Created a new local CA at "/Users/****/Library/Application Support/mkcert" 💥
The local CA is now installed in the system trust store! ⚡️
The local CA is now installed in the Firefox trust store (requires browser restart)! 🦊
  • cd to the website root
  • Run this command that generated certificated for our server: mkcert localhost 127.0.0.1 ::1
Using the local CA at "/Users/****yassinebenabbas****/Library/Application Support/mkcert" ✨

Created a new certificate valid for the following names 📜
 - "localhost"
 - "127.0.0.1"
 - "::1"

The certificate is at "./localhost+2.pem" and the key at "./localhost+2-key.pem" ✅
  • We will get two pem files. These will be used by our SSL enabled dev server.

certs

  • Install npm package http-server if not done already with : npm i -g http-server
  • Run the server in SSL mode: http-server -S -o -C "localhost+2.pem" -K "localhost+2-key.pem"

certs

In this part, we saw how to install a Service Worker, and how to manage two Service Worker lifecycle events: install and activate. Now, let's see how to do something useful with this Service Worker.

Steps of the workshop

  1. Add a web application manifest
  2. Install and activate a Service Worker
  3. Pre-caching of static assets for a basic offline mode
  4. Cache/Update/Refresh Strategy for the API GET requests
  5. Background sync and examples of push notifications
  6. Presenting an install button
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].