No description
mario | ||
todo | ||
.gitignore | ||
Clock.elm | ||
README.md | ||
setup.sh |
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:
- Find a private spot to install into
- Clone the latest of Elm, elm-reactor, and this repository
- Install into local sandboxes these repositories
- 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