开始 material-ui

Getting started with material-ui

在我看来,保守得很好的秘密是 material-ui,一个使用 Google 的 Material Design UI, plus React. I think it is a fantastic combination, and the future. However, it is also a well well-kept secret on how to use it. The Getting started guide at http://material-ui.com/#/get-started is not for normal Joe, but only for a tiny fraction of people that might understand it. Moreover, the questions here, like How to use material-ui framework?, material ui Installation configure 的 Web 框架,但从未得到解答。

我设法安装了 material-ui,

  $ npm install material-ui
  react-tap-event-plugin@0.1.6 node_modules/react-tap-event-plugin

  react@0.13.2 node_modules/react
   envify@3.4.0 (through@2.3.7, jstransform@10.1.0)

  material-ui@0.7.4 node_modules/material-ui
   classnames@1.2.1
   react-draggable2@0.5.1

  $ ls -d1 node_modules/*
  node_modules/material-ui
  node_modules/react
  node_modules/react-tap-event-plugin

但下一步是什么?

总而言之,作为一个只知道 http 服务器和静态 html 页面的人,对我来说,在我自己的环境中使用我现有的 Web 服务器的最简单方法是什么?

谢谢

$ lsb_release -a 
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 14.10
Release:        14.10
Codename:       utopic

$ uname -srmv
Linux 3.16.0-34-generic #47-Ubuntu SMP Fri Apr 10 18:02:58 UTC 2015 x86_64

要开始示例,只需按照 github 中的说明操作即可。

cd <project folder>/material-ui/example
npm install
npm start

并在浏览器中打开 http://localhost:8000/