No description
Find a file
2014-08-22 12:03:11 +02:00
mario Make code an example of best practices 2014-08-20 12:18:43 +02:00
todo removed todo's readme 2014-08-19 17:12:07 +02:00
.gitignore ignore cabal and elm generated files 2014-08-15 17:17:28 +02:00
Clock.elm added baseic files 2014-08-15 17:17:47 +02:00
README.md Have instructions assume that people install Elm Platform 0.13 or higher 2014-08-22 12:03:11 +02:00
setup.sh needed elm-get install for todo to work 2014-08-19 17:16:34 +02:00

Elm Examples

A collection of simple Elm projects.

These projects are nice examples of Elm code that are great to learn from and fun to play with in Elm Reactor.

Get Set Up

First make sure you have Elm Platform 0.13 or higher. The next step is to clone this repo:

git clone https://github.com/michaelbjames/elm-examples.git
cd elm-examples

From there you need to build the TodoMVC example. This will make it possible to open up todo/todo.html and see TodoMVC with the debugger:

cd todo
elm-get install
elm --make --only-js Todo.elm
cd ..

Finally, you can start the reactor from the root of this project and start playing with the examples:

elm-reactor

The Reactor should be running at http://localhost:8000. Check it out!

Notes

Be sure to look at todo/todo.html, not todo/Todo.elm. The Elm code uses ports to communicate with JavaScript, so you need to run this program from the HTML file which initializes everything properly.