1 - extract "codeWithInstructions.zip" file
, then in the resulting folder inside "buy_sell_app" folder :
extract "android.zip" then you will find two projects one for client and the other for the admin , you can open
both of them by Open An Existing Android Studio Project .
in package "com.general.utils" , edit BASE_SERVER_URL variable
in file "MyConstants" to be your server either in local host or online
2 - in local host or online
extract "backend.zip" then upload the "buy_sell" folder
online on your host server or on your local host like xampp
3 - in cpanel create database named buy_sell_db or any name you want
and assign user to it and assign all privileges , then edit "DatabaseConfig.php" file found in buy_sell/db path
according to your host and database name and database username and databaseUser password
4 - change database collation to utf8_general_ci
- Enter your cPanel and click on the phpMyAdmin icon in the Databases box.
- Select the database you wish to manage
- Click on the Operations tab
- In the collation option. You can now select utf8_general_ci collation from the drop down menu and click on the Go button .
5 - in phpMyAdmin , first and very important select our database ,
then from Import tab ,
import databse from "buy_sell_db.sql" file from the extracted folder from "backend.zip" file and then click Go button
, if there are errors ,
then click on SQL tab ,
copy all text from inside the "buy_sell_db.sql" file
and then paste this text inside the shown field to write sql queries in and then click Go button .
6 - in cpanel crate or edit .htaccess file to be like .htaccess file from the extracted folder from "backend.zip" file
7 - if you want to use your own firebase account , register on firebase console
and follow this link
and edit value of
API_ACCESS_KEY in file
in chat/rest_api/utilities folder to be the one that is in your own firebase in
Overview / Project settings / CLOUD MESSAING / server key
8 - for google map
Step 4. Set up a Google Maps API key
In the Cloud Console, enable the Maps SDK for Android on your project. For details, see enable APIs.
Follow the Get an API Key guide to get, add, and restrict an API key.
9 - you should remove all images in the uploads folder , I use them for demo only
10 - for recovering your forgotten password , we send email
from certain email you specify to the user who forgets the password either this user is admin or client
you can specify this email by
* go to "rest_api" folder and then file "GeneralFunctions.php" file and
change value of the variable "$application_email" from "[email protected]"
to any email you want
11 - you " as admin " can enable adding category name in arabic language from settings screen
12 - in "GeneralFunctions.php" file there are some variables that you can change
* $pageSize : used for choosing number of ads in each single page we request from the backend
i.e : used for pagination
* variables :
$other = "other";
$other_ar = "أخري";
$other_sort = '999999';
these are used when admin add parent category i.e : in the first screen of categories list
we add default subcategory inside it whose names are $other and $other_ar for arabic language and
$other_sort = '999999'; is for make this subcategory's sort field in the database is very high
to show at the end of the list of subcategories
13 - for login as admin
email : [email protected]
password : 000000
you can change them from profile screen