Skip to content

Rails integration with Elm + Hotwire + Stimulus demo

Notifications You must be signed in to change notification settings

benjamin-thomas/hot_elm

Repository files navigation

Elm + Hotwire + Stimulus demo

This is a rails app.

Run locally

Requirements:

  • docker-compose
  • yarn
  • browser-sync (optional, see Procfile.dev)
  • local ruby install (see: .ruby-version file)
    • see rbenv for easy ruby version management

Step 1: add a local hostname entry to /etc/hosts

root@me:~# cat /etc/hosts | grep hot-elm
127.19.0.1      pg.hot-elm.test

Step 2: adjust the docker-compose.yml ports config

As per the /etc/hosts entry

Step 3: launch the dev database

docker-compose up pg

Step 4: launch the rails app

./bin/dev

Step 5: Open your browser

See Procfile.dev to change the listening ports, etc.

One port is dedicated to a live reload environment.

The other is the standard rails port, which may be better suited when receiving and sending data via websockets (turbo frames)

About

Rails integration with Elm + Hotwire + Stimulus demo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages