Renamed to choonkeat/elm-webapp. It is published under that name, and new versions come out there.
Versions published as choonkeat/elm-fullstack still install under that name. 4 versions of 7 come from the new location (see their notes). 3 versions could not be recovered and cannot be installed.
Unavailable. Nobody can download this version any more, with elm or with the Lamdera compiler: github.com/choonkeat/elm-webapp exists but has no tag 3.1.0; Software Heritage has no tag 3.1.0 for it; no fork with tag 3.1.0 found (15 same-name repos checked); no cached copy. Use another version.
A setup for writing http based, client-server app in elm, inspired wholly by Lamdera
npx elm-fullstack element hello-appThis will create a skeleton file directory structure
hello-app
├── Makefile
├── index.js
└── src
├── Client.elm
├── Server.elm
├── Types.elm
└── Types
└── Auto.elm
1 directory, 5 filessrc/Client.elm is where our Browser.element resides. The only exception is, this app includes a built-in sendToServer Task
To generate Browser.document or Browser.application instead, use either commands
npx elm-fullstack document hello-app
npx elm-fullstack application hello-appsrc/Server.elm is where our elm Platform.worker resides. It serves your SPA by default, and can respond to sendToServer
src/Types.elm includes the custom types that defines the protocol between Client and Server
index.js boots up our Server.elm and listens to http requests at port 8000
src/Types.elm holds the types shared between Server and Client.
src/Types/Auto.elm contains auto-generated Json Encoder and Decoder for all types defined in src/Types.elm. See notes regarding imported types.
Copyright © 2020 Chew Choon Keat
Distributed under the MIT license.