Skip to content

Latest commit

 

History

History

custom-server-reasonml

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 

Custom server REASONML

Install it and run:

npm install
npm run dev
# or
yarn
yarn dev

Build the app

yarn next:build
npm run next:build

Run the production app

Run this command after yarn build.

yarn start

The idea behind this example

ReasonML is an exciting new language and since it can compile directly to JS via bucklescript that means that we can power our backend server with REASONML and also have the frontend built with reasonreact, which is covered in another example. This example shows how powerful & helpful it can be to build a next js custom server with a typesafe language.

The example has been built off the custom-server example that uses pure nodejs to build the custom server.