Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

バックエンドをGoのapiサーバ+mysqlに置き換えたい #361

Open
bokusunny opened this issue Oct 1, 2019 · 2 comments · May be fixed by #344
Open

バックエンドをGoのapiサーバ+mysqlに置き換えたい #361

bokusunny opened this issue Oct 1, 2019 · 2 comments · May be fixed by #344
Assignees

Comments

@bokusunny
Copy link
Owner

bokusunny commented Oct 1, 2019

概要

Before

認証、バックエンド、データベース、デプロイは全てFirebaseに委任

After

認証のみFirebaseに任せてバックエンドはGo api + mysqlに置き換え、AWSにデプロイしたい。
リクエストの認証にはjwtを利用。
elaborate_architecture
(VueをReactに置き換えてください)

詳細

現状、Goのapiサーバをローカルに立て、ローカルのフロントエンドサーバから適当なリクエストを飛ばしてレスポンスを受け取るところまではできている。

現状のエンドポイント一覧

// directories
- GET `/directories`
ディレクトリ一括取得
- POST `/directories`
新規ディレクトリ作成

// branches
- GET `/directories/{directoryID:[1-9][0-9]*}/branches`
Branch一覧取得
- POST `/directories/{directoryID:[1-9][0-9]*}/branches`
ブランチ作成
- GET `/directories/{directoryID:[1-9][0-9]*}/branches/{branchID:[1-9][0-9]*}`
IDをキーとしてブランチを検索
- PUT `/directories/{directoryID:[1-9][0-9]*}/branches/{branchID:[1-9][0-9]*}`
ブランチアップデート

// commits
- POST `/directories/{directoryID:[1-9][0-9]*}/branches/{branchID:[1-9][0-9]*}/commits`
コミット作成

残りTODO

  • actionの書き換え(向き先をcloud firestoreからGo apiのエンドポイントに変える)
  • バックエンドからレスポンスとして帰ってくるデータの構造が若干変わるので対応
  • デプロイ First Deploy Elaborate-backend#32

参考

構成はこちらの記事と殆ど同じなので一度読んでおくと理解が進むかと思います。

その他

@bokusunny
Copy link
Owner Author

現状、Goのapiサーバをローカルに立て、ローカルのフロントエンドサーバから適当なリクエストを飛ばしてレスポンスを受け取るところまではできている

#344

@bokusunny
Copy link
Owner Author

終わったらFirebase関連のIssueを全部close
https://github.com/bokusunny/Elaborate/issues?q=is%3Aissue+is%3Aopen+label%3AExpired

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants