0.0.5 • Published 11 years ago
elm-expressway v0.0.5
Elm Expressway
Get up and running on multi-user Elm applications in a few easy steps!
Installation
npm init your project
npm install --save-dependency elm-expressway
./node_modules/.bin/expressway
This creates a barebones application upon which you can build. It sets up:
- An Express application in
index.jsthat interoperates between websockets and Elm. - A base Elm application, fatored into
Client.elmandServer.elm. - Markup and client-side socket handling in
public/index.html. - A
gulpfilethat compiles the application and runs the server.
The files created, using the default Elm namespace, will be:
├── Elm
│ ├── Client.elm
│ └── Server.elm
├── gulpfile.js
├── index.js
└── public
└── index.htmlUsage
Start your application: ./node_modules/.bin/gulp. It is recommended to add this as the start script in your package.json.
Open localhost:8000 in a browser!