Skip to content
Clément Champouillon edited this page Jan 18, 2020 · 2 revisions

Welcome to the ReasonWebServer wiki!

In this page you'll have a quick explaination of what ReasonML code is, how it works, why this project, and more...

What is ReasonML

ReasonML is a meta language built on top of the Ocaml language. It's a functionnal oriented language, launched by Facebook, they use it themselves for the Messenger web application for example. The idea behind this language is to have the benefits of the strongly typed Ocaml language, but to make it more friendly to JavaScript developers for example, and hundreds of them are already adopting it for both front- or backends.

The previous sentence should make you react: how can such a language target frontend? They are 2 main outputs possible from a ReasonML code. Either compile it to a binary, such as in standard Ocaml, to run it on a Unix server or computer for example, OR use a compiler called BuckleScript to output some JS files.

They are 2 obvious quick start projects that we could make as a web developer:

  • A React application with some cool stuff on screen, some simple components, etc...
  • Or ! A low level http server, responding to simple GET or POST request with some dummy content... And that's what this project is all about !
Clone this wiki locally