We were unable to load Disqus. If you are a moderator please see our troubleshooting guide.

Praveen Sirimalla • 5 years ago

wow great tutorial, It's very simple and clear. Thanks

Ibrahima Ndaw • 5 years ago

I'm glad you like it. Thanks

Lu • 5 years ago

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?

Tony • 5 years ago

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?

Brian Tran • 5 years ago

Thank you

Jason Hall • 5 years ago

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.

Ibrahima Ndaw • 5 years ago

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

Jason Hall • 5 years ago

I just saw this. Thank you for the response!

Asmaa Sh Ali • 5 years ago

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.

Ibrahima Ndaw • 5 years ago

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

Chieki Mr. • 5 years ago

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.

Ibrahima Ndaw • 5 years ago

Amazing comment, i'm glad you like this post. Feel free to send me a DM.

Brenner Pieszak • 5 years ago

Hi, can someone tell me what program he has to visualize/preview the coding as he goes along? Thanks!!!

Ibrahima Ndaw • 5 years ago

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.

Asmaa Sh Ali • 5 years ago

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 ?

Ibrahima Ndaw • 5 years ago

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.

Chieki Mr. • 5 years ago

Use notepad, file explorer and edge browser to preview,
e.g.: localhost/pwd/index.html

Praveen Sirimalla • 5 years ago

Hi, can you please write a post for indexedDB.

Ibrahima Ndaw • 5 years ago

Maybe in the future. Thanks for your suggestion

Daniel Ayodeji • 5 years ago

Simple and examplanatory

Ibrahima Ndaw • 5 years ago

Thanks for reading it too.

Josh L • 5 years ago

I love this basic simple pattern and implement similar ones myself. No need for a framework. Excellent write-up.

Ibrahima Ndaw • 5 years ago

Of course, it's always good to try these things without a framework. Thanks for reading it too.

Syntax Lee • 5 years ago

Nice job

Ibrahima Ndaw • 5 years ago

Thanks a lot