Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
128 commits
Select commit Hold shift + click to select a range
5cfdc7e
Merge branch 'main' of https://github.com/Chameleon-company/MOP-Code
AbhiWiz-gif Jul 22, 2025
d3dfe0c
Merge branch 'master' of https://github.com/Chameleon-company/MOP-Code
AbhiWiz-gif Jul 25, 2025
2dd7a8e
Added Interactive Social media Linkedin post on homepage
AbhiWiz-gif Jul 25, 2025
76705bf
feat: update Header.tsx layout and functionality
Srainyyyy Jul 26, 2025
7f8e8b8
feat: add HeroCarousel component with responsive design, navigation a…
Srainyyyy Aug 2, 2025
942f4d2
designed DB DFD and ERD as well as designed Schema for postgresSQL
vossiepkv Aug 6, 2025
1562f2d
Add MongoDB to PostgreSQL Migration Plan to the next_webapp folder
kyriesk Aug 6, 2025
a3525ad
Added a Explore by Catergory section to add EV Infrastructure page to it
pratikdka Aug 8, 2025
5955a43
Added details to EV-Infrastructure page
AbhiWiz-gif Aug 8, 2025
0b00529
Added Explore by category section to add the EV Infrastructure Page
pratikdka Aug 8, 2025
c0545ec
Database cinnection achieved in PostgreSql
s223973381 Aug 9, 2025
d20f861
Merge pull request #1466 from Chameleon-company/WD_backend_IshikaMand…
s223973381 Aug 9, 2025
cebc755
Merge pull request #1431 from kyriesk/WD_Backend_NoxZhao#DatabaseMigr…
kyriesk Aug 9, 2025
9856602
Added a new infrastructure page with update images, and minor css fixes
AbhiWiz-gif Aug 10, 2025
469fa09
designed DB DFD and ERD as well as designed Schema for postgresSQL
vossiepkv Aug 10, 2025
3bb41db
Added a new infrastructure page with update images, and minor css fixes
AbhiWiz-gif Aug 10, 2025
4b73aa3
fixed up git merge conflicts
vossiepkv Aug 10, 2025
7072f1c
fixed up git merge conflicts
vossiepkv Aug 10, 2025
ad285c9
Merge remote-tracking branch 'upstream/backend_work' into DB-Design
vossiepkv Aug 10, 2025
2b27d45
Merge pull request #1480 from vossiepkv/backend_work
s223973381 Aug 10, 2025
2eb028d
working on the header and the sign up page
Sufian-code Aug 13, 2025
624dc19
Add safety page with layout, map, insights, features and styling
Srainyyyy Aug 18, 2025
393b1c4
Update Header.tsx
Srainyyyy Aug 18, 2025
0ccf59e
Update page.tsx
Srainyyyy Aug 18, 2025
5eecd92
Update page.tsx
Srainyyyy Aug 18, 2025
7644301
Merged Updated changes from Abhishek's branch
pratikdka Aug 20, 2025
90a6438
Added Search Functions to locate the stations, Updated the maps and l…
pratikdka Aug 20, 2025
603c736
added Drag and Drop
TharinduLiyanage Aug 23, 2025
310e7cb
add Styles and drag&drop feature
TharinduLiyanage Aug 23, 2025
46f5b49
Added City Metric Cards
TharinduLiyanage Aug 24, 2025
cff9a30
Updated Hompage - Hero and Search Bar
Niroshan00 Aug 24, 2025
dfaa0b5
Implement Category Table & Search Filter Integration
kyriesk Aug 25, 2025
3d1a4e9
Merge pull request #1507 from kyriesk/WD_Backend_NoxZhao_SearchFeature
s223973381 Aug 25, 2025
1da2112
created initial openai backend added new use cases to FAQ engine for …
vossiepkv Aug 29, 2025
e8b2aa0
Merge pull request #1509 from vossiepkv/backend_work
s223973381 Sep 1, 2025
a424787
Add Cafes & Restaurants page with map, legend, insights, and features
Srainyyyy Sep 14, 2025
7af0b53
Created Blogpage & Usescase
Niroshan00 Sep 14, 2025
8230e8a
Add Usecases and Education and Teaching Sections
TharinduLiyanage Sep 14, 2025
2737537
Merge pull request #1420 from Srainyyyy/WD_FrontEnd_Yuyang_Yang#Nav-&…
s223973381 Sep 16, 2025
fa9aba2
Merge pull request #1423 from AbhiWiz-gif/feature/AddedLinkedinEmbedd…
s223973381 Sep 16, 2025
63765c6
Merge pull request #1426 from Srainyyyy/WD_FrontEnd_Yuyang_Yang#Hero-…
s223973381 Sep 16, 2025
1e161e1
Merge pull request #1465 from pratikdka/WD_FrontEnd_Pratik_Abhishek#E…
s223973381 Sep 16, 2025
9d3e7b7
Merge pull request #1492 from Srainyyyy/WD_FrontEnd_Yuyang_Yang#safet…
s223973381 Sep 16, 2025
fdf4214
Merge branch 'frontend_work' into UploadPage
s223973381 Sep 16, 2025
82bcf44
Merge pull request #1501 from TharinduLiyanage/UploadPage by Pratik K…
s223973381 Sep 16, 2025
018753c
Merge pull request #1502 from Sufian-code/frontend_header_signup by …
s223973381 Sep 16, 2025
16463af
Merge branch 'frontend_work' into homepage_search_hero
s223973381 Sep 16, 2025
0ecd007
Merge pull request #1504 from Niroshan00/homepage_search_hero by Prat…
s223973381 Sep 16, 2025
758b07e
Merge branch 'frontend_work' into feature-HomePage_CityMetrics
s223973381 Sep 16, 2025
98d3792
Merge pull request #1505 from TharinduLiyanage/feature-HomePage_CityM…
s223973381 Sep 16, 2025
fb0425c
Merge pull request #1531 from Srainyyyy/WD_FrontEnd_Yuyang_Yang_busin…
s223973381 Sep 16, 2025
6e15187
Merge branch 'frontend_work' into feature-Blogpage_Usescases-Dashboar…
s223973381 Sep 16, 2025
6ce3758
Merge pull request #1534 from Niroshan00/feature-Blogpage_Usescases-D…
s223973381 Sep 16, 2025
19e4da5
Merge branch 'Chameleon-company:frontend_work' into frontend_work
pratikdka Sep 16, 2025
3c6d0b6
fixed ,and { part in messages>en.json
s223973381 Sep 16, 2025
182aa32
resolved merge conflicts in Dashboard.tsx
s223973381 Sep 16, 2025
3791ceb
Merge branch 'Chameleon-company:frontend_work' into frontend_work
pratikdka Sep 16, 2025
aa8c8a6
Merge branch 'frontend_work' into feature-Education_and_Teaching
s223973381 Sep 16, 2025
c918134
Merge pull request #1533 from TharinduLiyanage/feature-Education_and_…
s223973381 Sep 16, 2025
3589662
Fixed Identifier 'navItems in Header.tsx
s223973381 Sep 16, 2025
cb5242c
Fixed multiple syntax errors and structural issues in data.ts
s223973381 Sep 16, 2025
8aec10d
Fixed the UI and Merge Issues
pratikdka Sep 16, 2025
b666435
Merge branch 'frontend_work' into WD_FrontEnd_Pratik#Fixed_Common_UI_…
pratikdka Sep 16, 2025
37a4cb1
Merge pull request #1553 from pratikdka/WD_FrontEnd_Pratik#Fixed_Comm…
s223973381 Sep 16, 2025
68169f9
Integrated the use cases for Waste Efficiency Argyle Square case stud…
pratikdka Sep 16, 2025
3cca18a
Merge pull request #1554 from pratikdka/WD_FrontEnd_Pratik#Integrated…
pratikdka Sep 16, 2025
c62af30
Completed Environmental Sustainability Page, updated data.ts, and add…
AbhiWiz-gif Sep 16, 2025
20a0893
Revert "Completed Environmental Sustainability Page, updated data.ts,…
AbhiWiz-gif Sep 16, 2025
8f13b6b
Completed Environmental Sustainability Page, updated data.ts, and add…
AbhiWiz-gif Sep 16, 2025
4174988
dependencies
s223973381 Sep 16, 2025
bf95a05
Update UC00180_AI_Pedestrian_Flow_Prediction.ipynb
s223973381 Sep 16, 2025
6e6a541
Update UC00180_AI_Pedestrian_Flow_Prediction.ipynb
s223973381 Sep 16, 2025
fb481d6
Merge remote-tracking branch 'origin/backend_work' into frontend_work
s223973381 Sep 16, 2025
e5f82ff
Implemention Coworking_spaces.html for use case implementation
s223973381 Sep 17, 2025
f224c98
Merge pull request #1561 from Chameleon-company/WD_Coworking_spaces-u…
s223973381 Sep 17, 2025
a121e1c
Implementing community wellbeing use case
s223973381 Sep 17, 2025
ff4e1d8
Merge pull request #1562 from Chameleon-company/WD_Community-Wellbein…
s223973381 Sep 17, 2025
1a3c146
Implementing childcare facilities use case implementation
s223973381 Sep 17, 2025
2829b95
Merge pull request #1563 from Chameleon-company/Childcare-Facility-us…
s223973381 Sep 17, 2025
7b7c1c4
Implementing urban tree planning use case
s223973381 Sep 17, 2025
2356190
Merge pull request #1565 from Chameleon-company/Urban-Tree-Planting-u…
s223973381 Sep 17, 2025
6a871ff
Implementing Enhancing_Community_Wellbeing_Through_Public_Transport
s223973381 Sep 17, 2025
9a027a4
Merge pull request #1566 from Chameleon-company/Enhancing-Community-W…
s223973381 Sep 17, 2025
632b5f0
Implementing Night time safety index usecase into the web
s223973381 Sep 17, 2025
a306c66
Merge pull request #1567 from Chameleon-company/Night-time-safety-use…
s223973381 Sep 17, 2025
61c2729
implementing optimizing event location use case
s223973381 Sep 17, 2025
7999a95
Merge pull request #1568 from Chameleon-company/Optimizing_Event_Loca…
s223973381 Sep 18, 2025
b321495
implementing population growth and activity use case
s223973381 Sep 18, 2025
b2fd6d9
Merge pull request #1569 from Chameleon-company/Population_growth-and…
s223973381 Sep 18, 2025
cd6b49a
implementing optimizing parking accesibility use case
s223973381 Sep 18, 2025
0a28102
Merge pull request #1570 from Chameleon-company/Optimising_Parking_Ac…
s223973381 Sep 18, 2025
e87ee89
changes related to blogpage
s223973381 Sep 18, 2025
21650d9
minor change in data.ts
s223973381 Sep 18, 2025
d7e3182
rollback data.ts
s223973381 Sep 18, 2025
1fad7fe
change Bogpage.tsx
s223973381 Sep 18, 2025
d35f2cb
changes Blogpage.tsx and data.ts
s223973381 Sep 18, 2025
cd3be96
Integrated Biodiversity corridors and Heat Vulnerability
pratikdka Sep 18, 2025
2cac0a1
Merge pull request #1571 from pratikdka/WD_Frontend_Pratik#Linked_Bio…
pratikdka Sep 18, 2025
3f52fa7
Merge branch 'frontend_work' into frontend_work
AbhiWiz-gif Sep 19, 2025
12d6c61
Merge pull request #1557 from AbhiWiz-gif/frontend_work
AbhiWiz-gif Sep 21, 2025
d9cbc98
IMPROVED HERO SECTION
Niroshan00 Mar 17, 2026
f8f2568
Add Partener Section
abdullahsher445 Mar 17, 2026
0f3ac36
Enhance City Metrics Cards and Our Vision section
Srainyyyy Mar 17, 2026
3ce5bea
Merge pull request #1671 from Srainyyyy/WD_FrontEnd_Yuyang_Yang_Enhan…
s223973381 Mar 18, 2026
daa17eb
Feature: Environment configuration and secrets management
Lakindud2002 Mar 18, 2026
fdc9933
Merge pull request #1670 from abdullahsher445/frontend_work
s223973381 Mar 18, 2026
6e2afe3
Merge pull request #1672 from lakindubd/Lakindu_WD
s223973381 Mar 18, 2026
d353dab
Add Testimonial Section
abdullahsher445 Mar 22, 2026
e761612
Merge pull request #1678 from abdullahsher445/frontend_work
s223973381 Mar 23, 2026
4bebf8a
Updated page and added Back-to-Top button
TharinduLiyanage Mar 23, 2026
ce30bc0
Added Back-to-Top button
TharinduLiyanage Mar 23, 2026
bc153ab
Added global page loader with smooth spinner and delay handling
TharinduLiyanage Mar 23, 2026
372ff15
Merge branch 'frontend_work' into feature/back-to-top-button
TharinduLiyanage Mar 23, 2026
03f3b2e
Added global page loader with smooth spinner and delay handling
TharinduLiyanage Mar 23, 2026
a4d66ab
Add Contact Us Section
abdullahsher445 Mar 23, 2026
2cb2b1e
Improve About / Vision Sections
AliceTao-1106 Mar 24, 2026
57dc1da
Merge branch 'frontend_work' into frontend_work
s223973381 Mar 24, 2026
8a81707
Merge pull request #1680 from Niroshan00/frontend_work
s223973381 Mar 24, 2026
da99467
Merge pull request #1681 from TharinduLiyanage/feature/back-to-top-bu…
s223973381 Mar 24, 2026
216285f
Merge branch 'frontend_work' into feature/page-loader
s223973381 Mar 24, 2026
f085ed1
Merge pull request #1682 from TharinduLiyanage/feature/page-loader
s223973381 Mar 24, 2026
9ccd091
Merge branch 'frontend_work' into frontend_work
s223973381 Mar 24, 2026
aca6c5b
Merge pull request #1683 from abdullahsher445/frontend_work
s223973381 Mar 24, 2026
aae591f
Merge pull request #1684 from AliceTao-1106/frontend_work
s223973381 Mar 24, 2026
5da43b3
Improved navbar with sticky behavior, active page indicator, and resp…
bivin-88 Mar 24, 2026
38edff0
Add Contact Us Section to the home page
abdullahsher445 Mar 24, 2026
a11d589
Merge pull request #1687 from abdullahsher445/frontend_work
s223973381 Mar 24, 2026
ab067e1
Merge branch 'frontend_work' into feature/navbar-improvements
bivin-88 Mar 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
4 changes: 2 additions & 2 deletions .ARCHIVE/ETL/events/event.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"name": "collect_parkingsensor"
{
"name": "collect_parkingsensor"
}
34 changes: 17 additions & 17 deletions .ARCHIVE/ETL/logic/data.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import botocore
import pandas as pd
def get_csv(bucket, key, s3_resource, fallback=None):
try:
# try and get the csv from s3 if it exists
s3_resource.Object(bucket, key).load()
read_file = s3_resource.Object(
bucket, key).get() # note key is on line 27
df = pd.read_csv(read_file['Body'])
return df # return the s3 csv
except botocore.exceptions.ClientError as e:
if e.response['Error']['Code'] == "404":
return fallback # if the key does not exist then we return the fallback csv
else:
raise # throw error because something else is wrong
import botocore
import pandas as pd


def get_csv(bucket, key, s3_resource, fallback=None):
try:
# try and get the csv from s3 if it exists
s3_resource.Object(bucket, key).load()
read_file = s3_resource.Object(
bucket, key).get() # note key is on line 27
df = pd.read_csv(read_file['Body'])
return df # return the s3 csv
except botocore.exceptions.ClientError as e:
if e.response['Error']['Code'] == "404":
return fallback # if the key does not exist then we return the fallback csv
else:
raise # throw error because something else is wrong
178 changes: 89 additions & 89 deletions .ARCHIVE/ETL/logic/parking_availability.py
Original file line number Diff line number Diff line change
@@ -1,89 +1,89 @@
import datetime
from io import StringIO
import boto3
import pandas as pd
from sodapy import Socrata
from .data import get_csv
""" Given a schedule -
will update the csv file for the corresponding day with the parking sensor statuses for the given day
"""
def update_daily_parking():
bucket = 'opendataplayground.deakin'
# get existing dataframe from csv on S3
s3_resource = boto3.resource('s3')
a = datetime.datetime.today().replace(microsecond=0)
ts = pd.Timestamp(a, tz="UTC")
d = ts.tz_convert(tz='Australia/Victoria')
key = f'parkingsensor/daily/{d.date()}.csv'
# get the csv for the key above, if it can't fetch the csv will return the fallback (empty df)
df = get_csv(
bucket,
key,
s3_resource,
fallback=pd.DataFrame(
{'bay_id': [], 'st_marker_id': [], 'status': [], 'datetime': []})
)
client = Socrata(
"data.melbourne.vic.gov.au",
# app token, just used to reduce throttling, not authentication
"EC65cHicC3xqFXHHvAUICVXEr",
timeout=120
)
# add another number to the csv
df1 = pd.DataFrame(client.get("vh2v-4nfs", limit=200000))
df1.drop(columns=['location', 'lat', 'lon',
':@computed_region_evbi_jbp8'], inplace=True)
# df1['datetime'] = datetime.datetime.today().replace(microsecond=0) + datetime.timedelta(hours = 10) #Melbourne Time
# This is changing it to Melbourne Timezone won't be affect by DST
df1['datetime'] = d
df = df.append(df1) # append the new data to the dataframe
# write the csv to a buffer
csv_buffer = StringIO()
df.to_csv(csv_buffer, index=False)
s3_resource.Object(
bucket, f'parkingsensor/daily/{d.date()}.csv').put(Body=csv_buffer.getvalue())
return f"CSV now has {len(df)} rows"
def collect_parkingsensor():
import datetime as dt
current_time = dt.datetime.now()
bucket = 'opendataplayground.deakin'
# get existing dataframe from csv on S3
s3_resource = boto3.resource('s3')
def get_daily_csv(filename): return get_csv(
bucket,
filename,
s3_resource,
fallback=pd.DataFrame(
{'bay_id': [], 'st_marker_id': [], 'status': [], 'datetime': []})
)
# collect data from previous 29 days
dataframe = None
for day in range(1, 29):
d = current_time - dt.timedelta(days=day)
daily_filename = f'parkingsensor/daily/{d.date()}.csv'
csv = get_daily_csv(
daily_filename)
if dataframe is None:
dataframe = csv
else:
dataframe = dataframe.append(csv)
csv_buffer = StringIO()
dataframe.to_csv(csv_buffer, index=False)
s3_resource.Object(
bucket, f'parkingsensor/parkingsensor.csv').put(Body=csv_buffer.getvalue())
import datetime
from io import StringIO

import boto3
import pandas as pd
from sodapy import Socrata

from .data import get_csv

""" Given a schedule -
will update the csv file for the corresponding day with the parking sensor statuses for the given day
"""


def update_daily_parking():
bucket = 'opendataplayground.deakin'
# get existing dataframe from csv on S3
s3_resource = boto3.resource('s3')

a = datetime.datetime.today().replace(microsecond=0)
ts = pd.Timestamp(a, tz="UTC")
d = ts.tz_convert(tz='Australia/Victoria')
key = f'parkingsensor/daily/{d.date()}.csv'

# get the csv for the key above, if it can't fetch the csv will return the fallback (empty df)
df = get_csv(
bucket,
key,
s3_resource,
fallback=pd.DataFrame(
{'bay_id': [], 'st_marker_id': [], 'status': [], 'datetime': []})
)
client = Socrata(
"data.melbourne.vic.gov.au",
# app token, just used to reduce throttling, not authentication
"EC65cHicC3xqFXHHvAUICVXEr",
timeout=120
)

# add another number to the csv
df1 = pd.DataFrame(client.get("vh2v-4nfs", limit=200000))
df1.drop(columns=['location', 'lat', 'lon',
':@computed_region_evbi_jbp8'], inplace=True)
# df1['datetime'] = datetime.datetime.today().replace(microsecond=0) + datetime.timedelta(hours = 10) #Melbourne Time
# This is changing it to Melbourne Timezone won't be affect by DST
df1['datetime'] = d
df = df.append(df1) # append the new data to the dataframe

# write the csv to a buffer
csv_buffer = StringIO()
df.to_csv(csv_buffer, index=False)
s3_resource.Object(
bucket, f'parkingsensor/daily/{d.date()}.csv').put(Body=csv_buffer.getvalue())
return f"CSV now has {len(df)} rows"


def collect_parkingsensor():
import datetime as dt
current_time = dt.datetime.now()

bucket = 'opendataplayground.deakin'
# get existing dataframe from csv on S3
s3_resource = boto3.resource('s3')

def get_daily_csv(filename): return get_csv(
bucket,
filename,
s3_resource,
fallback=pd.DataFrame(
{'bay_id': [], 'st_marker_id': [], 'status': [], 'datetime': []})
)

# collect data from previous 29 days
dataframe = None
for day in range(1, 29):
d = current_time - dt.timedelta(days=day)
daily_filename = f'parkingsensor/daily/{d.date()}.csv'
csv = get_daily_csv(
daily_filename)

if dataframe is None:
dataframe = csv
else:
dataframe = dataframe.append(csv)

csv_buffer = StringIO()
dataframe.to_csv(csv_buffer, index=False)
s3_resource.Object(
bucket, f'parkingsensor/parkingsensor.csv').put(Body=csv_buffer.getvalue())
24 changes: 12 additions & 12 deletions .ARCHIVE/ETL/samconfig.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
version = 0.1
[default]
[default.deploy]
[default.deploy.parameters]
stack_name = "PlaygroundETL"
s3_bucket = "aws-sam-cli-managed-default-samclisourcebucket-15sa8a759vnvg"
s3_prefix = "PlaygroundETL"
region = "ap-southeast-2"
confirm_changeset = true
capabilities = "CAPABILITY_IAM"
disable_rollback = true
image_repositories = ["PlaygroundETL=119291007423.dkr.ecr.ap-southeast-2.amazonaws.com/playgroundetl239ee983/playgroundetl239ee983repo"]
version = 0.1
[default]
[default.deploy]
[default.deploy.parameters]
stack_name = "PlaygroundETL"
s3_bucket = "aws-sam-cli-managed-default-samclisourcebucket-15sa8a759vnvg"
s3_prefix = "PlaygroundETL"
region = "ap-southeast-2"
confirm_changeset = true
capabilities = "CAPABILITY_IAM"
disable_rollback = true
image_repositories = ["PlaygroundETL=119291007423.dkr.ecr.ap-southeast-2.amazonaws.com/playgroundetl239ee983/playgroundetl239ee983repo"]
12 changes: 6 additions & 6 deletions .ARCHIVE/google_cloud_test/.dockerignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Dockerfile
README.md
*.pyc
*.pyo
*.pyd
__pycache__
Dockerfile
README.md
*.pyc
*.pyo
*.pyd
__pycache__
.pytest_cache
42 changes: 21 additions & 21 deletions .ARCHIVE/google_cloud_test/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,22 +1,22 @@
# Use the official lightweight Python image.
# https://hub.docker.com/_/python
FROM python:3.9-slim
# Allow statements and log messages to immediately appear in the Knative logs
ENV PYTHONUNBUFFERED True
# Copy local code to the container image.
ENV APP_HOME /app
WORKDIR $APP_HOME
COPY . ./
# Install production dependencies.
RUN pip install --no-cache-dir -r requirements.txt
# Run the web service on container startup. Here we use the gunicorn
# webserver, with one worker process and 8 threads.
# For environments with multiple CPU cores, increase the number of workers
# to be equal to the cores available.
# Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.

# Use the official lightweight Python image.
# https://hub.docker.com/_/python
FROM python:3.9-slim

# Allow statements and log messages to immediately appear in the Knative logs
ENV PYTHONUNBUFFERED True

# Copy local code to the container image.
ENV APP_HOME /app
WORKDIR $APP_HOME
COPY . ./

# Install production dependencies.
RUN pip install --no-cache-dir -r requirements.txt

# Run the web service on container startup. Here we use the gunicorn
# webserver, with one worker process and 8 threads.
# For environments with multiple CPU cores, increase the number of workers
# to be equal to the cores available.
# Timeout is set to 0 to disable the timeouts of the workers to allow Cloud Run to handle instance scaling.
CMD exec gunicorn --bind :$PORT --workers 1 --threads 8 --timeout 0 main:app
58 changes: 29 additions & 29 deletions .ARCHIVE/google_cloud_test/ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,30 +1,30 @@
## Deployment & Architecture
Below is outlined a pathway for deploying current webapp application (that is deployed in AWS) into Google Cloud.
### Google Cloud Run
Great tool for deploying docker applications as serverless web applications.
[Learn why here.](https://cloud.google.com/blog/topics/developers-practitioners/cloud-run-story-serverless-containers)
#### Steps to Develop
1. Install the google cloud SDK
1. Run the following login inside of the Google Console
1. ```gcloud auth login``` - login with deakin
1. ```gcloud auth application-default login``` - this will setup your environment with user account principal so you can run and work with gcloud resources on your local machine (like cloud storage)
[View Auth Documentation here](https://googleapis.dev/python/google-api-core/latest/auth.html)
1. At this point you should have everything setup on your machine to work with gcloud cli and gcloud resources.
#### Steps to deploy
1. Install Google Cloud SDK Cli
1. Login using Deakin Credentials
1. Copy Dockerfile to `../webapp` directory
1. Run `gcloud run deploy test-cloud-run-again --source . --allow-unauthenticated` from the webapp directory.
1. Select 10 as region
1. Application should be deployed
* In the Deakin Project, you will likely not have permission to perform the `--allow-unauthenticated` action.
You can still test the instance as authenticated user using the steps outlined [here](https://cloud.google.com/run/docs/authenticating/developers).
* To deploy to production / public, check in with `Nghia Dang` to request `Cloud Run Invoker` role be added to anonymous users for your cloud run application ([Documentation here](https://cloud.google.com/run/docs/authenticating/public)).
1. You can now test the application by calling
```
curl -H "Authorization: Bearer $(gcloud auth print-identity-token)" [url to deployed instance]
## Deployment & Architecture
Below is outlined a pathway for deploying current webapp application (that is deployed in AWS) into Google Cloud.

### Google Cloud Run
Great tool for deploying docker applications as serverless web applications.
[Learn why here.](https://cloud.google.com/blog/topics/developers-practitioners/cloud-run-story-serverless-containers)

#### Steps to Develop
1. Install the google cloud SDK
1. Run the following login inside of the Google Console
1. ```gcloud auth login``` - login with deakin
1. ```gcloud auth application-default login``` - this will setup your environment with user account principal so you can run and work with gcloud resources on your local machine (like cloud storage)

[View Auth Documentation here](https://googleapis.dev/python/google-api-core/latest/auth.html)
1. At this point you should have everything setup on your machine to work with gcloud cli and gcloud resources.

#### Steps to deploy
1. Install Google Cloud SDK Cli
1. Login using Deakin Credentials
1. Copy Dockerfile to `../webapp` directory
1. Run `gcloud run deploy test-cloud-run-again --source . --allow-unauthenticated` from the webapp directory.
1. Select 10 as region
1. Application should be deployed
* In the Deakin Project, you will likely not have permission to perform the `--allow-unauthenticated` action.
You can still test the instance as authenticated user using the steps outlined [here](https://cloud.google.com/run/docs/authenticating/developers).
* To deploy to production / public, check in with `Nghia Dang` to request `Cloud Run Invoker` role be added to anonymous users for your cloud run application ([Documentation here](https://cloud.google.com/run/docs/authenticating/public)).
1. You can now test the application by calling
```
curl -H "Authorization: Bearer $(gcloud auth print-identity-token)" [url to deployed instance]
```
Loading