sherpal / scala-capacitor-blog

Accompanying repo for my blog post about Capacitor and Scala

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Example mobile application with Scala and Capacitor

This is a small example of making a cross-platform mobile application using Scala and Capacitor.

This repo accompanies a blog post that I wrote (see here)

Requirements

In order to run this, you will need:

Run all

You can sequentially issue the following commands in order to have an Android emulator launching the application:

# Installing npm dependencies
npm install
# Compiling scala code
sbt fastLinkJS
# (optional) Check that the above worked by running Snowpack dev server (a browser should open with "Hello World")
npx snowpack dev
# Building frontend app with Snowpack
npx snowpack build
# Syncing the build with the Android application
npx cap sync
# Running the Android emulator (it will ask you to select an emulator, default will do)
npx cap run android

About

Accompanying repo for my blog post about Capacitor and Scala


Languages

Language:Scala 44.6%Language:Java 38.6%Language:HTML 11.1%Language:JavaScript 5.6%