Hi! What a programmer can do in 1 month with Kotli...
# feed
v
Hi! What a programmer can do in 1 month with Kotlin Multiplatform. 1. API (Ktor) 2. Admin-Panel (React) 3. CLI application for the server (kotlinx-cli) 4. Website (React) 5. Android application (Jetpack Compose) 6. iOS application (SwiftUI) 👈 iOS remained, I think I'll have time before the new year. 🌲 P.S. The design is also mine, do not judge strictly. GitHub: https://github.com/keygenqt/km-shop
🎉 3
💯 5
5
b
I'd strongly recommend switching kotlinx-cli for clikt
v
kotlin vs ajalt 🤔, no, thx 🙂 Maybe later
b
Have a look at kotlinx-cli commit history and contribution graph, sadly it seems to be abandoned. Plus the docs leave lots to be desired.
Just because a lib is 1p does not necessarily make it better 😀
v
This is clear. However, in this case, I think it's the best option. If you are making a huge cli application, you should probably look towards clikt if there is not enough functionality. 🙂
a
I cannot build the project:
./gradlew clean build
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':shop:spotlessKotlinCheck'.
> The following files had format violations:
mobile/android/src/main/java/com/keygenqt/shop/android/components/alerts/AlertError.kt
@@ -1,3 +1,18 @@
+/*
+·*·Copyright·2022·Vitaliy·Zarubin
v
This is alpha, Project is building. Later I'll double-check what could go wrong
a
How do you build ?
v
Screen Recording 2022-12-19 at 15.52.03.mov
✔️ 1
@AndreyVanDenHaag fix it 🙂 , repo updated.
a
@Vitaliy Zarubin Yes, it is fixed, I see another I use JDK 11: (should this solve the issue ?)
./gradlew clean build
...
> Task :shop:server:cli:compileKotlin FAILED
e: ~/km-shop/shop/server/cli/src/main/kotlin/com/keygenqt/shop/cli/Main.kt: (67, 30): Cannot access class 'io.ktor.client.plugins.logging.Logger'. Check your module classpath for missing or conflicting dependencies
v
The application is not small, in fact there are 6 of them. Build them is another quest, there are a lot of dependencies from mysql to compose version. Perhaps I will add a section to the documentation on how to put it all together quickly.
🙏 2
a
I will be glad to help you !
v
Added building dock. Good luck! https://keygenqt.github.io/km-shop/building