Elm client for feature-creature cucumber visualization tool
- Clone this repository.
- Download and install Elm: http://elm-lang.org/install
- To install all dependencies, run
elm-package install. (on linux? see below) - Install the
feature-creatureproject and follow the instructions to build it and run the web server: https://github.com/gust/feature-creature - Install Ruby dependencies with
bundle install - Compile the main Elm file into Javascript, use the command:
elm make src/Main.elm --warn --output public/js/elm.js. - Run the feature creature API, see https://github.com/gust/feature-creature
- Set the environment variable
FC_API_PATHto the URL of the API - Run the application locally with
bundle exec rackup
Note: The elm-reactor debugger is currently not compatible with ports, which are used in the application. Nothing we can do about that, unfortunately. We'll look into alternatives.
-
Install a recent version of node and npm https://nodejs.org/en/download/package-manager/#debian-and-ubuntu-based-linux-distributions
Note: if you have trouble installing
nodejs-legacymove on without it. -
Install elm via npm
sudo npm install -g elm -
Confirm elm installed properly by running
elm-repl -
If you receive an error about
index.jshave a gander at elm-lang/elm-platform#100 and do the following:sudo npm uninstall -g elmsudo npm install -g elm@2.0.0- confirm elm installed properly by running
elm-repl
