An open API service indexing awesome lists of open source software.

https://github.com/zzy/juniper-book-zh-cn

Juniper 中文手册,同步最新开发版。
https://github.com/zzy/juniper-book-zh-cn

graphql-rust juniper juniper-chinese juniper-documentation

Last synced: 9 months ago
JSON representation

Juniper 中文手册,同步最新开发版。

Awesome Lists containing this project

README

          

# Juniper 中文手册(同步最新开发版)

[Juniper 中文手册(https://juniper.budshome.com)](https://juniper.budshome.com)包含 `Juniper` 中文文档和代码示例,源码放在 [zzy/juniper-book-zh](https://github.com/zzy/juniper-book-zh),内容译自[官方文档](https://github.com/graphql-rust/juniper/tree/master/docs/book)。

基于 actix-web + juniper + diesel 构建 GraphQL 服务器的模板代码,放置在 github 仓库 [actix-graphql-react](https://github.com/zzy/actix-graphql-react),部署在[演示站点](https://cms.budshome.com/graphql)。所用技术包括:

- [Rust](https://www.rust-lang.org/zh-CN)
- [actix-web](https://crates.io/crates/actix-web) - Web server
- [juniper](https://crates.io/crates/juniper) - GraphQL server
- [diesel](https://crates.io/crates/diesel) - ORM
- [PostgreSQL](https://postgresql.org) - Database
- [jsonwebtoken](https://crates.io/crates/jsonwebtoken) - JSON Web Token
- [GraphQL Playground](https://github.com/prisma-labs/graphql-playground) - GraphQL UI

## 状态

- 对照源码位置:[https://github.com/graphql-rust/juniper/tree/master/docs/book/content](https://github.com/graphql-rust/juniper/tree/master/docs/book/content)
- 每章翻译开头都带有官方链接和 commit hash,若发现与官方不一致,欢迎 Issue 或 PR :bug:

## 做贡献

### 需求

本手册由 [mdBook](https://github.com/rust-lang-nursery/mdBook) 编译而成。

如果已有 `Rust` 环境,安装 `mdBook` 请执行命令:

```bash
cargo install mdbook
```

### 启动本地测试服务器

启动持续编译手册并自动加载页面的本地测试服务器,执行命令:

```bash
mdbook serve
```

### 生成手册

将手册渲染输出为 `HTML`,执行命令:

```bash
mdbook build
```

输出目录为:`./docs`。

### 测试

测试手册中的所有代码示例,运行命令:

```bash
cd ./tests
cargo test
```

### 测试配置

手册中的所有 `Rust` 代码示例在 `CI` 上编译,使用了 [skeptic](https://github.com/budziq/rust-skeptic) 库。

## 声明

水平有限,错漏难免,欢迎指教;或请发 [issue到GitHub](https://github.com/zzy/juniper-book-zh);或者直接联系。

> 电子邮箱:linshi@budshome.com;微信:budshome;QQ:9809920。

感谢`graphql-rust/juniper 团队`的无私奉献。

💥 笔者无意侵犯任何人的权利和利益,故若有不适,请联系我。

------