Files
elm-0.19-workshop/README.md
2018-08-05 05:05:05 -04:00

2.2 KiB
Raw Blame History

This workshop is licensed under a Creative Commons Attribution 4.0 International License. The server/ directory uses moleculer-node-realworld-example, which has its own license. The rest of the code is a variation on elm-spa-example, an MIT-licensed implementation of the realworld front-end. Many thanks to the authors of these projects!

Getting Started

  1. Install Node.js 7.0.0 or higher

  2. Clone this repository

Run this at the terminal:

git clone https://github.com/rtfeldman/elm-0.19-workshop.git
cd elm-workshop
  1. Start the server

We'll be running a local server for our Elm UI to use. Let's get it set up.

cd server
npm install
npm start

If the server started up successfully, you should see > moleculer-runner services at the end of your terminal.

We're going to leave this server running and not touch it again for the duration of the workshop, so don't close it until the workshop is over!

Build the Elm UI

Leave the existing terminal running, and open a second terminal.

In the new termnal, cd into the elm-workshop/server/ directory again.

Then run this to build the Elm code for the first time:

elm make src/Main.elm --output=../server/public/elm.js

If things arent working, the instructor will be happy to help!