Skip to content

Commit 4549885

Browse files
committed
docs(*) refactor tasks + no longer need of topheman-apis-proxy
1 parent c355842 commit 4549885

File tree

1 file changed

+35
-18
lines changed

1 file changed

+35
-18
lines changed

README.md

+35-18
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@ To read further about this project and its evolution:
2020

2121
###Basic features :
2222

23-
* `/` : Home page : Display a short description of the project with a try button to :
24-
* `/github` : Provide a search form that displays a list of github users (with their avatars) - a request to the Github API is made.
25-
* `/github/user/:username` : Display a user profile with his repositories, with pagination.
23+
* `/` : Home page : Displays a short description of the project with a try button to :
24+
* `/github` : Provides a search form that displays a list of github users (with their avatars) - a request to the Github API is made.
25+
* `/github/user/:username` : Displays a user profile with his repositories, with pagination.
2626

2727
All state management is done via redux. In development mode, you have access to the [redux-devtools](https://github.com/gaearon/redux-devtools) (you can also [test them on the online version](https://topheman.github.io/react-es6-redux/devtools.html)).
2828

@@ -34,36 +34,38 @@ All state management is done via redux. In development mode, you have access to
3434

3535
####Install
3636

37-
The react-es6-redux part :
38-
3937
```shell
4038
git clone https://github.com/topheman/react-es6-redux.git
4139
cd react-es6-redux
4240
npm install
4341
```
4442

45-
You'll have to install the [topheman-apis-proxy](https://github.com/topheman/topheman-apis-proxy) backend, follow the [installation steps](https://github.com/topheman/topheman-apis-proxy#installation) README section.
43+
*Note:* Installing the [topheman-apis-proxy](#with-topheman-apis-proxy) backend is **no longer mandatory** (I changed the code so that you could do unauthenticated request to the github API - you will be [rate limited to 10 requests per minute](https://developer.github.com/v3/search/#rate-limit) though).
4644

4745
####Run
4846

49-
* Open a terminal in the react-es6-redux folder and `npm run webpack-dev`
50-
* Open a terminal in the topheman-apis-proxy folder and `grunt serve` (see more in the [run in local](https://github.com/topheman/topheman-apis-proxy#run-in-local) README section)
51-
* Go to [http://localhost:8080/](http://localhost:8080/)
47+
#####Dev mode
48+
49+
* `npm run webpack-dev-simple`
50+
* Open [http://localhost:8080/](http://localhost:8080/)
5251

53-
You can also run the app in mock mode (without any backend - the http request are mocked), usefull for :
52+
You're good to go with hot-reload / redux-devtools / time-travel / sourcemaps ...!
5453

55-
* working offline
56-
* create unit tests without changing code
57-
58-
Just run : `npm run webpack-mock`
54+
#####Mock mode
55+
56+
You can also run the app in mock mode (useful for unit-tests):
57+
58+
* `npm run webpack-mock`
59+
* Open [http://localhost:8080/](http://localhost:8080/)
5960

6061

6162
####Build
6263

6364
At the root of the project :
6465

65-
* for production (minified/optimized ...) : `npm run build-prod`
66-
* for debug (like in dev - with sourceMaps and all) : `npm run build`
66+
* `npm run build`: for debug (like in dev - with sourceMaps and all)
67+
* `npm run build-prod`: for production (minified/optimized ...)
68+
* `npm run build-prod-all`: both at once in the same build (with redux devtools & sourcemaps on dev version)
6769

6870
A `/build` folder will be created with your project built in it.
6971

@@ -81,13 +83,24 @@ npm test
8183

8284
You may want some granularity, the `DEVTOOLS` and `NODE_ENV` variables are at your disposal:
8385

84-
* `npm run build-prod-all`: will build a production version **AND** a devtools version (with redux devtools & sourcemaps) ready to work online side by side
8586
* `DEVTOOLS=true npm run build`: will build a debug version with the devtools
8687
* `DEVTOOLS=false npm run webpack`: will launch a webpack dev server without the devtools (if you find it annoying)
8788
* `DEVTOOLS=false NODE_ENV=MOCK npm run webpack` will launch a webpack dev server in mock mode without the devtools
8889
* ... you can mix and match ;-)
8990

90-
###Steps :
91+
####With topheman-apis-proxy
92+
93+
**This part is optional**
94+
95+
[topheman-apis-proxy](https://github.com/topheman/topheman-apis-proxy) is a proxy that lets you do authenticated requests to github / twitter APIs (that way you have a much higher rate limit). For the install, please follow the [installation steps](https://github.com/topheman/topheman-apis-proxy#installation) README section.
96+
97+
Then your workflow will be:
98+
99+
* Open a terminal in the react-es6-redux folder and `npm run webpack-dev`
100+
* Open a terminal in the topheman-apis-proxy folder and `grunt serve` (see more in the [run in local](https://github.com/topheman/topheman-apis-proxy#run-in-local) README section)
101+
* Go to [http://localhost:8080/](http://localhost:8080/)
102+
103+
###Steps
91104

92105
Checkout the [releases sections](https://github.com/topheman/react-es6-redux/releases).
93106

@@ -96,6 +109,10 @@ You'll see the releases for both versions:
96109
* original one (redux free) which is hold on [v1.x branch](https://github.com/topheman/react-es6-redux/tree/v1.x)
97110
* the version with the redux implementation which is on [master branch](https://github.com/topheman/react-es6-redux)
98111

112+
###Notes
113+
114+
* `build-prod-all-owner`: build task for [topheman.github.io/react-es6-redux](https://topheman.github.io/react-es6-redux)
115+
99116
###License
100117

101118
This software is distributed under an MIT licence.

0 commit comments

Comments
 (0)