码迷,mamicode.com
首页 > 其他好文 > 详细

[Elm] Installing and setting up Elm

时间:2016-11-29 23:18:19      阅读:184      评论:0      收藏:0      [点我收藏+]

标签:htm   div   blog   sso   lin   before   local   ever   import   

Before writing any Elm we need to first install the runtime locally. In this lesson we install the Elm runtime locally and set up a simple application to verify everything is working properly.

 

Install:

npm install -g elm
elm package install
elm package install elm-lang/html

 

Code:

//main.elm

import Html exposing (text)

main = 
 text "Hello World!"

 

Run:

elm reactor

 

Go to localhost:8000 to see the website.

[Elm] Installing and setting up Elm

标签:htm   div   blog   sso   lin   before   local   ever   import   

原文地址:http://www.cnblogs.com/Answer1215/p/6115356.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!