shakacode / rescript-react-on-rails-example

Example of https://rescript-lang.org/ with React on Rails

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:
docker-compose build
docker-compose run web yarn run build
docker-compose up

About

Example of https://rescript-lang.org/ with React on Rails


Languages

Language:Ruby 63.2%Language:JavaScript 21.3%Language:HTML 10.4%Language:ReScript 2.8%Language:CSS 1.2%Language:Dockerfile 1.0%