From 806b148d476ce016749b1ffc3d4f88d4305675b4 Mon Sep 17 00:00:00 2001 From: RenMatsushita Date: Sat, 20 Jun 2020 12:23:08 +0900 Subject: [PATCH] fix readme.mde --- README.md | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 7440b97..95394dd 100755 --- a/README.md +++ b/README.md @@ -1,10 +1,22 @@ # chat-iOS ## 開発規約 -- ViewController, Presenter, ModelはViews/機能名/に格納する +### アーキテクチャ +- ViewController + - /Views/画面名(例: SignUp)/画面名ViewController.swift + - Viewの表示処理、Viewからの入力受け取り(textfield, button等) +- Presenter + - /Views/画面名/画面名Presenter.swift + - Viewからの入力の受け取り、Modelの出力の受け取りを良い感じに統合してView, Modelそれぞれに返す +- ModelはViews/画面名/画面名Model.swift + - firebaseアクセス等 +- /Extensions + - 標準ライブラリ、使用ライブラリの拡張を記述 +- /Libraries + - Extensionを使わないビジネスロジックを記述 - StoryboardはViews/Storyboards/に格納する ## setup 以下のコマンドを実行した後、デバッグ環境の場合chat-iOS/Resources/GoogleInfoにGoogle-Info-dev.plistを入れる -※ Google-Info.plistからGoogle-Info-dev.plistに改名する +※ GoogleService-Info.plistからGoogleService-Info-dev.plistに改名する homebrewをインストールしていない場合 ``` $ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"