Skip to content
This repository has been archived by the owner on Aug 11, 2020. It is now read-only.

Iteam1337/reason-opium-basic

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

reasonml-opium-basic

A basic server example using Opium built with ReasonML.

Getting started

Clone this repository and cd into it.

npm i -g esy@latest
esy
esy start

Server runs by default at http://localhost:3000

See src/server.re for available endpoints.

Folder structure

File Description
esy.json If you're used to a NPM-like worfklow, esy.json is your package.json and specifies all dependencies and scripts.
*/dune The build system. Specify dependencies and more. Docs.
src/logging.re Sets up our logging. Grabbed from https://github.com/rgrinberg/opium/blob/master/examples/hello_world_log.ml.
src/server.re Our main executable (dune).

Dependencies

Releases

No releases published

Packages

No packages published

Languages