- Set up a Google Cloud Platform project and enable billing.
- Download the GCP SDK to install Google Cloud CLI on your computer with the tutorial at the following link: https://cloud.google.com/sdk/docs/install-sdk
- Set up Firestore in a GCP project
- In the Google Cloud Platform Console, click the Firestore menu, then click the Select Native Mode button
- Clone the github repository to your computer.
git clone https://github.com/HydroMon/hydromon-cloud-computing.git
- Create key service account to link GCP project with back-end application
- Create service account:
- Open the Service Account page or on the Google Cloud Console, select the IAM & Admin menu > Service Account
- Click the + CREATE SERVICE ACCOUNT button in the top navigation bar
- Enter the service account details according to the fields provided. Fill in the name in the Service account name field, then the Service account ID field will be filled automatically according to the name filled in.
- Click Create and Continue.
- Select the Role for the service account according to the access you want to give.
- Click Done if finished.
- Create service account key:
- Click on the email service account that was created earlier.
- Select the KEYS tab
- Click the ADD KEY dropdown and select Create new key
- Select the JSON key type, then click CREATE
- The key in the form of
.json
file will be downloaded automatically
- Create service account:
- Move the json key service account file into the directory cloned from the previous repository
- Make
.env
fileTOKEN_SECRET = <RANDOM_STRING>
- Make sure you are in the desired GCP Project
- Open a terminal into the previous cloned folder
- Type the following command to see the list of GCP projects
gcloud projects list
- Type the following command to set the project you want to use
gcloud config set project <PROJECT_ID>
- Deploy to GCP with the App Engine service
gcloud app deploy
- Select the server location according to the closest location
- Wait until the deployment process is complete. When finished, the application can be opened with the command:
The intended link can be used as the API base url
gcloud app browse
-
Notifications
You must be signed in to change notification settings - Fork 1
API for HydroMon Application. Build using Firestore and App Engine.
HydroMon/hydromon-cloud-computing
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
API for HydroMon Application. Build using Firestore and App Engine.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published