【文件属性】:
文件名称:graphql-koa-apollo-react-boilerplate:BFF(Node.js + koa + GraphQL + Apollo)和前端(React + GraphQL + Apollo)样板
文件大小:169KB
文件格式:ZIP
更新时间:2021-02-03 17:47:16
react graphql koa apollo KoaTypeScript
graphql-koa-阿波罗React锅炉
它是通过模式驱动开发BFF和前端的样板。
开始吧
给客户
$ cd client
$ npm install
$ npm start
用于服务器
$ cd server
$ npm install
$ npm run mock
关于模式
它由common / graphql / schema.graphql 。 基于此架构生成types和hooks 。
$ cd common
$ npm install
$ npm run gen
分别在客户端和服务器上生成。
client/gen/actions.tsx
server/gen/types.t