https://github.com/generous-folks/reason-web-server
A very simple ReasonML http server based on Httpaf, approaching the principles of "server as a function". Let's build a type-safe web server !
https://github.com/generous-folks/reason-web-server
http reasonml reasonml-language
Last synced: 4 months ago
JSON representation
A very simple ReasonML http server based on Httpaf, approaching the principles of "server as a function". Let's build a type-safe web server !
- Host: GitHub
- URL: https://github.com/generous-folks/reason-web-server
- Owner: generous-folks
- License: mit
- Created: 2020-01-18T11:41:46.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-18T22:37:13.000Z (almost 5 years ago)
- Last Synced: 2025-08-05T06:48:47.183Z (6 months ago)
- Topics: http, reasonml, reasonml-language
- Language: Reason
- Homepage:
- Size: 4.68 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Welcome to the ReasonWebServer project !
This is a work in progress pedagogic project about ReasonML language.
Learn more about ReasonML language on [the ReasonML website](https://reasonml.github.io/).
## Using as static server
Get the package from NPM using `npm` or `yarn`
```
yarn add @generous-folks/reason-web-server
```
or
```
npm install @generous-folks/reason-web-server
```
Use the binary to serve any static folder
```shell script
reason-web-server [directory]
```
## Development quick start
Install dependencies using the following command
```sh
esy install
```
Then build it
```sh
esy build
```
You can afterward run the server
```sh
esy run [assets_directory]
```
## Roadmap
*Legend:* ✅ Done, 🏗 In progress, 🗓 Planned
| | Satus |
|---|---|
|Hello ReasonML|✅|
|Forever server|✅|
|Handle multiple methods|✅|
|Handle multiple routes|✅|
|Serve some files|🏗|
## Contact
Feel free to contact me to learn more about this project or ReasonML in general !
[clement@champouillon.com](mailto:clement@champouillon.com)