# How to Deploy Firebase Functions

{% hint style="warning" %}
This section is for the Ionic 4 version of this platform, where Firebase Functions were used to make the apps talk to each other. Ionic 5 version does not use Firebase Functions.
{% endhint %}

## Deploy Firebase function on your own Firebase project

To deploy Firebase functions to your own Firebase project, please follow the instructions given in [this detailed tutorial](https://enappd.com/blog/firebase-cloud-functions-in-ionic-4-complete-guide/32)

{% embed url="https://enappd.com/blog/implement-ionic-4-firebase-push/34" %}

## Replace existing Firebase Function URLs

Once you deploy your own Firebase function on your own Firebase project, you'll get custom URLs for each function. These URLs need to be places in the User, Driver app for the platform to fully connect with your Firebase project.

A typical Firebase Function URL looks like this

```
https://us-central1-cab-dashboard.cloudfunctions.net/getDriver
```

Following are the locations where you need to change the Firebase Function URLs

### User App

1. Request Ride Page - `requestride.page.ts`&#x20;

Replace the URL for **getDriver** function -&#x20;

```
https://us-central1-cab-dashboard.cloudfunctions.net/getDriver
```

with your own **getDriver** URL

### Driver App

1. Home Page - `home.page.ts`&#x20;

#### Accept Ride

Replace&#x20;

```
https://us-central1-cab-dashboard.cloudfunctions.net/acceptRide
```

with your own **acceptRide** URL

#### Reject Ride

Replace&#x20;

```
https://us-central1-cab-dashboard.cloudfunctions.net/rejectRide
```

with your own **rejectRide** URL

#### Complete Ride

Replace&#x20;

```
https://us-central1-cab-dashboard.cloudfunctions.net/completeRide
```

with your own **completeRide** URL

