elm-sortable-table/examples/README.md

40 lines
1.3 KiB
Markdown
Raw Normal View History

2016-07-21 00:12:36 +00:00
# Examples
2016-07-25 21:09:09 +00:00
1. [U.S. Presidents by Birth Place](https://evancz.github.io/elm-sortable-table/presidents.html)
2. [Travel Planner for the Mission District in San Francisco](https://evancz.github.io/elm-sortable-table/travel.html)
2016-07-21 19:08:10 +00:00
2016-07-21 00:12:36 +00:00
## Build Instructions
2016-07-21 19:08:10 +00:00
To see the examples *without* CSS, run the following commands:
2016-07-21 00:12:36 +00:00
```bash
git clone https://github.com/evancz/elm-sortable-table.git
cd elm-sortable-table
cd examples
elm-reactor
```
2016-07-21 19:08:10 +00:00
Then navigate to `1-presidents.elm` or `2-travel.elm` from [localhost:8000](http://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:
```bash
2018-12-09 21:36:55 +00:00
git clone https://github.com/NoRedInk/elm-sortable-table.git
2016-07-21 19:08:10 +00:00
cd elm-sortable-table
cd examples
2018-12-09 21:36:55 +00:00
elm make 1-presidents.elm --output=elm.js
2016-07-21 19:08:10 +00:00
elm-reactor
```
Then open [localhost:8000/index.html](http://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:
```bash
2018-12-09 21:36:55 +00:00
elm make 2-travel.elm --output=elm.js
2016-07-21 19:08:10 +00:00
```
2018-12-09 21:36:55 +00:00
As you make changes, you will want to recompile the Elm code with `elm-make`.