Log in with an Org Admin account, open Cloud Shell and clone the repo:
git clone https://github.com/momander/cymbal-eats.git
cd cymbal-eatsupdate environment variables in org-admin-setup.sh script:
PROJECT_ID=cymbal-eats-<random number>
ORGANIZATION_ID=your org id
BILLING_ACCOUNT=your billing account id
GCP_USER_ACCOUNT=user@userdomain.altostrat.com
execute the script to create new project:
./org-admin-setup.shNew project will be created and GCP_USER_ACCOUNT will be granted project owner role.
Log in using GCP_USER_ACCOUNT to run rest of the setup.
Log in with GCP_USER_ACCOUNT into Cloud Console and select new project that was created in project setup section.
Open Cloud Shell and clone the repo:
git clone https://github.com/momander/cymbal-eats.git
cd cymbal-eatsReview config-env.sh file and set REGION to location where you want services to be deployed.
By default REGION is set to us-east1.
If you want to use existing services,
you can set following environmental variables before running ./setup.sh script.
Example:
export ORDER_SERVICE_URL=https://order-service-luu7kai33a-uc.a.run.app
export INVENTORY_SERVICE_URL=https://spanner-inventory-service-luu7kai33a-uc.a.run.app
export MENU_SERVICE_URL=https://menu-service-luu7kai33a-uc.a.run.app
Run script located in the root of the project to deploy all services.
./setup.shExample:
cd menu-service
./setup.shNavigate to Cloud Run section in the Cloud Console, open customer-ui-service and click on the URL link.
cd employee-ui
./iap-setup.shNavigate to OAuth consent screen in the Cloud Console and change Cymbal Eats application to External User type.
Select Testing for Publishing status.
After that navigate to Network services / Load Balancing / Frontends section in the Cloud Console.
Copy Address for employee-ui-iap-forwarding-rule rule.
Replace IP-ADDRESS with actual IP and open URL in the browser to access Employee Portal.
https://IP-ADDRESS.nip.io
Certificate provisioning might take up to 15 minutes.
Run script and pass valid user email, ex: user@google.com or user@userdomain.altostrat.com.
cd employee-ui
./add-iap-user.sh user@email.comRun script in the root of the repo:
./get-site-users.shSee CONTRIBUTING.md for details.
See CODE-OF-CONDUCT.md for details.
Apache 2.0; see LICENSE for details.