KiKi

KiKi

Ionic + Liveview / Ionic + Vue / PWA mobile app

Hi,

I’ve created a small web app and now I would like to turn in into a mobile app (iOS and Android). All I need is a wrapper really so I think Ionic would be a good choice. On the front end, I would like to use Liveview, it should be perfect for what I need. Another solution is Vue, but as I don’t have much experience with it, I would use it only if it has some really big advantage over Liveview. Third option is a PWA, I also don’t have any experience with it, and I haven’t seen many PWA apps so I’m not sure if that would be a good choice.

Could you please give me some advice and guidance on how to proceed?

Most Liked

tejpochiraju

tejpochiraju

This may or may not help you with your specific choices but I just posted a blog on hosting PWAs with Phoenix. I use our Websockets client as an example. This particular one is pretty simple and only uses a dash of AlpineJS but no reason you couldn’t go all out with Vue or similar.

For what it’s worth, if you plan to integrate with Phoenix routing and hosting (not just APIs), Vue is likely to be simpler than Ionic. Ionic requires you to use their build tools and I have found fiddling there to be quite tricky. With Vue, you could get started by simply dropping in a script tag and binding components to elements on the page. You could then do what I do in the blog and just point the router and assets the right way.

Exadra37

Exadra37

The simplest way to have a PWA web app is to add a manifest file to it, and you can use an online generator:

This manifest file will allow your web app to be added into a mobile device and “behave” and “look” like a mobile app.

After this you can then start to try to add to your web app more features of a PWA, like support for service workers if it makes sense.

A good starting point may be here:

Where Next?

Popular in Discussions Top

MarioFlach
Hello, I want to share a project I’ve been working on for a while: https://github.com/almightycouch/gitgud Background Some time ago I ...
New
boundedvariable
I am going through the kafka architecture. All the features what the kafka is providing are already in Erlang. I would like hear your opi...
New
Nvim
Anybody knows a comprehensive comparison of Django and Phoenix, thanks for the help. Where are they similar? Where do they differ the m...
New
Nvim
Elixir appears to be a superior language to Python. I don’t see any advantage of Python over Elixir. Are there any?
New
Fl4m3Ph03n1x
Background A few days ago I was listening to The future of Elixir from Elixir Talks, with Dave Thomas (@pragdave ) and Brian Mitchell. I...
New
opsb
We’re considering our architecture from a viewpoint of scaling our traffic heavily over the next 6 months. Our current deployment is runn...
New
RudManusachi
What configs will make sense to put to runtime.exs? – A bit of how I configure apps: I have generic configs in config/config.exs, dev...
New

Other popular topics Top

rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list. ...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
stefanchrobot
What’s the safe way to decode a JSON string into a struct? I want to avoid calling String.to_atom. Jason.decode can give me a map with st...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New

We're in Beta

About us Mission Statement