GithubHelp home page GithubHelp logo

violet's Introduction

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

violet's People

Contributors

lumakernel avatar maimeeeee avatar naoya502 avatar shuheiest avatar solufa avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.