Skip to content

ElinaValieva/tourest_gcp

Repository files navigation

Tourest app

A reference project to deploy a React app onto Google Cloud Run, Cloud Build as the CI/CD tool, and Cloud Firebase Web for authentication, storage, database, hosting.

Read more: medium.com/google-cloud

GCP Architecture

Prerequisites ❗

  • Google Cloud Project with a configured billing account
  • Terraform
  • Project repository on Cloud Source Repositories

Deploy 🔨

Run the script for deploying an application to a cloud project via terraform.

 ./init.sh

Run locally 🔅

  1. Run terraform output to print Firebase resources URL/IDs
  2. Update .env with the associated Firebase resources URL/IDs
  3. Run npm run start and visit app at http://localhost:3000:
npm install
npm start