### Project Setup and Terraform Execution Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/terraform/README.md The primary command to initiate the project setup. This command triggers Terraform to apply infrastructure changes, which may require user confirmation. ```bash make ``` -------------------------------- ### Running Locally with Docker Compose Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/README.md This snippet shows the command to start the Wild Workouts application locally using Docker Compose. It assumes Docker and Docker Compose are installed and configured. ```bash docker-compose up ``` -------------------------------- ### Gcloud CLI Authorization Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/terraform/README.md Commands to authorize the Google Cloud SDK for project setup. This involves logging into your Google account and setting up application default credentials. ```bash gcloud auth login gcloud auth application-default login ``` -------------------------------- ### Google Cloud SDK Version Information Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/terraform/README.md Specifies the tested versions of the Google Cloud SDK components used for this project setup. ```terraform Google Cloud SDK 290.0.1 alpha 2019.05.17 beta 2019.05.17 core 2020.04.24 ``` -------------------------------- ### Terraform Version Information Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/terraform/README.md Specifies the tested version of Terraform used for this project setup. ```terraform Terraform v0.12.24 ``` -------------------------------- ### Project Teardown Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/terraform/README.md Command to remove all resources created by the project setup. It's recommended to use a new project name and clean up state files if recreating the project. ```bash make destroy ``` -------------------------------- ### Docker Configuration Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/README.md This snippet points to the Dockerfiles used for containerizing the application components, enabling consistent deployment across different environments. ```docker docker/ - Dockerfiles ``` -------------------------------- ### Google Cloud Deployment with Terraform Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/README.md This snippet details the commands to initiate the Google Cloud deployment using Terraform. It requires navigating to the terraform directory and executing a make command, followed by filling in project-specific parameters such as project ID, user email, billing account, and region. ```bash > cd terraform/ > make Fill all required parameters: project [current: wild-workouts project]: # <----- put your Wild Workouts Google Cloud project name here (it will be created) user [current: email@gmail.com]: # <----- put your Google (Gmail, G-suite etc.) e-mail here billing_account [current: My billing account]: # <----- your billing account name, can be found here https://console.cloud.google.com/billing region [current: europe-west1]: firebase_location [current: europe-west]: # it may take a couple of minutes... The setup is almost done! Now you need to enable Email/Password provider in the Firebase console. To do this, visit https://console.firebase.google.com/u/0/project/[your-project]/authentication/providers You can also downgrade the subscription plan to Spark (it's set to Blaze by default). The Spark plan is completely free and has all features needed for running this project. Congratulations! Your project should be available at: https://[your-project].web.app If it's not, check if the build finished successfully: https://console.cloud.google.com/cloud-build/builds?project=[your-project] If you need help, feel free to contact us at https://threedots.tech ``` -------------------------------- ### Deployment Scripts Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/README.md This snippet refers to scripts used for deployment and development workflows, aiding in the automation of the application's lifecycle. ```scripts scripts/ - deployment and development scripts ``` -------------------------------- ### Internal Application Code Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/README.md This snippet highlights the directory containing the core Go application logic, organized according to DDD principles. ```go internal/ - application code ``` -------------------------------- ### Frontend Web Code Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/README.md This snippet indicates the location of the frontend JavaScript code for the Wild Workouts application, likely responsible for the user interface. ```javascript web/ - frontend JavaScript code ``` -------------------------------- ### Terraform Infrastructure Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/README.md This snippet indicates the location of Terraform files used for defining and managing the project's infrastructure, likely on Google Cloud Platform as suggested by the articles. ```terraform terraform/ - infrastructure definition ``` -------------------------------- ### API Definitions Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/README.md This section outlines the API definitions for the Wild Workouts project, including OpenAPI and gRPC specifications. It details the structure and endpoints available for interacting with the application's services. ```APIDOC api/ - OpenAPI and gRPC definitions ``` -------------------------------- ### JavaScript Requirement Message Source: https://github.com/threedotslabs/wild-workouts-go-ddd-example/blob/master/web/public/index.html This message is displayed to users if JavaScript is not enabled in their browser, indicating that the application, referred to by a placeholder, will not work properly without it. ```HTML We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue. ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.