Get updates via , Github, or RSS | About

Episode 13: Elm & Phoenix Nov 3, 2016

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.

Examples

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)