Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jaredramirez/bs-elm-example

An example of Elm and Reason working together with bs-elm.
https://github.com/jaredramirez/bs-elm-example

elm reason-elm reasonml

Last synced: 2 months ago
JSON representation

An example of Elm and Reason working together with bs-elm.

Awesome Lists containing this project

README

        

## 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`](http://localhost:8080)
- Open the code and poke around!

### Other things

- Checkout an example using the parcel bundler [here](https://github.com/splodingsocks/reasonable-app)!
- 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!