
Shopping demo showcasing Cube MVP architecture with three view modes: declarative Compose UI, native UIs, and React remote view with server-side presenters over WebSocket.
Demo application for the Cube MVP framework in Kotlin Multiplatform, with three view modalities:
The demo is the WDC Store; its code follows the name — packages br.com.wdc.store, Gradle modules :store-*, classes Store*, the STORE_WORKDIR variable and the wedocode-store database. Until 0.5.0 it was the Storefront, with identifiers in shopping: a database from then (wedocode-shopping.mv.db) is used again by renaming the file, and the mobile apps install as new apps (their ids changed).
Documentation: Overview · Cube Framework · Cube + Compose · React View · Persistence · Security
wdc-cube-kotlin/
├── docs/ ← Architecture documentation
├── fontes/ ← Source code (Gradle project)
└── iosApp/ ← Xcode project (native iOS host)
cd fontes
# React client bundle, served by the backend (not versioned: build it once, and again after changing the client)
(cd br.com.wdc.kt.store/br.com.wdc.kt.store.view.remote/remote.react/remote.react.client && npm install && npm run build)
# Backend (port 8080)
./gradlew :backend:run
# Desktop
./gradlew :view-compose-desktop:run
# Web (port 8082)
./gradlew :view-compose-web:wasmJsBrowserDevelopmentRun
# Android
./gradlew :view-compose-android:assembleDebug
# Tests
./gradlew testFor iOS, open iosApp/StoreiOS.xcodeproj in Xcode and run it on the simulator.
Demo application for the Cube MVP framework in Kotlin Multiplatform, with three view modalities:
The demo is the WDC Store; its code follows the name — packages br.com.wdc.store, Gradle modules :store-*, classes Store*, the STORE_WORKDIR variable and the wedocode-store database. Until 0.5.0 it was the Storefront, with identifiers in shopping: a database from then (wedocode-shopping.mv.db) is used again by renaming the file, and the mobile apps install as new apps (their ids changed).
Documentation: Overview · Cube Framework · Cube + Compose · React View · Persistence · Security
wdc-cube-kotlin/
├── docs/ ← Architecture documentation
├── fontes/ ← Source code (Gradle project)
└── iosApp/ ← Xcode project (native iOS host)
cd fontes
# React client bundle, served by the backend (not versioned: build it once, and again after changing the client)
(cd br.com.wdc.kt.store/br.com.wdc.kt.store.view.remote/remote.react/remote.react.client && npm install && npm run build)
# Backend (port 8080)
./gradlew :backend:run
# Desktop
./gradlew :view-compose-desktop:run
# Web (port 8082)
./gradlew :view-compose-web:wasmJsBrowserDevelopmentRun
# Android
./gradlew :view-compose-android:assembleDebug
# Tests
./gradlew testFor iOS, open iosApp/StoreiOS.xcodeproj in Xcode and run it on the simulator.