use fp framework
You can start an Elm project by running:
$ elm init
$ elm reactor
# Create an index.html file that you can open in your browser.
elm make src/Main.elm
# Create an optimized JS file to embed in a custom HTML document.
elm make src/Main.elm --optimize --output=elm.js
$ elm install elm/http
$ elm install elm/json
$ npm install elm-format -g
from a Source Editor
run elm --help