Skip to content

Instantly share code, notes, and snippets.

@knowthen
Created February 22, 2017 16:50
Show Gist options
  • Save knowthen/8630aa0fbc6daa34452c1b5de6f498fe to your computer and use it in GitHub Desktop.
Save knowthen/8630aa0fbc6daa34452c1b5de6f498fe to your computer and use it in GitHub Desktop.
Learn Functional Programming With Elm | Elm-lang Crash Course Dev Setup

Development Environment Setup Steps

  1. Install Recent Version of Nodejs by downloading and running the installer found at https://nodejs.org/en/ or use the Node Version Manager found at https://github.com/creationix/nvm
  2. Install Elm by keying the command npm install -g elm
  3. Install the atom editor located at https://atom.io/
  4. Install the language-elm using the atom package manager (apm), by keying the command apm install language-elm
  5. Install elm-oracle by keying npm install -g elm-oracle
  6. Determine the path where the elm-oracle command was installed by keying which elm-oracle on mac and unix or where.exe elm-oracle on windows. Copy the entire path and file name to the clipboard, for use in the next step
  7. Open up Atom, then open up the preferences/settings by pressing CMD + , (mac) or CTRL + , (windows) or via the menu. Click packages then filter by elm. Find the language-elm package and click the settings button. Set the elm-oracle setting, by pasting the value we copied in the prior step.
  8. Download the current version of elm-format found at https://github.com/avh4/elm-format
  9. Unzip the downloaded file and move the elm-format executable to a location in your PATH variable, such as mv ~/Downloads/elm-format /usr/local/bin/elm-format
  10. Install the elm-format Atom Package (Note: different from elm-format command), by keying apm install elm-format
  11. Start Atom, Open up Settings CMD + ,, click Packages, filter by elm, then click on the elm-format package's settings button. Set the elm-format command path setting and veryify the format on save checkbox is checked.
  12. Install atom linter by keying apm install linter
  13. Install the elm linter by keying apm install linter-elm-make
  14. Locate and copy the path and file for the elm-make command by keying the command which elm-make for mac or where.exe elm-make on windows.
  15. Open the linter-elm-make settings page in atom as you did in steps 7 and 13, then click the settings button next to linter-elm-make and then set the elm-make setting to the copied value from the prior step.
  16. Install the elmjutsu atom package by keying apm install elmjutsu

Your atom / elm dev environment should be good to go!

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