|
1 |
| -# React Boilerplate - A starter boilerplate for React based web app project, powered by Material UI. |
| 1 | +# React Sample - A starter boilerplate for React based web app project, powered by create-react-app. |
2 | 2 |
|
3 |
| - |
4 |
| -JavaScript library boilerplate, a web project template using: |
5 |
| -> JavaScript Library - [React](https://facebook.github.io/react/); |
6 |
| -> Application Architecture - [Redux](http://redux.js.org/); |
7 |
| -> Declarative routing for React - [React Router](https://github.com/ReactTraining/react-router); |
8 |
| -> React Components that Implement Google's Material Design. - [Material UI](https://github.com/callemall/material-ui); |
| 3 | +Besides [Create React App](https://github.com/facebookincubator/create-react-app). This sample project also uses: |
| 4 | +> Data Flow Management - [Redux](http://redux.js.org/); |
| 5 | +> Redux Ducks Pattern - [Ducks](https://github.com/erikras/ducks-modular-redux); |
| 6 | +> Declarative routing - [React Router](https://github.com/ReactTraining/react-router); |
| 7 | +> React Components that Implement Google's Material Design. - [Material UI](https://github.com/callemall/material-ui); |
9 | 8 | > Mock Server based on Express - [Mock Server](https://shinxi.github.io/react/#/6/1);
|
10 |
| -> Future ECMASCript Standards - [ES6+](http://babeljs.io/docs/learn-es2015/); |
11 |
| -> Javascript Compiler - [Babel](http://babeljs.io/); |
12 |
| -> Module Bundler - [webpack](http://webpack.github.io/docs/tutorials/getting-started/); |
13 | 9 |
|
14 |
| -### Features |
| 10 | +## Overview |
15 | 11 |
|
16 |
| -### Getting Started |
| 12 | +* [Getting Started](#getting-started) |
| 13 | +* [Technology stack](#technology-stack) |
| 14 | +* [Separation of front-end and back-end](#separation-of-front-end-and-back-end) |
| 15 | +* [Code Standard](#code-standard) |
17 | 16 |
|
18 |
| - * Follow the [getting started guide](./getting-started.md) to download and run the project |
| 17 | +## Getting Started |
19 | 18 |
|
20 |
| -### Build & Deploy |
21 |
| - * Follow [Build Doc](./build.md) to build and deploy your project. |
| 19 | +* Quick start |
22 | 20 |
|
23 |
| -### Directory Layout |
| 21 | +See [How to run react-sample at local](./docs/how_to_run.md) for more detail. |
24 | 22 |
|
| 23 | +* IDE Guidance for increasing development experience |
| 24 | + |
| 25 | +See [How to setup JavaScript Development Environment - VS Code](./docs/how_to_setup_ide.md) for more detail. |
| 26 | + |
| 27 | +* Project folder introduction |
| 28 | + |
| 29 | +```bash |
| 30 | +react-sample/ |
| 31 | +├── .editorconfig - editor config file |
| 32 | +├── .env - for absolute import |
| 33 | +├── .eslintrc.js - eslint settings |
| 34 | +├── package.json - npm 3rd-lib configuration |
| 35 | +├── README.md |
| 36 | +├── node_modules - npm 3rd libraries |
| 37 | +├── public - assets that won't be processed by webpack |
| 38 | +│ └── oauth_callback - oauth callback |
| 39 | +│ └── index.html |
| 40 | +│ └── favicon.ico |
| 41 | +├── server - mock server |
| 42 | +└── src - source codes |
| 43 | + └── index.css - entry file css |
| 44 | + └── index.js - entry file |
| 45 | + └── redux/ - redux by ducks pattern |
| 46 | + └── components/ - Dumb components |
| 47 | + └── containers/ - Smart components that connected to redux |
25 | 48 | ```
|
26 |
| -. |
27 |
| -├── /build/ # The folder for compiled output |
28 |
| -├── /node_modules/ # 3rd-party libraries and utilities |
29 |
| -├── /src/ # The source code of the application |
30 |
| -│ ├── /actions/ # Action creators that allow to trigger a dispatch to stores |
31 |
| -│ ├── /components/ # React components |
32 |
| -│ ├── /containers/ # React containers |
33 |
| -│ ├── /constants/ # Constants (action types etc.) |
34 |
| -│ ├── /core/ # Core framework and utility functions |
35 |
| -│ ├── /public/ # Static files which are copied into the /build/public folder |
36 |
| -│ ├── /reducers/ # Redux reducers |
37 |
| -│ ├── /index.js # Client-side startup script |
38 |
| -│ └── /server.js # Server-side startup script |
39 |
| -├── /test/ # test codes |
40 |
| -└── /karma.conf.js # Karma test runner configuration |
41 |
| -└── /webpack.config.js # configurations for client-side and server-side bundles |
42 |
| -└── package.json # The list of 3rd party libraries and utilities |
43 |
| -``` |
44 | 49 |
|
45 |
| -### Learn More |
46 |
| - |
47 |
| - * [Getting Started with React.js](http://facebook.github.io/react/) |
48 |
| - * [Redux Intro](http://redux.js.org/) |
49 |
| - * [Getting Started with Webpack](https://webpack.github.io/docs/tutorials/getting-started/) |
50 |
| - * [Learn ES6](https://babeljs.io/docs/learn-es6/) |
51 |
| - * [ES6 Features](https://github.com/lukehoban/es6features#readme) |
52 |
| - * [React How to by Peter Hunt](https://github.com/petehunt/react-howto) |
53 |
| - * [Webpack How to by Peter Hunt](https://github.com/petehunt/webpack-howto) |
54 |
| - * [React.js Questions on StackOverflow](http://stackoverflow.com/questions/tagged/reactjs) |
55 |
| - * [The Future of React](https://github.com/reactjs/react-future) |
| 50 | +## Technology stack |
| 51 | +
|
| 52 | + |
| 53 | +
|
| 54 | +## Separation of front-end and back-end |
| 55 | +
|
| 56 | +See why and how at [Separation of front-end and back-end](./docs/separation_of_fe_be.md). |
| 57 | +
|
| 58 | +## Code Standard |
| 59 | +
|
| 60 | +Follow [Airbnb JavaScript Style Guide](https://github.com/airbnb/javascript). |
0 commit comments