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-eats
update 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
[email protected]
execute the script to create new project:
./org-admin-setup.sh
New 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-eats
Review 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.sh
Example:
cd menu-service
./setup.sh
Navigate to Cloud Run section in the Cloud Console, open customer-ui-service and click on the URL link.
cd employee-ui
./iap-setup.sh
Navigate 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: [email protected]
or [email protected]
.
cd employee-ui
./add-iap-user.sh [email protected]
Run script in the root of the repo:
./get-site-users.sh
See CONTRIBUTING.md
for details.
See CODE-OF-CONDUCT.md
for details.
Apache 2.0; see LICENSE
for details.