the only way i have tried my level best is just the combination of fastapi framework as an api, python in the backend then kotlin has the frontend, the simplest way for beginners and just for very simple projects kotlin has a package called chaquopy , it helps to run python code in kotlin but for the big projects try the first option, visit Kotlin and Python for most info