danmack / elm-nano-examples

Minimal, standalone, basic examples of Elm web application concepts

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

In this repository I keep a list of examples of common constructs in Elm. These examples are stripped down to their bare minimum.

The reason behind that is, that some of the examples from the offical guide are a bit tricky to get running. When a chapter is embedded in other chapters the code is sometimes mixed with other aspects, and when you're trying to use the example code it's not entirely clear which parts to take.

The examples are completely self sufficient and only rely on the elm executable. To run an example change to the respective subfolder and:

$ elm make src/Main.elm --output=elm.js

Then open the index.html in that folder.

List of examples

  • Incoming ports - How to send information from JavaScript to Elm
  • Outgoing ports - How to send information from Elm to JavaScript
  • Component - How to encapsulate UI functionality into reusable components

About

Minimal, standalone, basic examples of Elm web application concepts


Languages

Language:Elm 53.7%Language:JavaScript 27.1%Language:Haskell 10.5%Language:HTML 6.2%Language:Shell 2.4%Language:CSS 0.1%