首页 > 其他 > 详细

[Elm] Installing and setting up Elm

时间:2016-11-29 23:16:53      阅读:224      评论:0      收藏:0      [点我收藏+]

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!