Last active
October 29, 2018 08:09
-
-
Save katsu-o/6ce20ea1c8f6b11f1e15835a7a45ebd5 to your computer and use it in GitHub Desktop.
Firebase Authentication + SPA(React/TypeScript) でユーザ登録/ログイン/ログアウト (1:サンプル起動まで) ref: https://qiita.com/katsu-o/items/df1684b98cccd002e041
This file contains hidden or 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
# 1. GitHub からクローン | |
$ git clone [email protected]:katsu-o/firebase-auth-spa.git | |
$ cd firebase-auth-spa | |
# 2. 依存パッケージのインストール | |
$ yarn install | |
# 3. .env ファイルを作成 | |
$ mv .env.sample .env | |
# 4. .env ファイルの中身を埋める | |
# Firebase コンソールの Authentication にある「ウェブ設定」をクリックすると表示される | |
# config を当該箇所にセットして下さい。 | |
# .env ファイルへの設定文字列にクォートは不要です。=の後に余計な空白もつけないでください。 | |
# 5. Firebase へログイン | |
$ firebase login | |
# 6. Firebase プロジェクトの選択 | |
$ firebase use --add | |
# 7. サンプル起動 | |
$ yarn start | |
以上です。 | |
Hosting URL へアクセスして下さい。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment