https://github.com/magicmark/relay-ssr-playground
https://github.com/magicmark/relay-ssr-playground
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/magicmark/relay-ssr-playground
- Owner: magicmark
- Created: 2022-05-12T15:08:27.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2022-05-13T17:38:46.000Z (almost 4 years ago)
- Last Synced: 2025-02-16T03:24:47.885Z (about 1 year ago)
- Language: JavaScript
- Size: 95.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# relay-ssr-playground
A demo for doing React SSR + Relay GraphQL.
This repo contains:
- a frontend react application
- an express web server to serve the application and do (partial) SSR
We also do two webpack builds:
- to bundle the react app for the browser
- to bundle the react app for node, so it can be read in express and do SSR
### Trying it out
```
git clone https://github.com/magicmark/relay-ssr-playground.git
cd relay-ssr-playground
yarn
yarn relay
yarn start
```
Then go to localhost:3010