https://github.com/deciduously/reason-buttons
Demo app using bs-socket and ReasonReact
https://github.com/deciduously/reason-buttons
Last synced: about 1 year ago
JSON representation
Demo app using bs-socket and ReasonReact
- Host: GitHub
- URL: https://github.com/deciduously/reason-buttons
- Owner: deciduously
- License: mit
- Created: 2019-03-03T20:33:22.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-03-09T14:06:48.000Z (about 7 years ago)
- Last Synced: 2025-04-01T14:19:02.666Z (about 1 year ago)
- Language: OCaml
- Size: 115 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Reason Buttons
Simple `bs-socket` demo application with ReasonReact client app. Companion repo for [Real-Time Communication in ReasonML with bs-socket](https://dev.to/deciduously/real-time-communication-in-reasonml-with-bs-socket-1p5l).
## Dependencies
* [Yarn](https://yarnpkg.com/en/)
## Usage
First, run `yarn install` in the project root. Then open three terminals. In one, run `yarn start:re` to start the Bucklescript compiler, in another run `yarn start:bundle` to run [Parcel](https://parceljs.org/), and finally `yarn serve` to start the server. Then open a few browser tabs to `localhost:3000` and click away. Port can also be specified by the `PORT` environment variable but defaults to 3000.