crystal-web-demo
crystal-web-demo
This is a demo of the crystal-web package.
Usage
Build with:
shards install
lib/web/scripts/build.sh src/demo.cr
If you want to optimize for release mode use:
shards install
lib/web/scripts/build.sh src/demo.cr --release
Create an index.html file with:
<script src="demo.js"></script>
<script>runCrystalApp("demo.wasm")</script>
And start any web server to serve those files:
python3 -mhttp.server
Repository
crystal-web-demo
Owner
Statistic
- 6
- 1
- 0
- 0
- 1
- almost 3 years ago
- January 11, 2022
License
MIT License
Links
Synced at
Fri, 22 Nov 2024 05:30:19 GMT
Languages