elm-server: Server for developing Elm projects

[ bsd3, compiler, deprecated, language, program ] [ Propose Tags ]
Deprecated in favor of elm-reactor

Provides a standalone Snap server that serves static files. For Elm files, it recompiles them and serves them as HTML, so you can just refresh to see the new version.


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 0.1.2, 0.2.0, 0.3.0, 0.3.5, 0.4.0, 0.4.0.3, 0.4.0.4, 0.5.0, 0.6, 0.6.0.3, 0.7, 0.8, 0.9, 0.9.0.1, 0.9.0.2, 0.10.1, 0.11, 0.11.0.1
Dependencies base (>=4.2 && <5), bytestring, cmdargs, containers (>=0.3), directory, Elm (>=0.12.3), filepath, mtl, process, snap-core, snap-server, unordered-containers [details]
License BSD-3-Clause
Copyright Copyright: (c) 2011-2014 Evan Czaplicki
Author Evan Czaplicki
Maintainer info@elm-lang.org
Category Compiler, Language
Home page http://elm-lang.org
Source repo head: git clone git://github.com/elm-lang/elm-server.git
Uploaded by EvanCzaplicki at 2014-05-20T16:10:10Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Executables elm-server
Downloads 15379 total (43 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs not available [build log]
Last success reported on 2015-05-19 [all 7 reports]

Readme for elm-server-0.11.0.1

[back to package description]

Elm Server

This is a simple server to make it easier to develop Elm projects. It lets you view Elm files in your browser and recompile them by refreshing the page.

Install

It comes bundled with the Elm Platform or you can install it individually with cabal install elm-server.

Use

Navigate to the Elm project you want to work on. In that directory run:

elm-server

This will start the server at http://localhost:8000. If you want to use a different port, use the --port flag (e.g. elm-server --port 8080). In your browser you can navigate through your project and see how each Elm page looks.

elm-server will serve any kind of static content, so you can also look at HTML, images, JSON, or whatever else you may need to serve.