This repository contains both the Android application and Firebase backend for the ECE452 project.
ECE452/
├── android/ # Android application
│ ├── app/ # Main Android app module
│ ├── build.gradle.kts
│ ├── settings.gradle.kts
│ └── gradle/
└── backend/ # Firebase Cloud Functions backend
This project uses the following Firebase services:
- Cloud Firestore: Serverless database backend
- Firebase Cloud Functions: Backend logic and API endpoints
- Firebase Authentication: User authentication and management
- Navigate to the
androiddirectory - Open the project in Android Studio
- Sync Gradle files
- Run the application
- Install Firebase CLI globally:
npm install -g firebase-tools- This installs the latest Firebase CLI globally on your system.
- Navigate to the functions folder:
cd backend/functions - Install function dependencies:
npm install - To run the Cloud Functions locally, start the Firebase Emulator:
npm run serve - To deploy the Cloud Functions to Firebase, run:
npm run deploy
Ensure the local emulator is running.
-
Configure Postman:
- Open Postman
- Create a new request
- Set the request method (POST)
- Set the URL to:
http://localhost:5001/climbr-9208c/us-central1/FUNCTION_NAME - Replace the name of the function (e.g. helloWorld)
-
Example Request:
Method: POST URL: http://localhost:5001/climbr-9208c/us-central1/helloWorld Headers: Content-Type: application/json Body (raw JSON): { "data": "test message" } -
Send the request and check the response in Postman