15th June 2018
Creare PWA con Angular 5
e Visual Studio Code
Emanuele Bartolesi
15th June 2018
Creare PWA con Angular 5 6
e Visual Studio Code
Emanuele Bartolesi
What is a PWA?
What is a PWA?
“Progressive Web App (PWA) is a term used to denote
a new software development methodology. Unlike
traditional applications, progressive web apps are a
hybrid of regular web pages (or websites) and
a mobile application. This new application model
attempts to combine features offered by most
modern browsers with the benefits
of mobile experience.”
Source: wikipedia
What is a PWA?
“Progressive Web Apps, the most exciting thing
that happened to the web since AJAX.”
Source: Maurizio Mangione
Reliable
Fast
Engaging
Why build PWA?
HTTPS Web App Manifest Service Worker
Minimum Viable – Progressive Web App
Web Application
Manifest
{
"lang": "en",
"short_name": "Wash Post",
"name": "The Washington Post",
"icons": [
{
"src": "img/launcher-icon-2x.png",
"sizes": "96x96",
"type": "image/png"
},
{
"src": "img/launcher-icon-4x.png",
"sizes": ”512x512",
"type": "image/png"
}
],
"start_url": "/pwa/?utm_source=homescreen",
"display": "standalone",
"orientation": "portrait",
"background_color": "black"
}
NetworkWeb App
Network request - Typical
Network request -
Service Worker in play
Service
Worker
Network Cache
Web App
DEMO
Add Angular to your application
• ng new ApplicationName
• (new) ng new angular-pwa-app --service-worker
• (update) ng add @angular/pwa
• ng build –prod
• npm install -g http-server
• http-server -c-1
DEVELOPMENT ENVIRONMENT
Right tools for the right developers
Visual Studio Code
Extensions
DEMO
Lighthouse
Lighthouse – Chrome Extension (beta)
Lighthouse – Dev Tools
Lighthouse CLI
Sonarwhal
DEMO
Resources
• https://www.pwa.rocks
• https://developers.google.com/web/progressive-web-apps
• https://developers.google.com/web/progressive-web-apps/checklist
• https://developers.google.com/web/tools/lighthouse
• https://app-manifest.firebaseapp.com
• https://realfavicongenerator.net
Where are the instructions?
https://aka.ms/ms-docs
 Docs.microsoft.com
https://aka.ms/intldocs
Do you like Open Source?
https://aka.ms/msossloc
in your language,
today!
VS Code
SQL on Linux
SQL Ops Studio
Team Explorer Everywhere
… and more!
Feedback!!!
Senior Full Stack Web Developer
-
Ethical Hacker
-
Blogger
http://www.emanuelebartolesi.com
@kasuken
@kasuken emaueleb@outlook.com
//github.com/kasuken
Thank You!

Creare PWA con Angular 5 e Visual Studio Code