Elm is an exciting new programming language that hopes to transform the way people write web apps. It's inspired by a lot of functional programming ideas in languages like haskell, but hopes to make them accessible to web developers. Recently, I hoped to get started trying out some of the examples on Elm's website, but found the directions lacking. What follows is a recap of my journey to getting a working Elm setup on my computer.
- Install Elm
mkdir new-project; cd new-project;
elm-package install evancz/elm-html
elm-package install evancz/start-app
- Put your code in
Main.elm
- Type
elm-reactor
- Open your web browser to
http://localhost:8000/Main.elm
Here's the longer version of how I stumbled around to figure this out...
...
There's also Elm's online editor, which is mostly cool for observing code, not writing your own things IMO. Great very first place to star though.