- Finish ReadMe
- Add test examples
.
├── README.md
├── components
│ ├── AppContext.js
│ ├── ErrorFallback.js
│ ├── GlobalStyle.js
│ ├── Header.js
│ ├── Meta.js
│ ├── Nav.js
│ ├── Page.js
│ └── ProgressBar.js
├── config.js (client-side config file)
├── lib
│ ├── handleError.js
│ ├── initApollo.js
│ ├── utils.js
│ └── withApollo.js
├── next.config.js
├── package.json
├── pages
│ ├── _app.js
│ ├── _document.js
│ ├── index.js
│ └── login.js
├── server.js
├── static
│ ├── favicon.ico
│ └── nprogress.css
└── yarn.lock
AppContext
: Global context provider, allows for sharing global state between componentsErrorFallback
: Fallback UI in case your app hits an error during renderGlobalStyle
: Created by styled-components' createGlobalStyle API, applies global default CSS stylesHeader
: Shared "header" component between pagesMeta
: Standard metatags for responsiveness, favicons and site titleNav
: Generic navigation barPage
: Wrapper component for all page components (used inpages/_app.js
)ProgressBar
: React implementation for NProgress, set to only show after data fetching takes longer than the specified limit
handleError
: Handler for all caught errors, conditionally sends error to rollbar depending on environmentinitApollo
: Function to start apollo both on server and client side to allow the apollo store to be used in both environmentsutils
: File with general utility functions, starts with a simpleisProduction
checkwithApollo
: Apollo higher-order component to pass data from apollo store to our next app pages and components
_app.js
: Mainly used to catch errors and pass queries to components. See NextJS Docs for more info_document.js
: Mainly used to combine styles from styled-components. See NextJS Docs for more infoindex.js
: Project rootlogin.js
: Authentication page example