No description
Find a file
2014-08-15 20:10:07 +02:00
mario added baseic files 2014-08-15 17:17:47 +02:00
todo added todo example, along with required experimental code 2014-08-15 17:30:52 +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 clearer directions 2014-08-15 19:12:14 +02:00
setup.sh we need a cabal build 2014-08-15 20:10:07 +02:00

elm-examples

Welcome to the starter kit!

Setup

Do you trust me?

curl https://raw.githubusercontent.com/michaelbjames/elm-examples/master/setup.sh | bash

Now run ../elm-reactor/dist/build/elm-reactor/elm-reactor to get started.

--

If not, here's how we'll get set up.

We need to:

  1. Find a private spot to install into
  2. Clone the latest of Elm, elm-reactor, and this repository
  3. Install into local sandboxes these repositories
  4. Run and enjoy the examples

Before we do anything:

mkdir elm-starter-kit
cd elm-starter-kit

Now let's get the latest from the repos we need:

git clone git@github.com:elm-lang/Elm.git
git clone git@github.com:elm-lang/elm-reactor.git
git clone git@github.com:michaelbjames/elm-examples.git

Next we need to build each

elm
cd elm
cabal sandbox init
cabal install --only-dependencies; cabal configure; cabal build; cabal install
elm-reactor
cd ../elm-reactor
cabal sandbox init
cabal sandbox add-source ../elm
cabal install --only-dependencies; cabal configure; cabal build; cabal install
elm-examples
cd ../elm-examples/todo
elm --make --only-js Todo.elm
cd ..

Let's try it out!

../elm-reactor/dist/build/elm-reactor/elm-reactor