##Building the Project
-
First, ensure that js_of_ocaml and its dependencies are installed by running:
opam install js_of_ocaml
-
With the cs3110 tool installed, run:
cs3110 compile -p js_of_ocaml -p js_of_ocaml.syntax main.ml
to compile the binaries to the _build
folder.
-
To cross-compile to javascript, run
js_of_ocaml _build/main.d.byte
-
Open
index.html
to run!