Skip to content

アグリコラのカード情報を返すGraphQL形式の API サーバ

License

Notifications You must be signed in to change notification settings

AgricolaDevJP/agricoladb-server

Repository files navigation

AgricolaDB Server

release go-version on-push-main


agricoladb-server

AgricolaDB(v2~)のサーバアプリケーション。GraphQL APIの提供と、データベースのスキーマ管理を行う。

コード生成

entとGraphQLインテグレーションを用いて、スキーマや実装をコード生成している。

基本、編集するファイルは ent/schema/*.goだけで済むはずである。

make generate

上記コマンドを実行すると、以下の順でコード生成される:

  1. entによるORMclient/migrationなどのコード生成
  2. entgqlによるGraphQLスキーマgraph/ent.graphqlsの生成
  3. gqlgenによるGraphQLサーバのGo実装の生成

その後、必要に応じて graph/ent.resolvers.goなどに含まれる未実装の部分をコーディングする。

LICENSE

Source Code

MIT License

Copyright (c) 2022 ASAKURA Kazuki

Information of "Agricola"

The information provided in this API is quoted or translated from the products of "Agricola" and is copyrighted by the respective companies:

Copyright (c) 2007 Lookout Games

Copyright (c) 2008 Z-Man Games, Inc.

Copyright (c) 2008 Hobby Japan Co., Ltd.