Get a count of a given word across all Shakespeare works.
- Download the application credentials JSON from Caleb.
- Set the environment variable
GOOGLE_APPLICATION_CREDENTIALS
to the file path of the JSON file that contains your service account key. This variable only applies to your current shell session, so if you open a new session, set the variable again.
export GOOGLE_APPLICATION_CREDENTIALS="[PATH]"
For example:
export GOOGLE_APPLICATION_CREDENTIALS="/home/caleb/Documents/personal/softButWhatWordCount/keys.json"
- Ensure you have node version at least 10 installed.
- Ensure NPM is installed.
npm install
- Ensure gcloud CLI is installed: https://cloud.google.com/sdk/docs/#install_the_latest_cloud_tools_version_cloudsdk_current_version
- Deploy the app via the CLI:
gcloud app deploy