Elm and Phoenix go together like peanut butter and jelly. Phoenix is a web framework written in Elixir. Combining the two allows you to write functional code on the front-end and the back-end.
npm install --save-dev elm-brunch
brunch-config.js
elmBrunch: { mainModules: ['web/static/elm/Main.elm'], outputFolder: 'web/static/js/' }
app.js
import Elm from './main' const div = document.getElementById('main') Elm.Main.embed(div)