Skip to content

lbguilherme/crystal-web-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published