TruelySell Web - Documentation
1. Introduction
- Created on: 01 September 2023
- Developed by: DreamGuy's Technologies
- Support via email: support@dreamguystech.com
- Support via CodeCanyon: Take me there
Thank you for purchasing TruelySell - On demand service marketplace In this document you will find information on how to install on your server, manage and update your TruelySell. If you have any questions that are beyond the scope of this help file, please feel free to contact us via Support link. We will do our best to answer you in shortest of time.
2. Achitecture
Here are the install instructions and architecture of the complete product for you.
Truelysell is done using PHP and MySQL based web application. Which works on basic Web based architecture..

3. Install Instruction
To be able to install the application we just need a WebServer and a MySQL Database instance with username and password
System Requirements
WebServer
- GoDaddy or AWS or similar hosting
- Apache Server
- PHP 5.4+ (8.0)
- PhpMyAdmin (or any similar to import database)
MySQL Database
STEP 1: CONFIGURE DATABASE
Configuring the database is quite important so lets do that as a step1
Create the TruelySell database TruelySell_Database (You can name it how you like)
Command line: # mysqladmin -p create TruelySell_Database
Open phpMyAdmin: http://{site}/phpMyAdmin/ In the initial (Welcome) screen -> click ‘New’
In the entry box, type: ‘Truelysell_Database’ then press the Create button

STEP 2: INSTALL TABLE SCHEMA
Setup the tables by running the install.sql script that comes with the WOK installation.
Command line: mysql -p TruelySell_Database < truelysell.sql
phpMyAdmin will display a page that says: "Database ‘Truelysell_Database’ has been created"
Select the database, and choose Import, you can see ‘Browse Your Computer’ :" with Choose file…
Click that and locate the file install.sql. Press Go go button located at the bottom of the page.

Once Installed, you can see the import successful message.

STEP 3: COPY THE FILES TO THE SERVER
You can use ‘WinSCP’ or FTP tools to copy your files to the server.
Copy the entier folder ‘Truelysell-Web’ to the root folder, it contains the ‘index.php’ which will the first file to be called.
Copy the ‘Truelysell-web.zip’ and then unzip in the server or copy as a folder.

Once the file is load online. Unzip the file to extract its content.

Once the files are loaded, make sure it has the permissions as ‘755’ so that read is possible for all users accessing.

STEP 4: CONFIGURE YOUR DATABASE COMMUNICATION
Need to configure the newly loaded appliciation to communicate to the database we have created. Open the file ‘database.php’ under ‘{your_directory}/application/config/database.php’

Update the settings
‘hostname’ is the mysql hostname, if you have mysql in the
same server, you can use localhost.
‘username’ is the username to connect to mysql
‘password’ is the password used to connect mysql
‘database’ is the database we created in Step1/Step2

STEP 5: LOGIN AND CONFIGURE
Once the configuration is done, you are now ready to connect to the website and configure the web application.
Admin Login Credentials
Username : admin
Password : admin
STEP 6: CONFIGURE EMAIL DETAILS
Go to setting and then to ‘Email Settings’ to configure the emails, choose PHP mail or SMTP (SMTP is faster)

STEP 7: CONFIGURE GOOGLE API FOR MAP’S
Go to Setting -> General Settings and to the bottom you have ‘Google Map API Key’ you have instruction on how to create if you need be.

STEP 8: CONFIGURE PAYMENT GATEWAY
Go to Settings -> Payment Settings ( you have the option to choose, ‘stripe’ and ‘razorpay’ and ‘paypal’ and ‘paystack’ and ‘paysolution’ and ‘midtrans’) you can configure based on your need.

STEP 9: CONFIGURE SMS SETTINGS
SMS is handledd by Nexmo,2Factor and Twillio, you need to create account and get API key’s to configure so that the SMS works for the whole application.

4. Web Socket
Web-socket is bidirectional, a full-duplex protocol that is used in the same scenario of client-server communication. Message passing between a client and server.
Requirements: OS Ubunut
Create a domain with SSL certificate.(Without SSL our web-socket will not work)
- Ssl.cert ( certificate file)
- Ssl.key ( Private key file)
- Ssl.ca ( ca-bundle file or chain certificate)
Need dedicated server or VPS root access to server
Need separate port for serving web-socket (Example: Port 8113)
Need root privilege to access the server for installing and configuring the web-socket.
Goto the file path application/config/database.php and make sure the following details

Goto the file path chat/server.php and change the port number as mentioned below

Goto the chat folder
#php server.php (run)
Output:
Server running at 0.0.0.0:8443
(If it not works then need to cross check the configuration and settings)
Once the manual checkup okay, then for continus running websocket we need to install and configure the supervisor
#apt install supervisor
5. Support
If you have any queries please contact us through email: support@dreamguystech.com
6. Thank You
Thank you so much for using this template
Dreamguy's Technologies Pvt Ltd,