My first blog, built with YOCaml
I shamelessly stole this whole local installation part from https://github.com/xvw/capsule, because i like this method and he taught it to me that way.
The most standard way to start a development environment is to build a "local switch" by sequentially running these different commands (which assume that OPAM is installed on your machine).
opam update
opam switch create . ocaml-base-compiler.4.14.0 --deps-only -y
eval $(opam env)
Once the switch has been initialized, you need to install the pinned dependencies (at the time of writing this README, YOCaml is not yet available on OPAM, which is very sad), by running these commands:
opam install yocaml
opam install yocaml_unix yocaml_yaml yocaml_markdown yocaml_mustache
And then, if everything goes well, you have to build the code with
dune build
(at the root of the project)
And if everything goes well again, you can run it with
dune exec bin/main.exe