Skip to content

Instantly share code, notes, and snippets.

@xjamundx
Last active October 31, 2015 21:22
Show Gist options
  • Save xjamundx/805443d2872494332d6a to your computer and use it in GitHub Desktop.
Save xjamundx/805443d2872494332d6a to your computer and use it in GitHub Desktop.
Elm for Absolute Beginners

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.

tldr;

  1. Install Elm
  2. mkdir new-project; cd new-project;
  3. elm-package install evancz/elm-html
  4. elm-package install evancz/start-app
  5. Put your code in Main.elm
  6. Type elm-reactor
  7. Open your web browser to http://localhost:8000/Main.elm

Long Version

Here's the longer version of how I stumbled around to figure this out...

...

Other stuff

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment