3.0.3 • Published 5 years ago
elm-fullstack-init v3.0.3
Fullstack
A setup for writing http based, client-server app in elm, inspired wholly by Lamdera
Getting started
npx elm-fullstack-init element hello-appThis will create a skeleton file directory structure
hello-app
├── Makefile
├── index.js
└── src
├── Client.elm
├── Server.elm
└── Types.elm
1 directory, 5 filessrc/Client.elmis where our Browser.element resides. The only exception is, this app includes a built-insendToServerTaskto generate Browser.application or Browser.document instead, use either
npx elm-fullstack-init application hello-appor
npx elm-fullstack-init document hello-app
src/Server.elmis where our elm Platform.worker resides. It serves your SPA by default, and can respond tosendToServersrc/Types.elmincludes the custom types that defines the protocol between Client and Serverindex.jsboots up our Server.elm and listens to http requests at port 8000
License
Copyright © 2020 Chew Choon Keat
Distributed under the MIT license.