codeforsanjose / smelly-cat

Better searching and visualizing of the Trash Pickup Days data across San Jose
MIT License
5 stars 2 forks source link

create the firebase config file #21

Open jkanive opened 8 years ago

jkanive commented 8 years ago

Extract from Add Firebase to your app

To add Firebase to your app, you'll need a Firebase project, a service account to communicate with the Firebase service, and a configuration file with your service account's credentials.

  1. Create a Firebase project in the Firebase console, if you don't already have one. If you already have an existing Google project associated with your app, click Import Google Project. Otherwise, click Create New Project.
  2. Click settings and select Permissions.
  3. Select Service accounts from the menu on the left.
  4. Click Create service account.

    a. Enter a name for your service account. You can optionally customize the ID from the one automatically generated from the name.
    b. Choose **Project > Editor** from the **Role** dropdown.
    c. Select **Furnish a new private key** and leave the **Key type** as **JSON**.
    d. Leave **Enable Google Apps Domain-wide Delegation** unselected.
    e. Click **Create**.

When you create the service account, a JSON file containing your service account's credentials is downloaded for you.

Rename that file to trashpickup-service.json and place it under data folder in the project.

jkanive commented 8 years ago

I have created the branch create-firebase-config-file#21 with the updates to the database url changes and also an update to the baseurl value in the Addressbar.js. @3vivekb , I have sent you the trashpickup-service.json file to be placed under the data folder.