You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 11, 2019. It is now read-only.
Recently, this boilerplate received a huge update. If you are using this in production, you may want to use the [Stable](https://github.com/RyanCCollins/scalable-react-boilerplate/tree/stable) branch for a bit. See the CHANGELOG for more information.
3
+
# PLEASE NOTE:
4
+
Recently, this boilerplate received a huge update including: GraphQL / Apollo Support, Server Rendering, Generator Refactoring, etc. If you are using this in production, you may want to use the [Stable](https://github.com/RyanCCollins/scalable-react-boilerplate/tree/stable) branch for a bit. See the [CHANGELOG](https://github.com/RyanCCollins/scalable-react-boilerplate/blob/master/CHANGELOG.md) for more information of the recent updates.
@@ -23,6 +23,12 @@ If this is confusing, don't fret, we've set you up with a few examples and code
23
23
24
24
## Example Apps
25
25
Below are a few example apps that have been built with this project
26
+
- Udacity Alumni App
27
+
-[See the Code](https://github.com/udacityalumni/alumni-client)
28
+
- Live App coming soon
29
+
- RyanCollins.io v3.0
30
+
-[See the Code](https://github.com/RyanCCollins/ryancollinsio)
31
+
- Live App coming soon
26
32
- React Weekly
27
33
-[See the Code](https://github.com/RyanCCollins/react-weekly)
28
34
-[See the Live App](http://www.reactweekly.co/)
@@ -35,9 +41,6 @@ Below are a few example apps that have been built with this project
35
41
- Meetup Event Planner
36
42
-[See the Code](https://github.com/RyanCCollins/meetup-event-planner)
37
43
-[See the Live App](http://meetup-event-planner.herokuapp.com/)
38
-
- Udacity Alumni App
39
-
-[See the Code](https://github.com/udacityalumni/alumni-client)
40
-
- Live App coming soon
41
44
42
45
## Experimental Features
43
46
### Server Rendering
@@ -188,9 +191,11 @@ The boilerplate contains generators for easy project scaffolding. At the moment
188
191
- SCSS modules
189
192
- Tests for all of the above
190
193
- README.md file that documents the component
194
+
- GraphQL: If you want, the generator can add collocated queries and mutations using GraphQL / ApolloClient. Accept the option to use this feature.
191
195
- Page `npm run generate:page`
192
196
- Name: The name of the route, i.e. Home, which gets converted to `HomePage`
193
197
- Route: the route that corresponds to the page
198
+
- Container Import: Most of the time, a Route exists only to import a container by the same name. This is enabled by default, so make sure to run the container generator if you want to use this feature.
194
199
195
200
To run the generators with a list of options, run
196
201
```
@@ -210,17 +215,13 @@ where <type_of_component> is one of: component, container or page.
210
215
The generators use the same feature-first file organization as the rest of the project, encapsulating components within their own folder.
211
216
212
217
### **Gotchas**
213
-
In order to get the import / export to work, the generator does some pattern matching of the comments in the files to place the new imports. Just don't delete the comments within the root level index.js file in each directory and things will work fine!
218
+
In order to get the import / export to work, the generator does some pattern matching of the comments in the files to place the new imports. Just don't delete the any comment that is prefixed with GENERATOR and things will work great.
214
219
215
220
From `app/src/container/index.js` or `app/src/component/index.js`
216
221
```
217
-
// ... Other components here
218
-
import MyComponent from 'MyComponent';
219
-
220
-
export {
221
-
// ... Other components here
222
-
MyComponent
223
-
}
222
+
/* GENERATOR: Assemble all containers for export */
223
+
export LandingContainer from './LandingContainer';
0 commit comments