Yeoman generator for React Material UI - lets you quickly set up a project with sensible defaults and best practices.
install generator-react-material-ui
npm install -g generator-react-material-ui
Make a new directory, and cd into it:
mkdir my-new-project && cd $_
Run yo react-material-ui
:
yo react-material-ui $APP_TITLE
Replace $APP_TITLE
, with an actual string that represents your app's title!
Run gulp server
to preview your app
Available generators:
- react-material-ui
- react-material-ui:page
- react-material-ui:view
- react-material-ui:store
Note: Generators are to be run from the root directory of your app.
Generates an entire React application.
Generates a page, that you can navigate by clicking on the navigation sidebar.
This sub generator expects a name small case. If the name of the page is multi-word, use spaces to separate the words.
Generates a view that you can use in your page, or in other views.
Generates a data store class.
Running npm test
will run the unit tests with Jest.