In your Terminal app, go to the folder where this file is.
You can easily do that by typing cd
(with a trailing space), and then dragging the folder into the terminal.
First, install Elm from https://guide.elm-lang.org/install.html
Then start elm reactor:
elm-reactor
Then open your web browser to http://localhost:8000/Main.elm Whenever you reload the page, the Elm files will be recompiled (and will show you if there are any errors).
- Elm CSS: http://package.elm-lang.org/packages/rtfeldman/elm-css/latest/
- The HTML-to-Elm tool: https://mbylstra.github.io/html-to-elm/