Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Getting started with material-ui

Seems to me the well-kept secret is the material-ui, a web framework that uses Google's 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, have never been answered.

I managed to get material-ui installed,

  $ npm install material-ui
  [email protected] node_modules/react-tap-event-plugin

  [email protected] node_modules/react
   [email protected] ([email protected], [email protected])

  [email protected] node_modules/material-ui
   [email protected]
   [email protected]

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

but what's next?

  • Should I move them under my /var/www/? Or start nodejs, or...?
  • How can I see a simple demo that show everything is working?

All in all, as someone who knows only http servers and static html pages, what's the simplest way for me to see it is working with my existing web server in my own environment?

Thanks

$ 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
like image 448
xpt Avatar asked Sep 28 '22 04:09

xpt


1 Answers

To start an example just follow the instructions from github.

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

and open a http://localhost:8000/ in your browser.

like image 58
vanadium23 Avatar answered Oct 02 '22 14:10

vanadium23