Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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.
- Host: GitHub
- URL: https://github.com/jaredramirez/bs-elm-example
- Owner: jaredramirez
- Created: 2018-01-13T22:14:44.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2022-12-09T08:22:24.000Z (about 2 years ago)
- Last Synced: 2024-04-13T18:23:14.637Z (10 months ago)
- Topics: elm, reason-elm, reasonml
- Language: Elm
- Homepage:
- Size: 670 KB
- Stars: 4
- Watchers: 4
- Forks: 0
- Open Issues: 16
-
Metadata Files:
- Readme: README.md
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!