Skip to content

Latest commit

 

History

History
28 lines (18 loc) · 1.47 KB

README.md

File metadata and controls

28 lines (18 loc) · 1.47 KB

PhoenixElm

A proof of concept embedding Elm in Elixir Phoenix, communicating over a channel.

Look at the JavaScript console, and inspect the web socket, to see the behind-the-scene action. The interesting bits of code are found at:

Inspired by:

To start the app:

  1. Install dependencies with mix deps.get
  2. Install more dependencies with npm install
  3. Finish up pulling dependencies with cd web/elm/ and elm make
  4. Start Phoenix endpoint from project root with mix phoenix.server

Now you can visit localhost:4000 from your browser.

(This worked when I first did it, but it doesn't right now. Seems like some dependency got updated and broke the chain. Will not investigate more right now.)