elm-spa/README.md
2019-10-23 18:33:21 -05:00

992 B

ryannhg/elm-app

an experiment for creating single page apps with Elm!

try it out

  1. npm install

  2. npm run dev

overview

module Main exposing (main)

import Application exposing (Application)
import Generated.Pages as Pages
import Layouts.Main


main : Application () Pages.Model Pages.Msg
main =
    Application.create
        { routing =
            { routes = Pages.routes
            , notFound = Pages.NotFoundRoute ()
            }
        , layout = Layouts.Main.layout
        , pages =
            { init = Pages.init
            , update = Pages.update
            , bundle = Pages.bundle
            }
        }

supporting code