/POC-01

just for my savior Sabine

Primary LanguageDockerfile

Dream + HTMX

Installing Ocaml and Opam

OCaml's package manager, opam, installs both the compiler, as well as any additional packages. Ensure gcc, build-essential, curl, unzip, and bubblewrap are installed on your system, then run the following in your terminal to download and install the newest version of opam:

bash -c "sh <(curl -fsSL https://raw.githubusercontent.com/ocaml/opam/master/shell/install.sh)"

Opam needs to be initialised, which will create a default opam switch. An opam switch is an isolated environment for the OCaml compiler and any packages you install.

opam init

Additionally, if you did not already add the necessary lines to your shell configuration file, you need to run the following command to set up your shell environment to use opam:

eval $(opam env)

Finally, run this to initialize your shell:

eval $(opam env --switch=default)

Importing this project's opam switch

opam import ./.opam-switch

Adding dependencies

Add them to the dune-project file. Then run the next script to install them and update the poc-01.opam file.

dune build

How to run the project

dune exec src/server.exe