All Projects → bryanjenningz → 25 Elm Examples

bryanjenningz / 25 Elm Examples

25 Elm examples - starting from an static view and gradually progressing to an interactive web app with routing

Programming Languages

elm
856 projects

25 Elm Examples

These 25 Elm examples will take you from building a static view all the way to building an interactive web app with routing.

Links to the examples using Ellie

How to run and view examples 21-25 on your computer

You can use the Ellie links for examples 21-25, but if you want to run it locally, you can copy/paste the following commands which will clone the Github repo, then compile example 21 to a JavaScript file called elm.js, then you will open the HTML for example 21 in your default browser.

git clone https://github.com/bryanjenningz/25-elm-examples.git
cd 25-elm-examples
elm make 21-localstorage-editable-todos.elm --output elm.js
elm reactor
# The elm reactor command will server your files to http://localhost:8000,
# so go to http://localhost:8000 in your browser and select the HTML file.

The above code will compile and open example 21 in your default browser. To compile and view examples 22 through 25 locally, you do the same process of compiling the Elm file you want to the elm.js JavaScript file, then running elm reactor and selecting the HTML file in your browser at http://localhost:8000.

Other Free Resources

These 25 Elm examples were inspired by the examples on the Elm website and the official Elm guide. Each example tries to build off of the previous example by adding a small amount of code so that it's easy to understand and see how you can build stuff in Elm. If you have any suggestions for more examples that should be added or if anything is unclear, add an issue or make a pull request.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].