CAB2U Documentation

    Cab2u mobile application is a taxi/cab booking mobile application developed by using latest & secure technologies using react native and laravel. The taxi booking apps' overall process structure is automated and demonstrates a basic management of resources across a range of operations.
    Several platforms, including Android and iOS, can be used to develop mobile applications.In Cab2u Mobile Application is two mobile applications and one Admin panel.

Major Features

Getting Started

  • It's necessary to have a basic knowledge in both server side and mobile app development.
  • Basic knowledge in mobile application and installation
  • Basic knowledge about Google Cloud and Firebase

Xampp Installation

    Step:1 Download Xampp Application in the Given link [https://www.apachefriends.org/xampp-files/7.3.26/xampp-windowsx64- 7.3.26-0-VC15-installer.exe]

    Step :2 Install the xampp in your system

    Step 3: After installation, click to start Apache and Mysql server.

Composer Installation

    Step 1: Download the composer, from given the link, [https://getcomposer.org/Composer-Setup.exe]

    Step 2: Install the composer in your system.

Admin Configuration

    Step 1: Unzip the source folder

    Step 2: Copy the admin folder then paste it inside the XAMPP -> htdocs folder and rename your project folder. eg: Cab2u_admin

NOTE: Please verify XAMPP and COMPOSER are already installed, if not please check [https://www.apachefriends.org/download.html] [https://getcomposer.org/download/]

    Step 3: Open command prompt and navigate to your project folder. eg. XAMPP - > htdocs -> cab2u_admin
    Step 4: Run the command 'composer install' in command prompt and hit enter, when finished check the folder name 'vendor' is created in your project.
    Step 5: Open localhost/phpmyadmin in browser to create database(db) file.
    Step 6: Click on New option then enter the Database name and select code then click on create button. New database for your project is created.
    Step 7: Import the sql file from your project folder and Steps to reach sql file (admin -> db_file -> cab2u_admin.sql )
    Step 8: Make the below changes in the .env file.

    NOTE: If .env file is not listed in your project folder, then you need to enable the view hidden files option.
    ● Enter your domain URL in place of ENTER YOUR URL HERE Eg: https:\\cab2u.com\(server) / Eg: https:\\127.0.0.1:8000\ (local)
    ● Enter the DATABASE NAME, USERNAME and PASSWORD in their respective places
    ● Enter the database TWILIO_SID, TWILIO_TOKEN and TWILIO_FROM in their respective places
    ● Enter the database RAZORPAY_KEY in their respective places.
    ● you want to get new, edit access in admin panel you must activate production mode in .env file
    Step 9: Run the command 'php artisan serve' in command prompt and hit enter.

Gmail Authentication

    Step 1: Login your Gmail account and open the 'Account' option, which shows on the top right corner.

    Step 2: Click security option and turn on the verification.

    Step 3: Enter your gmail and password in the .env file.

Firebase Admin Configuration

    Step 1: Create a web app in firebase.

    Step 2: Go to firebase console https://console.firebase.google.com/u/0/ and create a project.

    Step 3: After creating the project go to the project dashboard and create the Database

    Step 4: Then Click on Settings icon and open Users and permissions, and then click on the Advance permissions settings

    Step 5: Click the Service Accounts option and click create key button. When clicking on json option and clicking the create button the json file is downloaded in your system.

cab2u
cab2u

    Then copy and paste json string file name and json string db name in .env file as shown below. And also put this json file into the config folder in admin side.

    ● Enter the Firebase_DB and Json in their respective places.

Pusher Configuration

    Step 1: Open the firebase console, click settings and go to "project settings" page.

    Step 2: Copy and paste the FCM_SERVER_KEY in .env file

Google Map Configuration

    Step 1: Open "Google console" and Click "APIs and Services" and open Credentials.

    Step 2: Click the copy icon of API keys and enter your MAP_KEY in the .env file, like below given screen

    Need to enable the below mentioned google map SDK's
  • Javascript sdk
  • Android sdk
  • IOS sdk
  • Geocoding
  • Static map sdk

Mobile App Configuration

    Installation: Download Node JS from browser to install and download Android Studio in your system.
    step:1 Download Node JS from browser to instal
    Step 2: Download Android Studio and install in your System

Customer App Configuration

    Step 1: Copy the customer folder and paste it into your desired location.
    NOTE: If you want to give some other name to app folder, you need to change the bundle id by following

    Step 2: Bundle Id changes in the following steps to be change in the codes.


Firebase App Configuration

    Step1: Create the project in firebase as shown below.

    Step 2: Copy and Paste the google-service.json in the path android->app in cab2u_customer folder



Google Map Key Configuration

    ● Cab2u/src/config/constants
    ● Cab2u/android/src/main/AndroidManifest.xml
    Now Open command prompt and navigate to your project folder. eg. cd space folder name as cd d:\ -> d:\>cd cab2u_ -> d:\cab2u_>cd cab2u_new ->d:\cab2u_\cab2u_new>cd cab2u_customer then run the command npm install in command prompt.
    Now Run the command adb devices in command prompt
    Now cab2u Customer Source runs the Command before the developer option is enabled in the mobile which is connected to your system.
    Now Run the command npx react-native run-android in command prompt and hit enter.

    Now the cab2u_customer app successfully bundle id changes in your system.
    As the same process of the Driver Configuration of Bundle id changes in the driver mobile application.

Server Hosting

    Step 1: Open your server and login.

    Step 2: Click the “manage” button to open your main domain.

    Step 3: Open mysql databases and create DB.

    Step 4: And open phpmyadmin and click “enter phpMyadmin” and import the db.

    Step 5: Click file manager and open public html folder and import your admin source.