-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
125 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,7 @@ | |
docs/docs/swagger | ||
docs/site | ||
|
||
.idea | ||
.idea | ||
|
||
member-portal-backend/app/** | ||
member-portal-backend/app-local/** |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,37 @@ | ||
# member-portal | ||
kstmメンバーであることを確認し、また事務処理を簡潔化するためのポータルサイト | ||
|
||
[Wiki](https://kstm-su.github.io/member-portal/) | ||
|
||
## Frontend | ||
### Docker起動方法 | ||
1. Dockerfileのあるディレクトリに移動 | ||
2. `docker build -t <image_name> .` を実行(image_nameは自由に設定) | ||
3. `docker run -p 3000:3000 -d <image_name>` を実行 | ||
4. `http://localhost:3000` にアクセス | ||
|
||
※ ローカルで起動する場合は、`npm run dev` を実行 | ||
|
||
## Backend | ||
|
||
### Docker起動方法 | ||
1. Dockerfileのあるディレクトリに移動 | ||
2. `docker build -t <image_name> .` を実行(image_nameは自由に設定) | ||
3. `docker run -p 3001:8080 -d <image_name>` を実行 | ||
4. `http://localhost:3001` にアクセス | ||
|
||
|
||
## Common | ||
|
||
### APIドキュメント確認方法 | ||
1. `cd swagger`で`swagger`ディレクトリに移動します | ||
2. `npx @redocly/cli preview-docs documentation.yml`を実行します | ||
3. `http://localhost:8080/`にアクセス | ||
|
||
### Mockサーバーの立て方 | ||
1. `swagger/README.md` の "Getting started" の手順を行う | ||
2. "Mock API" の手順を `documentation.yml` と同じディレクトリにて行う | ||
3. `http://localhost:4010`にモックサーバーが立つ | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
# 当ドキュメントについて | ||
|
||
このドキュメントは、[MkDocs-material](https://squidfunk.github.io/mkdocs-material/)を使用して作成されました。 | ||
|
||
## 目的 | ||
|
||
今後の開発の参入障壁を低くするために、どのような技術スタックを利用し、何を目的としているかを示すため。 | ||
|
||
## 編集するには | ||
`docs/docs`にドキュメントの本体が配置されているため、そちらを編集してください。<br> | ||
また、新たにファイルを追加する場合は、`mkdocs.yml`にある`nav`に追加してください。 | ||
|
||
## 表示方法 | ||
|
||
### ローカルでの表示 | ||
|
||
以下のコマンドを実行することで、ローカルでの表示が可能です。 | ||
|
||
#### 事前準備 | ||
|
||
```bash | ||
pip install mkdocs-material | ||
``` | ||
|
||
#### Linux | ||
|
||
```bash | ||
cd docs | ||
./start.sh | ||
``` | ||
|
||
#### Windows | ||
|
||
`docs/docs`に`swagger`をコピーしたのち、以下のコマンドを実行してください。 | ||
|
||
```bash | ||
cd docs | ||
mkdocs serve | ||
``` | ||
|
||
### GitHub Pagesでの表示 | ||
|
||
GitHub Pagesでの表示は、[こちら](https://kstm-su.github.io/member-portal/)からご覧いただけます。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# APIドキュメントについて | ||
|
||
## 目的 | ||
OpenAPIを利用してAPIドキュメントを作成することで、フロントエンドとバックエンドの実装を隠蔽し、APIの定義をインターフェースとして利用することにより、開発効率を向上させる。 | ||
|
||
## 仕様 | ||
- OpenAPI 3.0.0 | ||
- ファイル形式: YAML | ||
- ファイル名: documentation.yaml | ||
- ファイルの配置場所: /swagger | ||
|
||
## ファイル構成 | ||
`/components`: OpenAPIのコンポーネントを定義する <br> | ||
`/paths`: APIのエンドポイントを定義する <br> | ||
`documentation.yaml`: OpenAPIの定義を記述するファイル | ||
|
||
## APIドキュメントの確認方法 | ||
### Github Pagesで確認する方法 | ||
masterブランチのAPIドキュメントについては[こちら](/member-portal/redoc/index.html)で確認できます。 | ||
|
||
### ローカルで確認する方法 | ||
1. `cd swagger`で`swagger`ディレクトリに移動します | ||
2. `npx @redocly/cli preview-docs documentation.yml`を実行します | ||
3. `http://localhost:8080/`にアクセス |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters