Skip to content

Commit eff7ac2

Browse files
authored
Merge pull request #56 from utmgdsc/feature/deploy_changes
Added Improvements to Backend
2 parents 9fdf382 + 770dd95 commit eff7ac2

5 files changed

Lines changed: 20 additions & 4 deletions

File tree

‎backend/requirements.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ ruff==0.1.4
77
typing~=3.7.4.3
88
werkzeug~=3.0.1
99
APScheduler~=3.10.4
10+
gunicorn==21.2.0

‎backend/utils/FirebaseAPI.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,4 +47,4 @@ def refresh_token(user_id):
4747
new_id_token = user.refresh_id_tokens()
4848
return new_id_token
4949
except auth.AuthError as e:
50-
raise e
50+
raise e

‎frontend/app.json‎

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,25 @@
2727
},
2828
"android": {
2929
"adaptiveIcon": {
30-
"foregroundImage": "./assets/splash.png",
3130
"backgroundColor": "#243E36"
32-
}
31+
},
32+
"permissions": [
33+
"android.permission.RECORD_AUDIO"
34+
]
3335
},
3436
"web": {
3537
"favicon": "./assets/favicon.png"
38+
},
39+
"extra": {
40+
"eas": {
41+
"projectId": "781935c7-2b3a-419f-853c-4e80c19ce60b"
42+
}
43+
},
44+
"runtimeVersion": {
45+
"policy": "appVersion"
46+
},
47+
"updates": {
48+
"url": "https://u.expo.dev/781935c7-2b3a-419f-853c-4e80c19ce60b"
3649
}
3750
}
3851
}

‎frontend/package.json‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@
2828
"bson-objectid": "^2.0.4",
2929
"events": "^3.3.0",
3030
"expo": "~49.0.12",
31+
"expo-cli": "6.3.10",
3132
"expo-font": "~11.4.0",
3233
"expo-image-picker": "~14.3.2",
3334
"expo-status-bar": "~1.6.0",
35+
"expo-updates": "^0.18.17",
3436
"firebase": "^10.7.1",
3537
"formik": "^2.4.5",
3638
"mongodb": "^6.3.0",

‎frontend/src/APIs/FLASK_API.tsx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import axios from 'axios';
22
import firebaseService from '../utilities/firebase';
3-
const FLASK_LOCAL_ADDRESS: string = 'http://10.0.0.72:6050';
3+
const FLASK_LOCAL_ADDRESS: string = 'https://api.carbontrack.usec.club';
44

55
// Function to get the Firebase authentication token
66
const getFirebaseAuthToken = async (): Promise<string | null> => {

0 commit comments

Comments
 (0)