What are your suggestions for a technological stack for the described cross-platform setting?
Ask HN: How to create web, mobile, and desktop apps from a common code base?
1–10 of 30 posts
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#2Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#3If you really want a desktop app, I would recommend using React for the web, React with Electron for desktop, and React with CapacitorJS for mobile.
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#4Have you considered making it a website? Then it can be used on every device via the browser.
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#5I have tried it myself, but did not love it fwiw
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#6React Native. Why would you want a desktop app when it's already working in a browser? If you really want a desktop app, I would recommend using React for the web, React with Electron for desktop, and React with CapacitorJS for mobile.
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#7You could look into Flutter. It pretty much fits what you are looking for. I have tried it myself, but did not love it fwiw
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#8Have you considered making it a website? Then it can be used on every device via the browser.
One of the versions will be a website, but I want mobile and desktop versions to be able to operate in offline mode with a local database.
https://www.google.com/search?q=pwa
Websites already have access to offline storage via the localStorage API.
When the user installs a PWA, it gets additional permissions which make it even more similar to a native app.
Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#9Re: Ask HN: How to create web, mobile, and desktop apps from a common code base?
#10You could look into Flutter. It pretty much fits what you are looking for. I have tried it myself, but did not love it fwiw
Could you recommend a good book or online learning resource for Flutter?
If you are more into video tutorials, this one[3] is pretty compact but not made for total beginners.
If you really want to get into it, you could now start checking out a not too big Open Source project like Musify (music player)[4], Localsend (file sharing)[5] or immich (photo sync)[6].
[1]: https://flutter.dev
[2]: https://github.com/Solido/awesome-flutter
[3]: https://www.youtube.com/watch?v=D4nhaszNW4o
[4]: https://github.com/gokadzev/Musify