Ionic 5 - Taxi Booking Platform with Firebase
  • Ionic 5 Taxi Complete Platform using Firebase - User, Driver Admin Apps
  • Why use this Starter
  • Setup and Deployment
    • Initial Dev Environment Setup
    • Running the App (Web Browser)
    • Deploying app as PWA
    • Building App on device
  • How to Use this Starter
    • Taxi Booking Complete Setup
    • Taxi User App - Setup
    • Taxi Driver App - Setup
    • Taxi Admin App - Setup
    • Testing Complete Platform
  • Platform Features
    • User App
    • Driver App
    • Admin App
  • Firebase Setup
    • New Firebase Project Setup
    • Firebase Integration Into User App
  • Extra
    • App Specific Requirements
    • Add More Features
    • FAQs
    • Firebase Setup (Ionic 4 Version)
    • Firebase Functions (Ionic 4 version)
      • Overview
      • Firebase Function in Code
      • How to Deploy Firebase Functions
Powered by GitBook
On this page
  • Install the app dependencies
  • Run the app on Browser
  • Next steps

Was this helpful?

  1. Setup and Deployment

Running the App (Web Browser)

Steps to follow for running your apps on browser, device or deploy as PWA.

PreviousInitial Dev Environment SetupNextDeploying app as PWA

Last updated 5 years ago

Was this helpful?

These steps are common to all 3 apps in this platform. You will be redirected to this section again, if you skip this initially.

Install the app dependencies

After you have Ionic installed, you have to install all the dependencies required by the app. These dependencies are listed in package.json file in the root of the project.

To do this :

Open your favourite code editor and open the app folder which is ION-4-TAXI-USR-FB-ionic5 in this case. It should show the following files.

Now open a terminal and make sure that your folder name is shown at the terminal to ensure that you are running the following commands inside your ionic app folder path.

Run the following command

ION-4-TAXI-USR-FB-ionic5 $ npm install

The screen with the npm install running at the VS Code terminal is shown below.

If you are using latest NPM, you might see an audit report after the installation is completed. If you see any vulnerability marked as high , please contact us regarding the same.

Run the app on Browser

First we'll run the app in development environment.

In development environment, your app runs in a browser (of your choice).

It is recommended to make all changes and development while running the app on browser . Running on device while developing will be too time consuming.

After completing the above step we will run the app on browser, run the following command

ION-4-TAXI-USR-FB-ionic5 $ ionic serve

The screen with the "ionic serve" running at the VS Code terminal is shown below.

Make sure that your folder name is shown at the terminal to ensure that you are running the following commands inside your ionic app folder path.

This will build the project and deploy it on a localhost url (usually it is localhost:8100).

The initial deploy process will take some time when it creates "chunks" of code pieces. Once you see compiled successfully , you are good to go.

After successfully running the app, your browser window will open automatically and load the app in a full screen view, as shown below.

To change the app to a device view, right click anywhere on the browser and choose Inspect Elementand choose device mode.

The screen running the app in device mode is shown below.

If you are running both User and Driver apps together on same browser to test booking flow, make sure you run them in separate windows, and clear stored cache before trying to login. Otherwise User Firebase credential can login the Driver app, and vice versa. This can confuse the apps between roles.

More about browser development tools can be found out in following links

Next steps

Make sure you have the done, before you try to run your app.

For Complete Integration of These App checkout the Section .

initial setup
Chrome Dev Tools
Firefox Dev Tools
Taxi Booking Complete Setup