We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.
I'm glad you like it. Thanks
Very well written, I loved it. One question for you: how do you handle page transitions to keep some kind of "native app" feeling? Let's say the user taps on the menu "About". The app will need to load a new page (example: about.html). How do you avoid the client/server delay? SPA apps use a lot of JavaScript to populate a premade shell. What would you do in you coffee PWA?
Thank you very much for this. I would love to build a form into it. How would you suggest I add a form into it?
Thank you
Thanks for the article. I am hoping someone can point me in the right direction on how to add links to the "Learn More" buttons.
Hi Jason, you just have to change the # symbol on the href in the a tag with your link. It's in the app.js file
I just saw this. Thank you for the response!
hello Mr. Ndaw, I really had fun with your tutorial, it's just great.
But I had an issue with Firefox browser viewing the index.html, the photos of coffee are not shown with uniform width and height for a reason I don't know. check it here
but with Chrome, it viewed as expected.
Hi Asmaa and sorry for the delay, try just to add min-width: 15rem; to the class card on the CSS file. Let me know if it fixed
Mr Ibrahima Ndaw, you sincerely took a lot of time out of you busy schedule to organize, and present this wonderful master-piece of web app. Thank you, that is all I can say, because I don't know you, but wish to. may you live long.
Amazing comment, i'm glad you like this post. Feel free to send me a DM.
Hi, can someone tell me what program he has to visualize/preview the coding as he goes along? Thanks!!!
With PWA, you need a server to be able to launch it. If you try to launch index.html, it will not work though.
If you're on Visual Studio Code, you can use the Live server extension or the equivalent with other IDE.
Can you elaborate on this Live server extension Mr. Ndaw ?
I opened the page of index.html as any traditional webpage in my browser and it worked just fine.
What am I missing ?
To make PWA works and particularly service workers, you need a server. If you deploy your app, it will work as expected because it will be hosted on a server. However, in local development, it won't be the case. You need a kinda server to make it work. Therefore the VS Code Live Server helps in that way.
Use notepad, file explorer and edge browser to preview,
e.g.: localhost/pwd/index.html
Hi, can you please write a post for indexedDB.
Maybe in the future. Thanks for your suggestion
Simple and examplanatory
Thanks for reading it too.
I love this basic simple pattern and implement similar ones myself. No need for a framework. Excellent write-up.
Of course, it's always good to try these things without a framework. Thanks for reading it too.
Nice job
Thanks a lot
wow great tutorial, It's very simple and clear. Thanks