ssr-cra-graphql
ssr-cra-graphql copied to clipboard
Server Side Rendering + Create-React-App + Apollo GraphQL Client
Server Side Rendering + Create-React-App + Apollo GraphQL Client
This is the starting kit for using creat-react-app and apollo-react together on server-side.
How to use
yarn installfor installing dependencies
Backend preparing
Currently we use the endpoint created at Codesandbox. It goes down if it's not in use, that means you have to run it again by opening that sandbox if you want to start the project.
Developing
yarn start:devfor running the development server (without SSR support)
Production
yarn buildfor preparing a production version of the applicationyarn startfor running the production server (with SSR support)
Heroku
This package support deploying on Heroku, so just deploy it as described in docs