Skip to content

ericTsiliacos/elm-example-app

Repository files navigation

Elm Example App Includes

  • Http Request(s): GET
  • Navigation & Routing
  • Saving to LocalStorage
  • Using Ports
  • Unit Testing
  • Componentization (NOTE: should be put off as late as possible, favor extracting functions)
  • Using Flags to initialize Elm App (apiEndpoint, loading initial data from localStorage)

Prerequisites

npm i -g elm elm-test

Nice to have(s):

npm i -g elm-live json-server

Download the latest version of elm-format here: https://github.com/avh4/elm-format/releases for auto-formatting

Run

json-server db.json -p 8888

elm-live src/Main.elm --output=index.js --open --debug

Unit Tests

elm-test --watch

Feature Specs

rspec

Examples Todo:

  • POST request example
  • Websocket example
  • Embed Elm: integrate elm with another javascript famework/library like React/Redux

Setting up a new project

elm-test init --yes

About

An example app for Elm

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published