<commit_before># Hyperspace and Google
This is a demo / walkthrough of using Atlas and HashiCorp tools with
[Google Cloud Platform](https://cloud.google.com/).

The sample app deployed is a 1980's style, real-time, multiplayer space
shooter called [Hyperspace](https://github.com/kenpratt/hyperspace). This
app was chosen because it has a front-end Javascript component and a
backend server written in Go and can be configured to use several features
from Google Compute Engine (GCE).

Clone this repo locally and then proceed to set up your Google Cloud Platform
account and HashiCorp tools.

# Google Cloud Platform Account and Auth
First, you will need to make sure you have a active
[Google Cloud Platform](https://cloud.google.com/) account. You can sign up
for a free-trial account, but will still need to set up billing and have a
credit card on file.

1. Once you log into the Developers Console, make sure you have enabled
   billing and reviewed / accepted the terms of service.
2. Next, make sure to create a new GCP Project and record the Project ID.
3. Navigate to the Compute - Compute Engine page and ensure GCE is ready.
4. Finnaly, navigate to APIs & auth - Credentials and under Service Accounts
   download the JSON account file. You will need to name this file `pkey.json`
   and save the file in both the `packer/` directory and `terraform/`
   directories.

# Atlas
Visit the Atlas web site, create an account, and generate a new token. In your
local environment, set a few environment variables:

```sh
export GOOGLE_PROJECT_ID=graphite-demos
export ATLAS_USERNAME=erjohnso
export ATLAS_TOKEN=<create a new token on atlas and paste it here>

export TF_VAR_GOOGLE_PROJECT_ID=${GOOGLE_PROJECT_ID}
export TF_VAR_ATLAS_USERNAME=${ATLAS_USERNAME}
export TF_VAR_ATLAS_TOKEN=${ATLAS_TOKEN}
```

# Packer
Download and install Packer to build your GCE images configured with the
Hyperspace game.

## Packer Hyperspace Frontend
Create the Atlas artifact Google image for the hyperspace Javascript front-end.
This requires you to run,
<commit_msg>~ google-hyperspace: fix typos caused by prev. attempt to fix typos<commit_after># Hyperspace and Google
This is a demo / walkthrough of using Atlas and HashiCorp tools with
[Google Cloud Platform](https://cloud.google.com/).

The sample app deployed is a 1980's style, real-time, multiplayer space
shooter called [Hyperspace](https://github.com/kenpratt/hyperspace). This
app was chosen because it has a front-end Javascript component and a
backend server written in Go and can be configured to use several features
from Google Compute Engine (GCE).

Clone this repo locally and then proceed to set up your Google Cloud Platform
account and HashiCorp tools.

# Google Cloud Platform Account and Auth
First, you will need to make sure you have a active
[Google Cloud Platform](https://cloud.google.com/) account. You can sign up
for a free-trial account, but will still need to set up billing and have a
credit card on file.

1. Once you log into the Developers Console, make sure you have enabled
   billing and reviewed / accepted the terms of service.
2. Next, make sure to create a new GCP Project and record the Project ID.
3. Navigate to the Compute - Compute Engine page and ensure GCE is ready.
4. Finally, navigate to APIs & auth - Credentials and under Service Accounts
   download the JSON account file. You will need to name this file `pkey.json`
   and save the file in both the `packer/` directory and `terraform/`
   directories.

# Atlas
Visit the Atlas web site, create an account, and generate a new token. In your
local environment, set a few environment variables:

```sh
export GOOGLE_PROJECT_ID=graphite-demos
export ATLAS_USERNAME=erjohnso
export ATLAS_TOKEN=<create a new token on atlas and paste it here>

export TF_VAR_GOOGLE_PROJECT_ID=${GOOGLE_PROJECT_ID}
export TF_VAR_ATLAS_USERNAME=${ATLAS_USERNAME}
export TF_VAR_ATLAS_TOKEN=${ATLAS_TOKEN}
```

# Packer
Download and install Packer to build your GCE images configured with the
Hyperspace game.

## Packer Hyperspace Frontend
Create the Atlas artifact Google image for the hyperspace Javascript front-end.
This requires you to run,

{'fraction_non_alphanumeric': 0.05560882070949185, 'fraction_numerical': 0.003835091083413231, 'mean_word_length': 4.6013422818791945, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 6, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7559652', 'n_tokens_mistral': 1220, 'n_tokens_neox': 1136, 'n_words': 590}