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
... | |
// 追加利用する認証プロバイダ | |
// Email & Password および Google は組み込み | |
// Facebook, Twitter, GitHub の追加選択設定(使わない場合は空配列) | |
export const AUTH_AVAILABLE_PROVIDERS = ['Facebook', 'Twitter', 'GitHub']; | |
// Firebase Authentication 更新系処理後に行う認証情報再取得待ち時間(ms) | |
export const AUTH_RELOAD_TIMEOUT = 2000; | |
// Email Verify の是非 |
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 |
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
import * as mongoose from 'mongoose'; | |
export let Schema = mongoose.Schema; | |
export let ObjectId = mongoose.Schema.Types.ObjectId; | |
export let Mixed = mongoose.Schema.Types.Mixed; | |
export interface IHeroModel extends mongoose.Document { | |
name: string; | |
power: string; |
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
# create-react-app(TypeScript) | |
> create-react-app --scripts-version=react-scripts-ts <your-project> | |
> cd <your-project> | |
# tslint, prettier | |
> yarn add --dev tslint prettier tslint-config-prettier tslint-config-airbnb tslint-plugin-prettier |
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
# create-react-app | |
> create-react-app --scripts-version=react-scripts-ts <your-project> | |
> cd <your-project> | |
# tslint, prettier | |
> yarn add --dev tslint prettier tslint-config-prettier tslint-config-airbnb tslint-plugin-prettier |