crystal-web-demo
Version, currently main branch1 version
- main branchlatestJan 11, 2022
github.com/lbguilherme/crystal-web-demo
Demo for the crystal-web project
6 stars
0 dependents
License: MIT
Installation
# Add this to your shard.yml
dependencies:
crystal-web-demo:
github: lbguilherme/crystal-web-demo
branch: mainmain is a branch, not a release, so this tracks it rather than pinning a version.
Then run:
shards installshard.yml
- Crystal
1.2.2- License
- MIT
- Author
- Guilherme Bernal <guilherme@cubos.io>
- Target
crystal-web-demofrom src/crystal-web-demo.cr
Dependencies
Runtime Dependencies
- web*github: lbguilherme/crystal-web
README
# crystal-web-demo
This is a demo of the [crystal-web](https://github.com/lbguilherme/crystal-web) package.
## Usage
Build with:
```sh
shards install
lib/web/scripts/build.sh src/demo.cr
```
If you want to optimize for release mode use:
```sh
shards install
lib/web/scripts/build.sh src/demo.cr --release
```
Create an index.html file with:
```html
<script src="demo.js"></script>
<script>runCrystalApp("demo.wasm")</script>
```
And start any web server to serve those files:
```sh
python3 -mhttp.server
```
Documentation
Built from the current release. The first visit to a release nobody has asked for starts its build.
Links
This branch
- Branch
main- Seen
- Jan 11, 2022
- Crystal
1.2.2- Indexed
- yes
Dependents
No indexed shard depends on this one yet.
Repository
github.com/lbguilherme/crystal-web-demo
Metadata
- Created
- Aug 12, 2026
- Updated
- Aug 14, 2026
- Synced
- Aug 14, 2026
- Versions
- 1