lbguilherme / crystal-web-demo

Demo for the crystal-web project

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Demo for the crystal-web project

License:MIT License


Languages

Language:Crystal 82.3%Language:HTML 17.7%