PWA Tutorial for Beginners #30 - Testing the App
Key Takeaways
The video demonstrates testing a Progressive Web App (PWA) on an Android emulator, showcasing its offline capabilities and functionality. The PWA is built using modern JavaScript and hosted on Firebase, with features like adding, deleting, and caching pages for offline use.
Full Transcript
or rather than going so now we've uploaded our application to firebase and it's been served at this address right here food - ninja - PWA dot firebase app comm so what I'm gonna do now is test this Peter be way from start to finish on the Android emulator just to see that everything is working as it should do so let me first go to Android studio then go to configure then AVD manager then I'm gonna launch this device right here the pixel - okay so I've already previously deleted the icon that we had for food ninja because remember in one of the earlier videos we added it to the home screen so that's gone now and I'm gonna open up Chrome and navigate to this address up here which is food - ninja and it's already there - pw8 firebase app comm so I'll go there and this looks like it's working we get this banner at the bottom add food ninja to homescreen so we'll do that we'll add it and we should get another notification here add automatically yep okay so now I'll close this one down and then I'll open it up on the phone itself so this is the app version now and looking good so far cool so everything seems to be showing and working I can try adding in a new one so we'll just call this test and blah blah blah because I can't think of any other recipes and yep this seems to be working and we see that update over here in the browser as well so that's cool now if we go to delete one of these it should work as well so let's try that cool it does and we can go to other pages as well for example contactors and about and this all works cool so this is all working while we're online but what if we try to do this while we're offline I'm going to close the app first of all then I'm going to go into flight mode so that we lose a signal and then what I'm going to do is open up the app again and this should still work and it does you see we're getting all of these different recipes right here now let's now try deleting one ninja soup and it did least from this app but notice over here if I just move these things out of the way that's right they're ninjas - still remains and that's because we're offline here right it's working in our up and it's deleting it from our UI but it's not actually yet reaching over here in our database to delete that document because we're offline in our device so it's still there you can see this three documents still here but we only see two right here okay so now let me try adding and you want as well I'll call this ninja breakfast and we'll just of eggs tomato and beans whatever and add that and now we see it here but again we don't see over here yet because we're offline now let me just go to another page to see if this works about yet we can still see that and contact because remember before while we were online we navigated around the site and we cache those pages as we visited them so even though what offline we can still view these pages from the cache so this is all working very much like an app would offline this is brilliant now the minute we go back online notice the data will update here and probably over here hopefully in the database as well so let me now turn off this thing right here flight mode and close this and notice we update it over here now we have ninja breakfast instead of a ninja stew and probably over here as well if we just give this a quick refresh so we can get the new data we should see that ninja stew is actually still there and just smooth it ninja breakfast okay so it's not a ninja - that's gone it was something else I can't remember what it was but anyway that has gone as well so this my friends is all working now this is our PWA pretty much finished
Original Description
----------------------------------------
🐱💻 🐱💻 Course Links:
+ Course files - https://github.com/iamshaunjp/pwa-tutorial
+ Modern JavaScript Tutorial - https://www.thenetninja.co.uk/udemy/modern-javascript
🐱💻 🐱💻 Other Related Courses:
+ Firebase Firestore Playlist - https://www.youtube.com/watch?v=4d-gIPGzmK4&list=PL4cUxeGkcC9itfjle0ji1xOZ2cjRGY_WB
Firebase Authentication Tutorial - https://www.youtube.com/watch?v=aN1LnNq4z54&list=PL4cUxeGkcC9jUPIes_B8vRjn1_GaplOPQ
Playlist
Uploads from Net Ninja · Net Ninja · 0 of 60
← Previous
Next →
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Regular Expressions (RegEx) Tutorial #14 - Matching a Username
Net Ninja
Regular Expressions (RegEx) Tutorial #15 - Email RegEx Pattern
Net Ninja
Regular Expressions (RegEx) Tutorial #16 - Finishing Touches
Net Ninja
GraphQL Tutorial #1 - Introduction to GraphQL
Net Ninja
GraphQL Tutorial #2 - A Birdseye View of GraphQL
Net Ninja
GraphQL Tutorial #3 - Project (stack) Overview
Net Ninja
GraphQL Tutorial #4 - Making Queries (front-end preview)
Net Ninja
GraphQL Tutorial #5 - Express App Setup
Net Ninja
GraphQL Tutorial #6 - Setting up GraphQL
Net Ninja
GraphQL Tutorial #7 - GraphQL Schema
Net Ninja
GraphQL Tutorial #8 - Root Query
Net Ninja
GraphQL Tutorial #9 - The Resolve Function
Net Ninja
GraphQL Tutorial #10 - Testing Queries in Graphiql
Net Ninja
GraphQL Tutorial #11 - GraphQL ID Type
Net Ninja
GraphQL Tutorial #12 - Author Type
Net Ninja
GraphQL Tutorial #13 - Type Relations
Net Ninja
GraphQL Tutorial #14 - GraphQL Lists
Net Ninja
GraphQL Tutorial #15 - More on Root Queries
Net Ninja
GraphQL Tutorial #16 - Connecting to mLab
Net Ninja
GraphQL Tutorial #17 - Mongoose Models
Net Ninja
GraphQL Tutorial #18 - Mutations
Net Ninja
GraphQL Tutorial #19 - More on Mutations
Net Ninja
GraphQL Tutorial #20 - Updating the Resolve Functions
Net Ninja
GraphQL Tutorial #21 - GraphQL NonNull
Net Ninja
GraphQL Tutorial #22 - Adding a Front-end
Net Ninja
GraphQL Tutorial #23 - Create React App
Net Ninja
GraphQL Tutorial #24 - Book List Component
Net Ninja
GraphQL Tutorial #25 - Apollo Client Setup
Net Ninja
GraphQL Tutorial #26 - Making Queries from React
Net Ninja
GraphQL Tutorial #27 - Rendering Data in a Component
Net Ninja
GraphQL Tutorial #28 - Add Book Component
Net Ninja
GraphQL Tutorial #29 - External Query File
Net Ninja
GraphQL Tutorial #30 - Updating Component State
Net Ninja
GraphQL Tutorial #31 - Composing Queries
Net Ninja
GraphQL Tutorial #32 - query variables
Net Ninja
GraphQL Tutorial #33 - Re-fetching Queries
Net Ninja
GraphQL Tutorial #34 - Book Details Component
Net Ninja
GraphQL Tutorial #36 - Styling the App
Net Ninja
GraphQL Tutorial #35 - Making a Single Query
Net Ninja
Build Apps with Vue & Firebase - Udemy Course
Net Ninja
Updated Vue & Firebase Course (Udemy)
Net Ninja
Vue & Firebase Real-time Chat (Preview) #1 - Intro
Net Ninja
Vue & Firebase Real-time Chat (Preview) #2 - Project Structure
Net Ninja
Vue & Firebase Real-time Chat (Preview) #3 - Firestore Setup
Net Ninja
Vue & Firebase Real-time Chat (Preview) #4 - Welcome Screen
Net Ninja
Vue & Firebase Real-time Chat (Preview) #5 - Props in Routes
Net Ninja
Vue & Firebase Real-time Chat (Preview) #6 - Route Guards
Net Ninja
Vue & Firebase Real-time Chat (Preview) #7 - Chat Window
Net Ninja
Vue & Firebase Real-time Chat (Preview) #8 - New Message Component
Net Ninja
Object Oriented JavaScript Tutorial #1 - Introduction
Net Ninja
Object Oriented JavaScript Tutorial #2 - Object Literals
Net Ninja
Object Oriented JavaScript Tutorial #3 - Updating Properties
Net Ninja
Object Oriented JavaScript Tutorial #4 - Classes
Net Ninja
Object Oriented JavaScript Tutorial #5 - Class Constructors
Net Ninja
Object Oriented JavaScript Tutorial #6 - Class Methods
Net Ninja
Object Oriented JavaScript Tutorial #7 - Method Chaining
Net Ninja
Object Oriented JavaScript Tutorial #8 - Class Inheritance
Net Ninja
Object Oriented JavaScript Tutorial #9 - Constructors (under the hood)
Net Ninja
Object Oriented JavaScript Tutorial #10 - Prototype
Net Ninja
Object Oriented JavaScript Tutorial #11 - Prototype Inheritance
Net Ninja
More on: Frontend Performance
View skill →Related Reads
📰
📰
📰
📰
Frontend Engineers Are Quietly Becoming the New Overhead.
Medium · AI
Building an Interactive Fashion Hero with HTML, CSS & GSAP
Dev.to AI
Out-of-Order HTML Streaming Moves from JS Frameworks into the Browser
InfoQ AI/ML
From One Dev to a Team of Eight: The Frontend Architecture Decisions That Didn’t Age Well
Medium · JavaScript
🎓
Tutor Explanation
DeepCamp AI