https://github.com/shakacode/rescript-react-on-rails-example
Example of https://rescript-lang.org/ with React on Rails
https://github.com/shakacode/rescript-react-on-rails-example
rescript rescript-react
Last synced: 3 months ago
JSON representation
Example of https://rescript-lang.org/ with React on Rails
- Host: GitHub
- URL: https://github.com/shakacode/rescript-react-on-rails-example
- Owner: shakacode
- Created: 2018-03-26T17:36:17.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2022-01-12T20:00:07.000Z (almost 4 years ago)
- Last Synced: 2024-05-01T09:45:49.811Z (over 1 year ago)
- Topics: rescript, rescript-react
- Language: Ruby
- Homepage:
- Size: 326 KB
- Stars: 7
- Watchers: 28
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rescript-react-on-rails-example
## Setup the app
```
bundle
yarn
rails db:setup
```
## Run the app
```
foreman start -f Procfile.dev-static
```
or
```
foreman start -f Procfile.dev
```
The latter will automatically reload the browser window when the you save a change to the `.res` file.
# Docker Instructions
1. Edit the file `config/database.yml` per the comments in the file for Docker
2. Run the following:
```shell
docker-compose build
docker-compose run web yarn run build
docker-compose up
```