Skip to content

zyhou/react-apollo-ssr

Repository files navigation

Minimal React Apollo SSR

Article on Marmelab blog

Fromages listing and view detail

Features

  • React 16
  • Babel 7
  • Webpack 4
  • React Router 5
  • Apollo 3 with hooks (use getDataFromTree for server side rendering)
  • React Helmet
  • Loadable component
  • Emotion 10 with styled
  • SSR hot reload with HMR webpack

Installation

  • git clone git@github.com:zyhou/react-apollo-ssr.git
  • cd react-apollo-ssr
  • make install
  • make start
  • visit http://localhost:3000
  • bundle analyzer on http://localhost:8888

API

Edit Fromage Graphql api

GraphQl API, build with Apollo Server on 4000 port
REST API, build with micro on 3000 port