-
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.
Merge pull request #2 from 3panda/develop
READM更新
- Loading branch information
Showing
1 changed file
with
45 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,46 @@ | ||
# todo_backlog_back | ||
todo listの内容をBacklogに記録するWebアプリのバックエンド処理 | ||
|
||
## 前提条件 | ||
- Backの処理はAWS Lambda | ||
- APIはAmazon API Gateway | ||
- 利用ライブラリー requests | ||
|
||
## Lambda関数 | ||
以下のディレクトリにrequests(ライブラリ)を個別に取得しZip圧縮でLambdaにアップロードする | ||
- add_backlog_issue | ||
- get_backlog_data | ||
- update_backlog_issue | ||
|
||
## requestsの個別インストール方法 | ||
各ディレクトリで以下を実行 | ||
``` | ||
pip install requests -t . | ||
``` | ||
|
||
## Lambdaに設定する環境変数 | ||
各Lambdaに設定する環境変数は以下 | ||
|
||
- HOST | ||
ex) https://xxxxx.backlog.jp | ||
- PROJECT_KEY | ||
BacklogのProject key | ||
ex) TODOLIST | ||
- API_KEY | ||
Backlog API KEY | ||
ex) apiKey=#####YOUR_API_KEY##### | ||
|
||
## API Gateway | ||
Lambdaに紐付けるために以下を別途用意 | ||
- add_backlog_issue | ||
Method: POST | ||
- get_backlog_data | ||
Method: GET | ||
- update_backlog_issue | ||
Method: POST | ||
|
||
### 注意 | ||
フロント側でAjaxでやりとりするためCORSを有効にする必要がある | ||
|
||
|
||
|