GithubHelp home page GithubHelp logo

monkey-matt / kmp-web Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 3.85 MB

A Kotlin/Wasm demo using Github Pages

Home Page: https://monkey-matt.github.io/KMP-Web-Executable/

Kotlin 97.61% HTML 0.86% CSS 0.22% Swift 1.31%

kmp-web's Introduction

Learning to run Kotlin Multiplatform on the web. Hosted on Github Pages, see here.

This project is targeting Web, Android, and iOS.

  • /composeApp is for code that will be shared across your Compose Multiplatform applications. It contains several subfolders:

    • commonMain is for code that’s common for all targets.
    • Other folders are for Kotlin code that will be compiled for only the platform indicated in the folder name. For example, if you want to use Apple’s CoreCrypto for the iOS part of your Kotlin app, iosMain would be the right folder for such calls.
  • /iosApp contains iOS applications. Even if you’re sharing your UI with Compose Multiplatform, you need this entry point for your iOS app. This is also where you should add SwiftUI code for your project.

Screenshots.png

Learn more about Kotlin Multiplatform, Compose Multiplatform, Kotlin/Wasm, KMP Setup Wizard...

Tutorials used Kotlin web setup guide, Collapsing toolbar

Kodee app icon made with Kotlin Brand Assets, EasyAppIcon

Running locally

You can open the web application by running the :composeApp:wasmJsBrowserDevelopmentRun Gradle task.

Building releases

A release version is built using :composeApp:wasmJsBrowserDistribution Gradle task. The output files (found in composeApp/build/dist/wasmJs/productionExecutable) are saved to a separate repo where Github Pages is enabled, automatically deploying any changes from the main branch.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.