Skip to content

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 !

License

Notifications You must be signed in to change notification settings

generous-folks/reason-web-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

55 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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

reason-web-server [directory]

Development quick start

Install dependencies using the following command

esy install

Then build it

esy build

You can afterward run the server

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 ! [email protected]

About

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 !

Topics

Resources

License

Stars

Watchers

Forks

Packages