(This is longer than I hoped, sorry if I'm ranting too much here)
I'm working on an app for a friend, it needs to run on android and a webapp on pc, the android app would be used to create/edit some data in a cloud database and the webapp would be used to generate reports from the data in the database, and sometimes edit things if needed. I did a quick demo app but I'm restarting because the code there was godawful, and now I'm trying to figure out what libraries to use and how to set the whole thing up properly.
I'm a bit stuck figuring out the best way to do something like this. I can manage making a native android app and a webapp that both connect to a local database, I went to school for a couple years for software development and I've completed google's android kotlin fundamentals codelabs so I'm a rookie but I have a general idea of what to do for each seperate app.
I'm mostly confused about connecting to a cloud database, since everything I've done so far is using a local database. Would using something like Kotlin Multiplatform be worth it here to reuse the backend logic for interacting with the database? I've been doing a ton of research and it seems like most of the KMP projects are for android/iOS and not android/webapp.
I found KaMPKit as a starting point if I want to use KMP, and I was looking into ktor vs spring boot for the webapp/server side stuff. There's so many libraries/frameworks and different ways to do this that I'm stuck, anyone have some advice for an overwhelmed rookie? Thanks!
11/10/2020, 8:16 AM
Nice idea Sean
I will advice you use any Backend framework to create a Rest API of your choice either of Ktor,Springboot,Node.js are all good.
Then for Android you use Room db as your local db then interact with your Rest Client using Retrofit
Kotlin Multiplatform is still in development phase and I won't advice you use it for a production app 😉
11/18/2020, 7:14 PM
Hi. I am just seeing this now, thank you for your advice! 🙂