Skip to content

Commit

Permalink
update: README
Browse files Browse the repository at this point in the history
  • Loading branch information
SIY1121 committed Feb 20, 2021
1 parent f8bdc03 commit 6e81f7b
Showing 1 changed file with 46 additions and 1 deletion.
47 changes: 46 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,47 @@
[![test](https://github.com/twin-te/timetable-service/actions/workflows/test.yml/badge.svg)](https://github.com/twin-te/timetable-service/actions/workflows/test.yml)

# twinte-timetable-service
wip
時間割アプリ Twin:te - https://app.twinte.net のv3バックエンドの一部です。

ユーザーが履修している講義の情報を管理します。

# 利用方法
[ビルド済みDockerImage](https://github.com/orgs/twin-te/packages?repo_name=timetable-service)が利用できます。

| 環境変数名 | 説明 | default |
|------------|----------------------------------|-----------------------|
| PG_HOST | Postgres接続先のホスト名 | postgres |
| PG_PORT | Postgres接続先のポート番号 | 5432 |
| PG_DATABASE | Postgres接続先のデータベース名 | twinte_timetable_service |
| PG_USER | Postgres接続に使用するユーザー名 | postgres |
| PG_PASSWORD | Postgres接続に使用するパスワード | postgres |
| LOG_LEVEL | ログレベル fatal / error / warn / info / debug / trace / off | info |

# 開発方法
Docker + VSCodeを推奨します。
以下その方法を紹介します。

1. [RemoteDevelopment](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.vscode-remote-extensionpack)拡張機能をインストール
2. このプロジェクトのフォルダを開く
3. 右下に `Folder contains a Dev Container configuration file. Reopen folder to develop in a container` と案内が表示されるので`Reopen in Container`を選択する。(表示されない場合はコマンドパレットを開き`open folder in container`と入力する)
4. node14の開発用コンテナが立ち上がりVSCodeで開かれます。また、別途postgresも立ち上がり利用できるようになります。
5. `yarn install` で依存をインストールします。
6. `yarn proto` でgrpcに必要なファイルを生成します(開発中にprotoを変更した際も実行してください)
7. `yarn dev` で立ち上がります。

また、`yarn test` でテストを実行、`yarn build` でビルドできます。

`yarn client`を実行するとcliでgrpcリクエストを送れる[grpcc](https://github.com/njpatel/grpcc)が利用できます。

# v3バックエンドサービス一覧
- [API Gateway](https://github.com/twin-te/api-gateway)
- Auth Callback
- User Service
- Session Service
- **Timetable Service (here)**
- [Course Service](https://github.com/twin-te/course-service)
- Search Service
- Donation Service
- School Calendar Service
- Information Service
- Task Service

0 comments on commit 6e81f7b

Please sign in to comment.