@@ -38,32 +38,48 @@ Direct your browser to `http://localhost:3000`.
3838
3939## Directory Structure
4040```
41- ├── client # Client-side code.
42- ├── common # Shared code between client and server.
43- │ ├── assets # All fonts, images, stylsheets.
44- │ │ ├── fonts
45- │ │ ├── images
46- │ │ └── stylesheets # Follows the 7-1 pattern: http://sass-guidelin.es/#the-7-1-pattern
47- │ │ ├── base
48- │ │ ├── components
49- │ │ ├── layout
50- │ │ ├── pages
51- │ │ ├── shame
52- │ │ ├── utils
53- │ │ └── vendors
54- │ ├── components # "Dumb" components directory
55- │ ├── config # Contains the redux store configuration. Add anything else you like.
56- │ ├── containers # "Smart" containers directory
57- │ ├── layouts # Layout files
58- │ ├── middleware # Custom redux middleware can be placed here.
59- │ ├── reducers # Redux reducers
60- | | └── index.js # Root reducer. Imports all other reducers.
61- │ ├── routes # Routes each have an index.js which exports a react-router Route.
62- │ │ ├── example.js # Individual routing file
63- │ │ └── index.js # Root route
64- │ └── selectors # Memoized selectors. See https://github.com/rackt/reselect
65- ├── server # Server-side code.
66- └── webpack # Webpack configuration files.
41+ ├── README.md
42+ ├── client
43+ │ └── index.js
44+ ├── common
45+ │ ├── css
46+ │ ├── fonts
47+ │ ├── images
48+ │ ├── js
49+ │ │ ├── actions
50+ │ │ ├── components # "Dumb" components
51+ │ │ ├── containers # Smart containers
52+ │ │ ├── lib # Misc. libraries like helpers, etc.
53+ │ │ ├── middleware # Middleware for redux
54+ │ │ ├── reducers # Redux reducers
55+ │ │ ├── routes # Routes each have an index.js which exports a react-router Route.
56+ │ │ ├── selectors # Selectors for getting state data
57+ │ │ └── store # Store configuration for production and dev.
58+ │ └── layouts # Layout files to be rendered by the server.
59+ ├── nodemon.json
60+ ├── package.json
61+ ├── server
62+ │ ├── config.js
63+ │ ├── index.js
64+ │ └── server.js
65+ ├── webpack
66+ │ ├── base.js
67+ │ ├── development.js
68+ │ ├── development.server.js
69+ │ ├── hmr.js
70+ │ ├── host.js
71+ │ ├── isomorphic.js
72+ │ └── production.js
73+ ```
74+
75+ ## CSS Modules
76+ This project uses [ CSS Modules] ( https://github.com/css-modules/css-modules ) .
77+ Class names should be in ` camelCase ` . Place the css file as a sibling to the
78+ component with the same name, for example:
79+ ```
80+ ├── components
81+ │ ├── Header.js
82+ │ ├── Header.scss
6783```
6884
6985## Writing Tests
@@ -118,7 +134,3 @@ heroku config:set ASSET_HOST=/dist/
118134# OR
119135heroku config:set ASSET_HOST=https://s3.amazonaws.com/mybucket/myasssets/
120136```
121-
122- ## Building Cordova Apps
123-
124- Please see [ Building Cordova Apps] ( docs/cordova.md )
0 commit comments