[Fullstack] Compose Multiplatform + Http4k #1545
Replies: 1 comment 1 reply
-
Your project sounds ambitious and exciting! It's great that you're planning to utilize modern technologies and frameworks like Compose Multiplatform and http4k with Koin for DI. Here are a few tips and resources that might help you along the way: Set Clear Milestones: Break down the project into smaller, manageable tasks and set clear milestones. This will help you track progress and stay motivated. Leverage Community Resources: Compose Multiplatform: Check out the official documentation and join the Kotlin Slack for support and community interaction. Code Sharing with Kotlin Multiplatform: Look into the Kotlin Multiplatform documentation to understand best practices for sharing code across different platforms. Design Inspiration: Since you're taking design ideas from the Medium app, consider using tools like Figma or Sketch to create mockups before implementing them in Compose. Continuous Learning and Improvement: As a new grad, this project will be a great learning experience. Don't hesitate to ask for help in communities and forums when you encounter challenges. Backup Plan: Given the scope of the project, having a backup plan or focusing on the most critical features first can ensure that you have a functional product even if you can't complete everything. |
Beta Was this translation helpful? Give feedback.
-
I am planning to start this practice at https://github.com/CXwudi/realworld-compose-http4k-example-app, where I will be using Compose Multiplatform as the frontend and http4k as the backend. All the code will be written in Kotlin, and common code will be shared using Kotlin Multiplatform technology.
In case you're wondering, Compose Multiplatform is JetBrains' adaptation from the original Android Jetpack Compose framework, which is highly inspired by other declarative UI frameworks like React and Flutter. We have several Android frontend examples in codebase.show, but none of them use Compose. Compose Multiplatform supports Android, Desktop (JVM), iOS, and Web. I can support all platforms but except iOS, because I don't have a Mac machine. I can still try to make the iOS frontend compile successfully in my MacOS VM, which can't launch the iPhone simulator.
We already have a backend example written using http4k, but I would like to implement mine with the Koin DI framework. Also, the backend will be used to demonstrate the code-sharing capability from Kotlin Multiplatform, where common codes (mostly just POJOs with the Kotlin serialization plugin) are shared between the frontend and backend.
Since the UI will be written in Compose Multiplatform, I won't be able to reuse the theme and HTML code snippet in the frontend spec. Instead, I will follow the mobile spec and take some UI design ideas from the Medium app.
Lastly, the development scope is quite huge. As a new grad, it might take me a huge effort and time to complete it. Or, in the worst case, it won't be finished. Nevertheless, I will keep working on it to improve myself, unless I get a job offer or a master's degree offer.
Beta Was this translation helpful? Give feedback.
All reactions