Skip to content

From zero to an express API in ReasonML - A CodeLab for DevFest Nantes 2018

License

Notifications You must be signed in to change notification settings

Sfeir/reason-codelab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReasonML CodeLab - DevFest Nantes

  1. After cloning...
  • run npm install this will install the bucklescript toolchain inculding the OCaml compiler - so be patient!

  • run npm start this will compile everything under src and generate .bs.js files alongside your .re files

  • run node src/one/Calculator.bs.js (and others) bucklescript generates commonJS modules ready for nodeJS

  1. Setup an empty project
  • install bs-platform globally npm i -g bs-platform

  • run bsb -init . -theme basic-reason

  • explore project structure and dependencies

  • start compiler in watch mode with npm start

  • run compiled JS: node src/Demo.bs.js

    • js in repository yes or no ? (no)

About

From zero to an express API in ReasonML - A CodeLab for DevFest Nantes 2018

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published