A webframework for Reason and OCaml
See the codeA tiny framework for developing HTTP stuff in reason native using Httpaf and H2.
https://reason-native-web.github.io/
The documentation is not as fleshed out as it should be, the repos is under heavy development.
esy install
esy build
esy examples
$(esy examples-path)/hello_world.exe
$(esy examples-path)/with_router.exe
$(esy examples-path)/simple_proxy.exe
Server:
let http_server = Morph_server_http.make();
Morph.start(~servers=[http_server], _request => Http.Response.Ok.make)
|> Lwt_main.run;
Slightly larger example using ocaml-routes: https://github.com/reason-native-web/morph/blob/master/examples/with_router.re
Thank you to @imbsky for sponsoring my work on Morph
Reason
67.5%
JavaScript
18.8%
OCaml
11.5%
Shell
2.2%
A webframework for Reason and OCaml
See the codeA tiny framework for developing HTTP stuff in reason native using Httpaf and H2.
https://reason-native-web.github.io/
The documentation is not as fleshed out as it should be, the repos is under heavy development.
esy install
esy build
esy examples
$(esy examples-path)/hello_world.exe
$(esy examples-path)/with_router.exe
$(esy examples-path)/simple_proxy.exe
Server:
let http_server = Morph_server_http.make();
Morph.start(~servers=[http_server], _request => Http.Response.Ok.make)
|> Lwt_main.run;
Slightly larger example using ocaml-routes: https://github.com/reason-native-web/morph/blob/master/examples/with_router.re
Thank you to @imbsky for sponsoring my work on Morph
Reason
67.5%
JavaScript
18.8%
OCaml
11.5%
Shell
2.2%