Ported from vuex-notes to Elm to help me learn Elm. My understanding is that this is more complex than it should be in organization, but I followed a large part of the NoRedInk/elm-style-guide. The use of Array to implement the backing store may not be ideal.
- Install Elm.
- Clone this repo:
git clone halostatue/elm-notes
. - Install Elm dependencies:
elm-package install --yes
. - Make
notesapp.js
:elm-make src/NotesApp.elm --output notesapp.js
. - Serve the application:
elm-reactor
. - Visit http://localhost:8000/index.html.
I have written these as documentation tests.
- Install
elm-test
andelm-verify-examples
:npm install -g elm-test elm-verify-examples
. - Install Elm dependencies:
(cd tests && elm-package install --yes)
. - Generate the test specs and run the tests:
elm-verify-examples && elm-test
.