Skip to content

isabella232/violet

 
 

Repository files navigation

Getting Started

Create .env files:

$ cp server/.env.example server/.env
$ cp server/prisma/.env.example server/prisma/.env

Get FIREBASE_TOKEN

$ yarn login:firebase

自分の google アカウントでログインしてターミナルに表示されているトークンをコピー

Input your values to server/.env

FIREBASE_TOKEN=1/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
FIREBASE_API_KEY=AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
FIREBASE_AUTH_DOMAIN=AAAA.firebaseapp.com
FIREBASE_PROJECT_ID=AAAA
FIREBASE_STORAGE_BUCKET=AAAA.appspot.com
FIREBASE_MESSEGING_SENDER_ID=999999999999
FIREBASE_APP_ID=1:999999999999:web:AAAAAAAAAAAAAAAAAAAAAAA

上記の値に対して firebase のアプリ作成時に表示されていた firebase config の値を当てめていく

FIREBASE_TOKEN={自分のgoogleアカウントでログインしてターミナルに表示されていたトークン}
FIREBASE_API_KEY={apiKey}
FIREBASE_AUTH_DOMAIN={authDomain}
FIREBASE_PROJECT_ID={projectId}
FIREBASE_STORAGE_BUCKET={storageBucket}
FIREBASE_MESSEGING_SENDER_ID={messagingSenderId}
FIREBASE_APP_ID={appId}

Install node modules:

$ yarn install
$ yarn install --cwd server

Run the development server:

$ docker-compose up -d
$ yarn dev

Open http://localhost:3000 with your browser to see the result. Open http://localhost:4000 with your browser to see Firebase Emulator Suite.

Docker Command

start

$ docker-compose up -d

login to MySQL

$ docker-compose exec mysql bash -c "mysql -u root -proot"

get FIREBASE_TOKEN from inside container

$ docker-compose exec firebase bash -c "firebase login:ci --no-localhost"

stop

$ docker-compose stop

delete

$ docker-compose down

About

No description, website, or topics provided.

Resources

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 95.1%
  • JavaScript 3.7%
  • Other 1.2%