Lightweight PWA framework

General Tech Bugs & Fixes 2 years ago

0 2 0 0 0 tuteeHUB earn credit +10 pts

5 Star Rating 1 Rating

Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for professional advice.

Take Quiz To Earn Credits!

Turn Your Knowledge into Earnings.

tuteehub_quiz

Answers (2)

Post Answer
profilepic.png
manpreet Tuteehub forum best answer Best Answer 2 years ago

I am implementing a PWA for a speaker system.

The idea is to have a RaspberryPi running on the system and clients connecting via Wifi to the Pi. This will show a captive portal with instructions to install the PWA on the homescreen. With the PWA the user can control the music (talking to mpd via Websockify running on the Pi) and other features such as lights.

I've already tried OnsenUI+Angular as I like the idea of a native looking App. However, it ended up being a bit buggy and not delivering an App-like experience on all devices. I know Ionic has done a lot of work on their PWA framework recently. And they also recommend Stencil - however as far as I understand stenciljs will render on the server side. As I'm running on a RaspberryPi with limited ressources that might not be the best solution.

Therefore my question is: Does anyone know a good lightweight framework to create a PWA (client side rendering). I don't really need the offline capabilities such as service workers as the App will only work when connected to the speaker. However, I would like to ensure that as much as possible will be cached to reduce the load on the RaspberryPi.

Many thanks for your help in advance.

profilepic.png
manpreet 2 years ago

You need some more clarity on what PWA is. You are saying you don't need Service workers, but wanted to cache as much as possible. Service workers are the very thing in PWA, which does caching.

From your "Client side rendering" next to PWA, I'm guessing you are trying to mean client side rendering using PWA, which I'm not sure what you mean by.

Having manifest.json to enable add to home screen and service worker to cache and work in offline mode are the main aspects of PWA and not sure what you are trying to do with PWA without these aspects.


0 views   0 shares

No matter what stage you're at in your education or career, TuteeHub will help you reach the next level that you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice sessions to improve your knowledge and scores.