Skip to content

Commit 67dbd1d

Browse files
committed
Centered architecture diagram presentation in README and added some further reading links. Fixed blip in the image.
1 parent 89d782b commit 67dbd1d

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

README.md

+11-4
Original file line numberDiff line numberDiff line change
@@ -54,13 +54,20 @@ This project is a clone of hacker news rewritten with universal Javascript, usin
5454

5555
### Architecture Overview
5656

57-
<img alt="Hacker News Clone Architecture Overview" width="auto" height="auto" src="docs/HN-Clone-Architecture-overview.png">
57+
<p align="center">
58+
<img alt="Hacker News Clone Architecture Overview" width="auto" height="400px" src="docs/HN-Clone-Architecture-overview.png">
59+
</p>
60+
61+
*Server.js* is the entry point. It uses Express and passes requests to Next. Next SSR renders the pages using ```getInitialProps()``` hook from Apollo helper. Therefore the app makes GraphQL requests on the client or server.
5862

59-
### Execution Path
63+
When the client receives the page it preloads next page JS designated with ```<Link prefetch href="/">```. When the client navigates to the linked page it only needs to make a GraphQL query to render. *Great!*
6064

61-
*Server.js* is the entry point. It uses Express and passes requests to Next. Next SSR renders the pages using *getInitialProps* hook from Apollo helper. Therefore the app makes GraphQL requests on the client or server.
65+
See more: <a href="https://github.com/zeit/next.js/">Next.js</a>,
66+
<a href="http://dev.apollodata.com/react/">Apollo GraphQL Client</a>
6267

63-
When the client receives the page it preloads next page JS designated with <Link prefetch *href="/"*>. When the client navigates to the linked page it only needs to make a GraphQL query to render. *Great!*
68+
GraphQL: <a href="http://dev.apollodata.com/tools/graphql-tools/index.html">GraphQL-Tools by Apollo</a>
69+
or
70+
<a href="http://graphql.org/graphql-js/">GraphQL docs</a>
6471

6572
### Directory Structure
6673

31 KB
Loading

0 commit comments

Comments
 (0)