├── .gitignore
├── public
├── favicon.ico
├── sw.js
├── index.html
└── src
│ ├── js
│ └── app.js
│ └── css
│ └── app.css
├── package.json
└── README.MD
/.gitignore:
--------------------------------------------------------------------------------
1 | .idea
2 | node_modules
3 |
--------------------------------------------------------------------------------
/public/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/academind/pwa-sneak-peak/HEAD/public/favicon.ico
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "pwa-complete-guide",
3 | "version": "1.0.0",
4 | "description": "A complete guide to PWAs. Building a simple Instagram clone.",
5 | "main": "index.js",
6 | "scripts": {
7 | "start": "http-server -c-1 -p 3000"
8 | },
9 | "keywords": [
10 | "pwa",
11 | "progressive",
12 | "web",
13 | "app",
14 | "complete",
15 | "tutorial"
16 | ],
17 | "author": "Maximilian Schwarzmüller",
18 | "license": "ISC",
19 | "devDependencies": {
20 | "http-server": "^0.10.0"
21 | }
22 | }
23 |
--------------------------------------------------------------------------------
/public/sw.js:
--------------------------------------------------------------------------------
1 | self.addEventListener('install', function(event) {
2 | event.waitUntil(
3 | caches.open('first-app')
4 | .then(function(cache) {
5 | cache.addAll([
6 | '/',
7 | '/index.html',
8 | '/src/css/app.css',
9 | '/src/js/app.js'
10 | ])
11 | })
12 | );
13 | });
14 |
15 | self.addEventListener('fetch', function(event) {
16 | event.respondWith(
17 | caches.match(event.request)
18 | .then(function(res) {
19 | return res;
20 | })
21 | );
22 | });
--------------------------------------------------------------------------------
/README.MD:
--------------------------------------------------------------------------------
1 | # Progressive Web Apps - Complete Guide
2 | This source code is part of Maximilian Schwarzmüller's "Progressive Web Apps - Complete Guide" course on udemy.com.
3 |
4 | # How to Use
5 | You need [Node.js](https://nodejs.org) installed on your machine. Simply download the installer from [nodejs.org](https://nodejs.org) and go through the installation steps.
6 |
7 | Once Node.js is installed, open your command prompt or terminal and **navigate into this project folder**. There, run `npm install` to install all required dependencies.
8 |
9 | Finally, run `npm start` to start the development server and visit [localhost:3000](http://localhost:3000) to see the running application.
10 |
--------------------------------------------------------------------------------
/public/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
16 |
17 |
They're installable (without an App Store)!
18 |
19 |
20 |
They can work offline!
21 |
22 |
23 |
They look good on any device
24 |
25 |
26 |
You can receive Push Messages...
27 |
28 |
29 |
...and show Notifications
30 |
31 |
32 |
PWAs can access native device features like the Camera
33 |
34 |
35 |
And so much more!
36 |
37 |
38 |