This is a seed for a simple react app with the following capabilities:
See live demo here.
- node
^5.0.0
- npm
^3.0.0
To start your new app, first clone this project:
$ git clone --depth=1 https://github.com/yaron1m/react-material-ui-seed.git <my-project-name>
$ cd <my-project-name>
Then, install the project dependencies:
$ npm install
To run the app, use:
$ npm start
The app will start at http://localhost:3000
.
├── public # Static files for running the app
│ ├── index.html # Base HTML file with div replaced by app
│ └── favicon.ico # App icon, you may want to replace this
├── src # Source code
│ ├── header # App header and navigation drawer
│ │ ├── Header.tsx # Blue app header component
│ │ └── LeftDrawer.tsx # App left drawer, opened from header menu button
│ ├── pages # App pages
│ │ ├── AboutPage.tsx # Simple about page, rendered when navigating to '/about'
│ │ ├── HomePage.tsx # App home page, displaying text box and message
│ │ └── HomePageContainer.ts # Connecting HomePage.tsx to the redux store
│ ├── store # Redux store
│ │ ├── index.ts # Creating the redux store with combineReducers and thunk
│ │ └── user-info # Sample reducer
│ │ ├── Actions.ts # Handling UPDATE_NAME actions
│ │ ├── ActionTypes.ts # Defining user-info reducer action types
│ │ └── Reducer.ts # Reducer for user-info, holding the user name and selectors
│ ├── App.tsx # Displaying the header and app content
│ ├── Routes.tsx # Managing app routes
│ ├── index.css # App body css, setting the margin and background color
│ └── index.ts # App entry point, creating redux store
├── .eslintrc.js # Configuration file for ESLint
├── .travis.yml # Configuration file for TravisCI
└── package.json # Project information and dependencies.
Yaron Malin - LinkedIn
This project is licensed under the MIT License - see the LICENSE.md file for details