游乐场
试用和OpenAPI客户端生成器
入门
工作流程如下:
在./server.js实现新的终结./server.js
运行npm run gen:spot-contract以生成包含端点和请求/响应定义的合同。
运行npm run gen:openapi以从Spot合同生成一个OpenAPI模式(在YAML中)。
运行npm run gen:client以生成存储在./client/的Typescr ipt客户端库
弗朗西斯科·米尔
我的个人网站在Gatsby,React和Node.js上运行。
如何...
克隆并设置项目
git clone repo to {folder}
cd {folder}
run npm install
run npm audit fix
git submodule update --remote --recursive // If you have access to linked submodules
设置.env文件
GATSBY_GRAPHQL_IDE=playgrou
nuxt-transistions-操场
构建设置
# install dependencies
$ yarn install
# serve with hot reload at localhost:3000
$ yarn dev
# build for production and launch server
$ yarn build
$ yarn start
# generate static project
$ yarn generate
有关工作原理的详细说明,请查看 。
graphql-js-starter
开始项目
克隆项目
cd /
git clone https://github.com/mariehmai/graphql-js-starter.git
cd graphql-js-starter/
运行项目
node src/index.js // Runs GraphQL server
graphql playground // Opens both app and service API playgrounds
贡献
先决条件
yarn