Boilerplate for all builds requiring Universal Rendering.
- Clone Repo
yarn
yarn run start
- Express for Http
- React
- React Router
- Apollo
- Apollo
-root
--client
--- apollo
all of your apollo configs
--- components
react components for UI. NOT PAGES OR CONTAINERS
--- containers
react container components used in high level rendering (App, Main, ect..)
--- hoc
reusable Higher Order Components (HOCs)
--- pages
all of your page level containers
--- queries
graphql queries to attach to components via graphql(MyQuery)(MyComponent)
--- routes
an array of route declarations. route name should match Page component name
--- styles
scss or css styling
--server
server controls, renders appstring
--- apollo
server side apollo config
--webpack
good ole webpack configs
- Add a component in
/client/pages
- Add a route in
/client/routes/
where route.name = {YourComponent}
- I don't need data fetching.
Cool ๐.
Remove the apollo configuration from both client/apollo
and server/apollo
.
- I want to use Redux
Great ๐.
See step 1. Add Redux config in both client/{redux_here}
and server/{redux_here}
.