42

React and Apollo with SSR Boilerplate

 4 years ago
source link: https://www.tuicool.com/articles/JraUZre
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

React Server Side Rendering Using GraphQL and apollo

A baseline for server side rendering for your React application using GraphQL Apollo.

Getting started

Clone the repo with git clone [email protected]:sepehr1313/react-ssr-apollo-boilerplate.git

Install dependencies with npm i

Run dev mode with npm start

Build for production npm build

Now open the browser and navigate to http://localhost:3000 and you get your server rendered React app. You can inspect the page source and see that the html coming from your local server has all the nodes defined in the React app.

Packages and frameworks

Here are a few of the highlighted technologies used in this project, as well as a few anticipated technologies that will work their way into this project in the future:


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK