-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Demo repo or tutorial #1
Comments
Hi, I am happy this bundle will help many people.
|
Thanks. I'm happy to help with testing and some sample repos.
…On Wed, Jan 10, 2024 at 7:35 AM Florent Morselli ***@***.***> wrote:
Hi,
I am happy this bundle will help many people.
Please note that it is very young and not stable at the moment.
I'd love to see a tutorial on how to use this to create a simple off-line
app, or fetch remote data and cache it in the manifest.
I hope I will be able to talk about it during the Symfony Live 2024 in
Paris. But yes, it's definitively a good idea to have a tutorial for it.
I'll keep it open until the job is done.
Thanks.
—
Reply to this email directly, view it on GitHub
<#1>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAEXIQPFLGBKLY2BACNAPJ3YN2KL5AVCNFSM6AAAAABBUYYTFWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOBUHA3DIMJZGI>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
I thought about it again and this app is a bit too simple and doesn't allow to test all the capabilities that PWAs offer.
This would make it possible, for example, to create:
|
Hi, The way it works is now satisfactory (to my POV). I use Symfony UX as sandbox and it looks good (symfony/ux#1350). I'll keep this issue open until the demo is done. |
I don't quite follow. Can you create a separate repo for the demo? I'm quite excited to see the conversation on UX Symfony. I'm certain there's a way to tie in AssetMapper. |
So I've installed the bundle and tweaked my demo app to include the web manifest, and that seems to be working. So now I'm trying to follow along with the README to install the service worker and icons, but please! provide a demo repo with the final result of everything you've done in the README. Sure, a weather app would be more complete and "real world", but really just a hello world app that runs offline would be a great start. I would move the :compile section down to the bottom and specify that it's only for deploying to production. Too often (I'm speaking for myself here), developers go through a tutorial by cutting and pasting the instructions. That command will burn you in the dev environment. |
I started to set up the weather app (API Key and basic call), but it OpenWeather requires lat/long and I was too lazy to make 2 calls. I think the demo app should instead display HackerNews. There's already a bunch of PWA clients in different frameworks at https://hnpwa.com/, but none for Symfony. Plus, you can leverage best practices and such from existing clients. The cool part about your bundle is the integration with Symfony. |
This is the top item of my TODO list.
Indeed. It always starts with a "Hello World"
I agree. This should be the last step of the documentation. When it will be really stable, I will use Gitbook instead of the README file.
That's a very nice idea! Let me a moment and I will push the first bricks of this app. |
Drat, the HNPWA project appears to be abandoned/archived. BUT there are still some working projects with other frameworks. In particular, the one I see as "closest" to a Symfony-powered PWA is the one based on Vue: https://anubhav7495.github.io/hnpwa-vue/#/newest (not sure where the source code is for this though). Because Vue requires a build step, I'm more inclined to use Stimulus and whatever else we can from Symfony UX. Fortunately, the Vue part of that app is pretty trivial. We could also use HTMX and mustache, but really anything that doesn't require a build step. I've been using twigjs and quite like it, but this application is so simple that we don't need a templating library. The key URLs come from https://node-hnapi.herokuapp.com/ e.g. |
ping... I know your talk is in a month, so I imagine you'll have a demo in place well before that. Happy to help test. I saw this article and thought it was interesting. Not a great design practice, but the idea of using importmaps in web workers is so appealing that maybe it's worth the overhead. https://github.com/environment-safe/esm-worker If you have any apps, even if it's not a demo app, that use your bundle can you provide a link to the repo? |
Basic demo in progress |
Description
Kudos -- this is very exciting! Thanks for releasing this.
I'd love to see a tutorial on how to use this to create a simple off-line app, or fetch remote data and cache it in the manifest.
Example
Here's a trivial SPA that displays the current time from javascript, and the page render time from twig (which will be fixed when offline). It uses stimulus, asset-mapper (importmap), bootstrap and bootstrap-icons, so it's got enough elements to be a real app. I have another demo app that fetches headlines that I'd like to see as a PWA, but have never figured out the manifest!
So what I'd love to see is the next steps to create the manifest and such and run this offline.
Again, thanks for putting this together and making it available!
The text was updated successfully, but these errors were encountered: