Skip to content

haskell-miso/miso-camera

Repository files navigation

🍜 📷 miso-camera

See it live

Development

Call nix develop to enter a shell with GHC 9.12.2

$ nix develop --experimental-features nix-command --extra-experimental-features flakes

Once in the shell, you can call cabal run to start the development server and view the application at http://localhost:8080

Build (Web Assembly)

$ nix develop .#wasm --command bash -c "make" --experimental-features 'nix-command flakes'

Build (JavaScript)

$ nix develop .#ghcjs --command bash -c "build" --experimental-features 'nix-command flakes'

Serve

To host the built application you can call serve

$ nix develop .#wasm --command bash -c "serve" --experimental-features 'nix-command flakes'

Clean

$ nix develop .#wasm --command bash -c "make clean"

This comes with a GitHub action that builds and auto hosts the example.

About

🎥 An example of using the Camera API with miso

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published