Skip to content

Tool configuration

Mauricio Togneri edited this page Nov 12, 2017 · 17 revisions

Project checkout

Checkout the project source:

https://github.com/mauriciotogneri/firebase-localization.git

Then, open a terminal and go to the folder where you checked out the project. Login into Firebase running the following command: firebase login

You need to login with the same Google account that you used to create Firebase project.

Configuration

For the next step you will need two values available in the Firebase web console. Click on Overview, and then on Add Firebase to your web app:

You will see a dialog with some Javascript code. Copy the values of apiKey and projectId.

Then run the setup script located in the root of the project: node setup.js

The script will ask you for values of apiKey and projectId and generate some configuration files so you don't have to do it manually.

Deploy

Before deploying we need to install all the libraries necessary for the tool to run properly. Open a terminal and:

  • navigate to [PROJECT_ROOT]/functions
  • execute npm install

Now you can deploy the tool running: firebase deploy

This operation can take several minutes the first time your run it.

Once the deployment is done, the tool will be available on: https://<PROJECT_ID>.firebaseapp.com

Next chapter: Tutorial

Clone this wiki locally