https://github.com/daief/react-ssr
主要是一些 Next.js 的使用,关于 SSR、GraphQL、Node.js 中间层
https://github.com/daief/react-ssr
apollo-graphql graphql nextjs react ssr typescript
Last synced: 3 months ago
JSON representation
主要是一些 Next.js 的使用,关于 SSR、GraphQL、Node.js 中间层
- Host: GitHub
- URL: https://github.com/daief/react-ssr
- Owner: daief
- Created: 2019-07-05T01:06:50.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-12T01:42:51.000Z (over 2 years ago)
- Last Synced: 2025-01-21T12:26:21.890Z (5 months ago)
- Topics: apollo-graphql, graphql, nextjs, react, ssr, typescript
- Language: TypeScript
- Homepage:
- Size: 3.21 MB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 29
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# react-ssr
这里是关于 SSR demo 以及一些 Next.js 使用的仓库合集,还包括一个 GraphQL 服务的搭建 demo。
本 demo 对应有两篇文章,可选择阅读:
- [从零搭建 SSR](https://daief.github.io/2019-07-02/get-a-ssr-demo-step-by-step.html)。
- [Next.js、GraphQL 使用小结](http://daief.github.io/2019-07-03/use-summary-of-next-js-and-graphql.html)## Index
这是一个 Monorepo(基于 yarn workspaces),下面是该仓库的目录。
| Package | Description |
| -------------------------------------------------- | ------------------------------------------------------ |
| [express-ssr-demo](./packages/express-ssr-demo/) | 从零搭建 React SSR |
| [gql-server](./packages/gql-server/) | fastify + GraphQL 服务 |
| [nextjs-ssr](./packages/nextjs-ssr/) | 基于 Next.js 搭建的 SSR demo,需要配合 gql-server 食用 |
| [nextjs-static](./packages/nextjs-static/) | 基于 Next.js 的静态部署项目 |
| [react-ssr\_\_types](./packages/react-ssr__types/) | 辅助模块,提供 TS 类型 |
| [shared](./packages/shared/) | 公共模块,各种不堪入目 |## Links
一些仓库和资料的链接。
- [TypeScript](https://github.com/microsoft/TypeScript) - [中文](https://www.tslang.cn/)
- [React](https://reactjs.org/)
- [Next.js](https://github.com/zeit/next.js)
- [GraphQL](https://graphql.org/) - [中文](https://graphql.cn/)
- [Apollo GraphQL](https://www.apollographql.com/docs/)
- [Apollo React](https://github.com/apollographql/react-apollo/)
- [Apollo Client](https://github.com/apollographql/apollo-client)
- [Apollo Server](https://github.com/apollographql/apollo-server)
- [Webpack](https://webpack.js.org/)
- [Babel](https://babeljs.io/docs/en/)
- [Fastify](https://github.com/fastify/fastify)