api
, img
→ Cloud Functions, web
→ Cloudflare WorkersThis project was bootstrapped with GraphQL API Starter Kit.Be sure to join our Discord channel for assistance.
├──
.github
— GitHub configuration including CI/CD workflows├──
.vscode
— VSCode settings including code snippets, recommended extensions etc.├──
env
— environment variables that are used for local development (local
, test
, prod
)├──
db
— database schema, seeds, and migrations (Cloud SQL, Knex.js)├──
api
— GraphQL API and authentication (Could SQL, Cloud Functions, GraphQL.js)├──
img
— dynamic image resizing (Cloud Functions, Cloud Storage)├──
web
— React / Relay web application with CDN rendering (Webpack, Cloudflare Workers)├──
scripts
— Automation scripts shared across the project└── ...
— add more packages such as worker
, admin
, mobile
, etc.
Just clone the repo and run yarn setup
followed by yarn start
:
$ git clone --origin=seed --branch=main --single-branch \
https://github.com/kriasoft/relay-starter-kit.git example
$ cd ./example # Change current directory to the newly created one
$ yarn install # Install project dependencies
$ yarn setup # Configure environment variables
$ yarn db:reset # Create or update PostgreSQL database
$ yarn api:start # Launch GraphQL API and authentication server
$ yarn web:start # Launch React/Relay front-end app
The API server must become available at http://localhost:8080/api.
The web application front-end must become available at http://localhost:3000/.
In the case when you kept the original Node.js Starter Kit git history, you canalways pull and merge updates from the "upstream" repository back into yourproject by running:
$ git fetch seed # Fetch Node.js Starter Kit (upstream) repository
$ git checkout main # Switch to the main branch (or, master branch)
$ git merge seed/main # Merge upstream/master into the local branch
In order to update Yarn and other dependencies to the latest versions, run:
$ yarn set version latest # Upgrade Yarn CLI to the latest version
$ yarn upgrade-interactive # Bump Node.js dependencies using an interactive mode
$ yarn install # Install the updated Node.js dependencies
$ yarn dlx @yarnpkg/sdks vscode # Update VSCode settings
Anyone and everyone is welcome to contribute. Startby checking out the list of open issuesmarked help wanted.However, if you decide to get involved, please take a moment to review theguidelines.
Copyright © 2016-present Kriasoft. This source code is licensed under the MIT license found in theLICENSE file.
Made with
原文地址 上一篇 Network Layer Relay文档翻译目录 Relay uses a babel plugin to convert from Relay.QL string templates to JavaScript code that describes each query and includes data from the GraphQL schema. Relay使用**
原文地址:Getting Start Relay文档翻译目录 To get started building Relay applications, you will need three things: 我们开始构建Relay应用,需要准备以下三项: A GraphQL Schema A description of your data model with an associated set
温馨提示: Relay 是构建数据驱动 React 应用的 JavaScript 框架。 主要特性: 声明式:不再使用一个命令式 API 与数据存储通讯。简单的使用 GraphQL 声明你的数据需求,让 Relay 理解如何,什么时候获取你的数据。 托管:查询在视图后面,Relay 聚合查询成有效的网络请求,只获取你需要的数据。 转变:Relay 允许你使用 GraphQL mutations 在
SQLRelay 是一个持久化的数据库连接池,用来为 Unix 或者 Linux 提供数据库连接池、代理以及负载均衡的功能。 SQL Relay 的应用思路: 加速数据库驱动的基于 Web 的应用程序 增加 Web 应用程序的可扩展性 分布式的访问复制的数据库系统 对数据库访问进行节流 从不被支持的平台上访问某个数据库 可以轻松的对数据库系统进行移植 目前 SQL Reply 支持的数据库包括:
Relay Fullstack is a Relay scaffolding application that aims to help you get up and running a project without worrying about integrating tools. It comes with many modern technologies; Relay, GraphQL,
nassh-relay 为 Chromium 浏览器的 Secure Shell (hterm) 插件实现了一个中继服务器。可通过 HTTP xhr 或者 WebSockets 连接实现 SSH 通道连接。可作为一个网关来将流量引入内部网络,支持 HTTP 认证。
Relay Library for GraphQL.js This is a library to allow the easy creation of Relay-compliant servers using the GraphQL.js reference implementation of a GraphQL server. Getting Started A basic understa
homebridge-nodemcu-relay This script interfaces with homebridge to expose a relay to Apple's HomeKit, allowing you to integrate numerous devices into your smart home. Requirements NodeMCU Relay Module