/a-global-presence-challenge

What I think it's the solution for this challenge https://hackattic.com/challenges/a_global_presence

Primary LanguageHCLMIT LicenseMIT

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.