Skip to content

Deployment

Taeho Kim edited this page Feb 5, 2019 · 2 revisions

Prepare

Diff Monster (currently) requires Firebase Auth, Firebase Database, Firebase Hosting.

  1. Create Firebase project (free)
  2. Create GitHub app and connect it to Firebase

Install tools

  • Node.js (8.x is recommended. 10.x does not work)
  • Yarn
  • Firebase CLI: yarn global add firebase-tools

Prepare build

  1. Login to Firebase: firebase login
  2. Clone repo and cd: git clone https://github.com/dittos/diffmonster.git; cd diffmonster
  3. Generate .firebaserc: firebase use --add (select created project and enter alias default)
  4. Copy src/config.js.sample to src/config.js and edit it. (see comments)
  5. Install NPM dependencies: yarn

Deploy

Run yarn run build && firebase deploy from cloned repo directory.

Clone this wiki locally