elm-sortable-table/examples
mike stedman 78dc0461d7 Update example 1 to 0.19 2018-12-09 14:29:34 -07:00
..
1-presidents.elm Update example 1 to 0.19 2018-12-09 14:29:34 -07:00
2-travel.elm Updated examples for elm 0.18 2016-12-07 07:40:58 +01:00
README.md Fix typo in example links 2016-07-25 14:09:09 -07:00
elm.js Update example 1 to 0.19 2018-12-09 14:29:34 -07:00
elm.json Update example 1 to 0.19 2018-12-09 14:29:34 -07:00
index.html Update example 1 to 0.19 2018-12-09 14:29:34 -07:00

README.md

Examples

  1. U.S. Presidents by Birth Place
  2. Travel Planner for the Mission District in San Francisco

Build Instructions

To see the examples without CSS, run the following commands:

git clone https://github.com/evancz/elm-sortable-table.git
cd elm-sortable-table
cd examples
elm-reactor

Then navigate to 1-presidents.elm or 2-travel.elm from localhost:8000. When using elm-reactor, refreshing a page that ends with .elm will recompile the code in that file and show you the new result.

Build Instructions with CSS

To see the examples with CSS, run the following commands:

git clone https://github.com/evancz/elm-sortable-table.git
cd elm-sortable-table
cd examples
elm-make 1-presidents.elm --yes --output=elm.js
elm-reactor

Then open localhost:8000/index.html in your browser. That HTML file loads in some CSS and whatever code is in elm.js. So if you want to see the second example with CSS, you can compile it like this:

elm-make 2-travel.elm --yes --output=elm.js

As you make changes, you will want to recompile the Elm code with elm-make.