GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - tiger1990/KMMRoomWebJsDemo: Sample Todo dashboard demo to test web flow in Kotlin Multiplatform (KMM) with Room database integration.

BranchesTags
Open more actions menu

Latest commit

 

History

4 Commits
4 Commits

Folders and files

NameName
Last commit message
Last commit date
composeApp
composeApp
 
 
gradle
gradle
 
 
kotlin-js-store
kotlin-js-store
 
 
sqlJsWorker
sqlJsWorker
 
 
sqliteWasmWorker
sqliteWasmWorker
 
 
.gitignore
.gitignore
 
 
LICENSE.txt
LICENSE.txt
 
 
README.md
README.md
 
 
build.gradle.kts
build.gradle.kts
 
 
gradle.properties
gradle.properties
 
 
gradlew
gradlew
 
 
gradlew.bat
gradlew.bat
 
 
settings.gradle.kts
settings.gradle.kts
 
 

Repository files navigation

This is a Kotlin Multiplatform project targeting Web and uses Room 3.0. Refer Figma : https://www.figma.com/design/4ncw03sYtNwO95HWyylb2a/To-do-List-Web-App-Design--Community-?node-id=26-119&t=oipiHvJN3f7FxXbY-0 *

  • /composeApp is the code that will be shared across your Compose Multiplatform app in Js and WasmJs.
  • /sqliteWasmWorker contains a web worker that implements the WebWorkerSQLiteDriver protocol using the SQLite WASM library.
  • /sqlJsmWorker contains a web worker that implements the WebWorkerSQLiteDriver protocol using the sql.js library. This worker, as implemented only support in-memory databases.

Room for the Web

This small project demonstrates setting up Room 3.0 targeting the Web and configuring it with a WebWorkerSQLiteDriver whose Web Worker are local NPM modules. Even though this project demonstrates two web worker implementations, only one is needed for your project.

Build and Run Web Application

To build and run the development version of the web app, use the run configuration from the run widget in your IDE's toolbar or run it directly from the terminal:

  • for the Wasm target (faster, modern browsers):
    • on macOS/Linux
      ./gradlew :composeApp:wasmJsBrowserDevelopmentRun
    • on Windows
      .\gradlew.bat :composeApp:wasmJsBrowserDevelopmentRun
  • for the JS target (slower, supports older browsers):
    • on macOS/Linux
      ./gradlew :composeApp:jsBrowserDevelopmentRun
    • on Windows
      .\gradlew.bat :composeApp:jsBrowserDevelopmentRun

About

Sample Todo dashboard demo to test web flow in Kotlin Multiplatform (KMM) with Room database integration.

Resources

Readme
Apache-2.0 license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.