Giter VIP home page Giter VIP logo

elm-platform's Introduction

Elm Platform

A bundle of all Elm tools: elm, elm-server, elm-repl, and elm-get.

Install

If you have any trouble installing at all, open an issue on this repo and then continue to the Platform Agnostic instructions which work on any OS.

Mac — use the installer and continue the getting started walkthrough for Mac.

Windows — use the installer and continue the getting started walkthrough for Windows. If you run into issues compiling programs, you may need to manually set your ELM_HOME environment variable to C:/Program Files/Elm Platform/0.12.3/share as reported here.

Arch Linux — follow these directions and then jump to the My First Project section.

Platform Agnostic — download the Haskell Platform then run these commands:

cabal update
cabal install elm elm-server elm-repl elm-get

Again, all this should work on any platform, from Windows to Ubuntu.

Update

Update to a newer version of Elm by just running the installer again. They link to the latest versions, and they will safely overwrite old executables and paths so your machine is in a consistent state.

Use

This installs four command line tools: elm, elm-server, elm-repl, and elm-get. To be able to call them from the command line, you may need to add them to your PATH.

My First Project

Now we will create a simple Elm project. The following commands will set-up a very basic project and start the Elm server.

mkdir helloElm
cd helloElm
printf "import Mouse\n\nmain = lift asText Mouse.position" > Main.elm
elm-server

The first two commands create a new directory and navigate into it. The printf commands place a simple program into Main.elm. Do this manually if you do not have printf. The final command starts the Elm server at localhost:8000, allowing you to navigate to Main.elm and see your first program in action.

Final Notes

If you are stuck, check to see if anyone has had a similar issue. If not, open a new issue or email the list or ask a question in the #Elm IRC channel.

elm-platform's People

Contributors

process-bot avatar agazso avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.