Step 2: Setting up Google Cloud Platform


This will take 7-10 minutes of work.

Google Cloud Platform is a service that hosts your data and web page. This allows anyone with the link to access your webpage. In this section, we will setup your Google Cloud Platform account and hook it up to the computer you will use to run Dataspectra.

The steps described here is the standard approach for the setting up the Google Cloud Platform. If you would like to use their documentation, I have included the relevant links at the bottom.

First, create a Google Cloud Platform account

  1. Login to your regular Google account.
  2. Go to:
  3. Click CONSOLE in the upper right corner
  4. Agree to the Terms of Service
  5. Click “Select a project” (at the top).
  6. Click on the “+” sign at the top right.
  7. Provide a unique name. Write down the ProjectID that is given to you. (Tip: if your unique name is long and unique enough, your ProjectID will be the same as your unique name).
  8. Click Create.
  9. Wait until your project activates (watch the spinning circle at the top right).

Next, activate Google Cloud Datastore

Datastore will hold your dataset for you on the web. This will allow for quick queries to specific rows in your dataset

  1. Make sure you’re at the Google Cloud Console (
  2. Click on “Select a Project” and select the project that you just created.
  3. On the left side bar, scroll down to “Datastore” and click it.
  4. Click on Create Entity, and select the region closest to you.
  5. Click next, and wait while the datastore is activating.
  6. Once activated, you don’t actually need to create an entity.

Next, activate Google Cloud Billing

Although Dataspectra is free, there may be cost to hosting on Google Cloud Platform. I say “may” because Google Cloud has a fantastic free tier, so sites that aren’t that frequently accessed (like most small scale Dataspectra sites), should be free. However, because there is a possibility of a cost, we must activate billing for things to work. But we can set a budget limit so that you don’t incur unexpected costs.

  1. Make sure you’re at the Google Cloud Console.
  2. Go to the menu at the top left. Scroll down and click billing.
  3. Click link a billing account, and then create a billing account.
  4. Fill out the billing information, and it’ll take you back to the overview.
  5. Click on “Budgets and Alerts” on the left sidebar.
  6. Click “Create a budget”.
  7. Put in a budget name (anything is fine).
  8. Add your spending limit. I usually put $10.
  9. Then save your settings.

Then, install the Google Cloud Software Development Kit (SDK)

The Google Cloud SDK will be installed on the computer that you will run Dataspectra on. The SDK will allow your computer to send the data and rendered website information to the Google Cloud Server.

  1. Download the google-cloud-SDK from the following link:
  2. Extract the downloaded file by double clicking the downloaded *.tar.gz file.
  3. Move the google-cloud-sdk folder to your Desktop.
  4. Open Terminal, found in Finder –> Applications –> Utilities
  5. Then, open up the google-cloud-sdk folder and drag and drop the file to the Terminal window.
  6. Press Return, and continue to press Return until the command line reappears again.

Finally, set up authentication for the Google App Engine

  1. Go back to your Gogle Cloud Console (

  2. Make sure your project is selected at the top (Click “Select a project”, if necessary)

  3. Click on the Menu at the top left.

  4. Go to APIs & Services and click on credentials (may be the Key icon).

  5. Click on the “Create service account key”

  6. Under service account, choose App Engine default service account.

  7. Click Create.

  8. A file will be downloaded.

  9. Take downloaded file and move it to the google-cloud-sdk folder in your desktop from the above step.

  10. Go back to your Terminal, (found in Finder –> Applications –> Utilities)

  11. Type in:

    gcloud auth login
  12. Press Return