Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/reason-native-web/morph
A webframework for Reason and OCaml
https://github.com/reason-native-web/morph
hacktoberfest ocaml sponsors
Last synced: 2 months ago
JSON representation
A webframework for Reason and OCaml
- Host: GitHub
- URL: https://github.com/reason-native-web/morph
- Owner: reason-native-web
- License: mit
- Created: 2019-09-05T15:16:02.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-11-22T14:13:08.000Z (about 4 years ago)
- Last Synced: 2024-08-03T01:29:20.865Z (6 months ago)
- Topics: hacktoberfest, ocaml, sponsors
- Language: Reason
- Homepage: https://reason-native-web.github.io/morph/
- Size: 2.73 MB
- Stars: 139
- Watchers: 10
- Forks: 7
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-list - morph - native-web | 141 | (Reason)
README
# morph
[![Build Status](https://dev.azure.com/reason-native-web/morph/_apis/build/status/reason-native-web.morph?branchName=master)](https://dev.azure.com/reason-native-web/morph/_build/latest?definitionId=1&branchName=master)
A tiny framework for developing HTTP stuff in reason native using Httpaf and H2.
## Documentation
https://reason-native-web.github.io/
_The documentation is not as fleshed out as it should be, the repos is under heavy development._
## Build and run examples
```
esy install
esy build
esy examples
$(esy examples-path)/hello_world.exe
$(esy examples-path)/with_router.exe
$(esy examples-path)/simple_proxy.exe
```## Example
**Server:**
```ocaml
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
## Sponsors
Thank you to [@imbsky](https://github.com/imbsky) for sponsoring my work on Morph