- 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
ornpm install
- Install the elm dependencies with
elm install
- In one tab, start bucklescript with
yarn bsb:start
ornpm run bsb:start
- In another tab, launch the dev server with
yarn webpack:serve
ornpm run webpack:serve
- Navigate to
localhost:8080
- Open the code and poke around!
- 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!