single page apps made easy
Go to file
2019-10-25 18:22:34 -05:00
cli generate pages from cli tool 2019-10-24 00:41:17 -05:00
example store, init, and update global context 2019-10-25 18:22:34 -05:00
src store, init, and update global context 2019-10-25 18:22:34 -05:00
.gitignore add in example 2019-10-04 17:16:02 -05:00
elm-analyse.json a fresh start :) 2019-10-15 23:52:54 -05:00
elm.json generate routes to make life ez pz 2019-10-23 17:56:08 -05:00
netlify.toml a fresh start :) 2019-10-15 23:52:54 -05:00
package-lock.json generate pages from cli tool 2019-10-24 00:41:17 -05:00
package.json generate pages from cli tool 2019-10-24 00:41:17 -05:00
README.md update readme example and links 2019-10-23 18:33:21 -05:00

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