Uber Like Cab Service
This project is an Uber like Android app with php backend. It allows you to book the nearest available cab. Driver app is also present in the repo along with the server code.
Prerequisites
- Android API key - https://cloud.google.com/docs/authentication/api-keys#api_key_restrictions
- Google Maps API key - https://developers.google.com/places/android-sdk/get-api-key#restrict-key
- OneSignal API key - https://documentation.onesignal.com/docs/accounts-and-keys
STEP 1
git clone https://github.com/AnupKumarPanwar/Uber-Like-Cab-Service.git
STEP 2
- Open the User App in Android Studio.
- Put your GOOGLE_MAPS_API_KEY and ANDROID_API_KEY in
strings.xml
.
- Repeat the same process in Driver App.
- In Driver App, also replace ONE_SIGNAL_APP_ID in build.gradle (module:app) with your id.
STEP 3
- Deploy the php server.
- Open
database.sql
and update line number 20 i.e.,
-- Database: `id11748254_nearcabs`
- Import the
database.sql
file in MySQL.
- Replace the network call urls in the Android App code with your server url.
Note: Check this repo for PlacePicker related issues https://github.com/rtchagas/pingplacepicker