Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 967 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 967 Bytes

bs-elm example

Running the example

  • Make sure both Reason and Elm are installed
  • Clone this repository git clone https://github.com/jaredramirez/bs-elm-example.git
  • Go in the directory cd bs-elm-example
  • Install the dependencies with yarn install or npm install
  • Install the elm dependencies with elm install
  • In one tab, start bucklescript with yarn bsb:start or npm run bsb:start
  • In another tab, launch the dev server with yarn webpack:serve or npm run webpack:serve
  • Navigate to localhost:8080
  • Open the code and poke around!

Other things

  • Checkout an example using the parcel bundler here!
  • This example is pretty simple, but demonstrates mounting an Elm app in Reason, passing flags on the app instantiation, and interacting with ports. If there's other example you want (like an example of ports following the actor model?), let me know!