module
Version:
v0.0.0-...-ea9887a
Opens a new window with list of versions in this module.
Published: Aug 7, 2023
License: MIT
Opens a new window with license information.
README
¶
A Global presence challenge in GCP
This is an attempt to solve this challenge available in Hackattic.com. It was initially implemented in Google Cloud Platform using Cloud Functions, Firestore and Cloud Run. The code is written in Go.
Stack Cloud
Development stack
Configuration
Required configuration
export PROJECT_ID="your-project-id"
export ENV=sandbox
export CHALLENGE_DB_NAME="a-global-presence-hackattic-db"
export CHALLENGE_DOC_NAME="challenge_doc"
## For testing the Go code.
## Trigger.
export IS_ENABLED=true
Data layer
- The firestore database is called
a-global-presence-hackattic-db
and it's configured through the common.tfvars
file located in the (_env
) DB stack.
- The actual Document that'll register the attempts and the final result is called
challenge_doc
. The trigger is the responsible for creating it.
Directories
¶
Click to show internal directories.
Click to hide internal directories.