Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/panthershark/elm-capacitor
Demo showing how Elm can be used for native apps using capacitor
https://github.com/panthershark/elm-capacitor
Last synced: about 2 months ago
JSON representation
Demo showing how Elm can be used for native apps using capacitor
- Host: GitHub
- URL: https://github.com/panthershark/elm-capacitor
- Owner: panthershark
- License: lgpl-3.0
- Created: 2019-10-09T21:11:19.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T22:25:16.000Z (about 2 years ago)
- Last Synced: 2024-04-15T14:27:03.603Z (9 months ago)
- Language: Elm
- Size: 663 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# elm-capacitor
Demo showing how Elm can be used for native apps using capacitor.
### Get Started
- [Install Elm](https://guide.elm-lang.org/install.html)
- Install [ParcelJS](https://parceljs.org/getting_started.html) and dev deps - `yarn install`
- Run the web app, open a browser - `yarn run dev`. goto http://localhost:8085### Running Tests
Install test runner globally from npm - `yarn global add elm-test`
Run the tests with default settings - `elm-test`
- Randomly chooses a seed
- Sets fuzz count to 100Run the tests with a specific fuzzer seed - `elm-test --fuzz 60 --seed 12345`
- fuzz is the number of iterations of fuzz to run
- seed is used to run a fuzzer so it generates the same values every time# Native Apps
Build the Elm app as normal, then use capacitor to push to native.
The following commands are from the [capacitor docs for ios](https://capacitor.ionicframework.com/docs/ios)
```
npm run build
npx cap add ios
npx cap sync OR npx cap copy ios
npx cap open ios
```The following commands are from the [capacitor docs for android](https://capacitor.ionicframework.com/docs/android)
```
npm run build
npx cap add android
npx cap sync OR npx cap copy android
npx cap open android
```Once in Android Studio or XCode, the app can be built, run in emulator, pushed to device, or published to the app stores.