Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/grantas33/Kotlin-PWA-starter-kit
Create progressive web apps using 100% Kotlin.
https://github.com/grantas33/Kotlin-PWA-starter-kit
demo kotlin kotlin-js pwa react zero-configuration
Last synced: 3 months ago
JSON representation
Create progressive web apps using 100% Kotlin.
- Host: GitHub
- URL: https://github.com/grantas33/Kotlin-PWA-starter-kit
- Owner: grantas33
- Created: 2020-05-23T19:56:36.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-12-23T00:07:00.000Z (almost 3 years ago)
- Last Synced: 2024-04-12T02:25:31.023Z (7 months ago)
- Topics: demo, kotlin, kotlin-js, pwa, react, zero-configuration
- Language: Kotlin
- Homepage: https://kotlin-pwa-starter-kit.herokuapp.com/
- Size: 165 KB
- Stars: 80
- Watchers: 5
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kotlin PWA starter-kit
Create progressive web apps using 100% Kotlin.
Demo: https://kotlin-pwa-starter-kit.herokuapp.com/
Starter-kit PWA features include:
* Button to subscribe/unsubscribe to web push notifications on supported browsers
* Offline work
* "Add to home page" functionality on mobile devices## Get started
Run app: `./gradlew browserDevelopmentRun`
Run app with hot reload: `./gradlew browserDevelopmentRun --continuous` _*will not hot reload service worker_
Build for production: `./gradlew build`. The bundled files reside in `build/distributions` directory.
## Overview
This starter kit is a Gradle project that uses the Kotlin/JS Gradle plugin and consists of two modules - client and service worker.
Both modules use Kotlin Coroutines library to handle asynchronous operations in a way idiomatic to Kotlin.
Client module includes [React](https://github.com/JetBrains/kotlin-wrappers/tree/master/kotlin-react) and [styled-components](https://github.com/JetBrains/kotlin-wrappers/tree/master/kotlin-styled) libraries wrapped in Kotlin.