/elm-architecture-tutorial

How to create modular Elm code that scales nicely with your app

Primary LanguageElmBSD 3-Clause "New" or "Revised" LicenseBSD-3-Clause

The Elm Architecture

The Elm Architecture is a simple pattern for infinitely nestable components.

This repo parallels The Elm Architecture tutorial, allowing you to follow along and compile things locally.

Run The Examples

Start by installing Elm and familiarizing yourself with the command line tools. Once that is done, run the following commands in your terminal to download this repo and start a server that compiles Elm for you:

git clone https://github.com/evancz/elm-architecture-tutorial.git
cd elm-architecture-tutorial
elm-reactor

Now go to http://localhost:8000/ and start looking at the examples/ directory.

When you edit an Elm file, just refresh the corresponding page in your browser and it will recompile. After you get comfortable with things in the examples/ directory, check out the nesting/ directory which has examples of snapping components together.