-
Kotlin Multi Platorm/Ktor application:
- Android — Android App.
- iOS — iPhone App.
- backend — Ktor Server App.
- js static web
- js React eployment).
-
Versions.
- IntelliJ Ultimate 2020.2
- Android Studio 4.0.1
- Gradle 6.1.1
- Kotlin 1.4.0
- Ktor 1.4.0
- Kotlin Coroutines 1.3.9-native-mt
- Kotlin Serialization 1.0.0-RC
- XCode 11.6
- macOS 10.15.5
-
JavaScript
- Static Web App
- Task; copyToStaticWeb copies js includes to KotlinMppStaticWebApp
- React
- Execute tasks: publishJsPublicationToMavenLocal in project KotlinMpp/SharedCode
- Execute task browserDevelopmentWebpack in KotlinMppReact
- copy js/KotlinMppReact/build/distributions KotlinMppReact.js & index.html]() for deployment
- Static Web App
-
Setup
- Endpoint
- SharedCode - Change IP & Port
- Endpoint
-
Build
- Run Gradle SharedCode Task 'build'
- ktor war file. Open Terminal at backend/KotlinMppKtor ./gradlew war
-
Testing
- Start backend project in inteliJ
- Run Android and/or iOS app
- or run ReactApp with ./gradlew run --continuous
- or KotlinMppStaticWeb
- Right click index.html > Run index.html
-
Deployment
- Check Endpoint in ConstantsShared
- Run Gradle Task SharedCode build
- Run Gradle Task SharedCode publishing publicJsPublicationToMavenLocal
- KotlinMppKtor ./gradlew war
- Rename backend/KotlinMppKtor/build/libs kotlinmppktor.1.0.0.war to kotlinmppktor.war
- copy kotlinmppktor.war to deployment directory
- KotolinMppReact gradle task clean
- KotlinMppReact gradle task browserDevelopmentWebpack
- copy build/distributions to deployment diretory
-
Resources
-
Notifications
You must be signed in to change notification settings - Fork 1
eloew/KotlinMpp
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Kotlin Multi Platform with Ktor (Andriod, iOS, & React)
Topics
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published