Elm projects to learn Elm language
elm
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Alfred 01f24b43d8 Update README file 1 month ago
00.button Start repository adding the first project: Button 4 months ago
01.buttons Add buttons project 4 months ago
02.simple.todos Add simple todos project 4 months ago
03.make Add JS interaction 4 months ago
04.js-interact Add JS interaction 4 months ago
05.app Finish example 05 4 months ago
06.gotchas Add a method to deal with forms 1 month ago
08.managing.several.inputs Add a method to deal with forms 1 month ago
docker Start example 05 4 months ago
.gitignore Start repository adding the first project: Button 4 months ago
README.md Update README file 1 month ago
boilerplate.elm Start example 05 4 months ago

README.md

Learning Elm

This is a series of little projects to learn Elm language. You can launch them going to their folder and executing:

$ elm reactor

If you need to build a project (like 03 or 04) to inject it into an html document:

$ elm make src/Main.elm --output compiled/main.js

Projects

  • 00.button: It shows how to manage a button. There are several buttons which send messages to the update function.
  • 01.buttons: It shows how to interact with complex models, inputs, and parametrized messages.
  • 02.simple.todos: It shows how to interact with lists and make a bit more complex code.
  • 03.make: It shows how to create an Elm application. It will take the whole document.
  • 04.js-interact: It shows how to use ports to send and receive from JavaScript code.
  • 05.app: It shows how to deal with a real application that makes requests and have to deal with encoders and decoders.
  • 06.gotchas: Some useful code and shortcuts.
  • 08.managing.several.inputs: It shows how to deal with several inputs at a form level.

Hints

To start a new project: create the folder and execute elm init.