Doctry - Doctors and Hospital Listing

Contents

1. Server Requirements

2. How to Enable Real Time Chat

3. How to Translate language in Doctry?

4. How to setup CRON job in Doctry

5. Email Configuration

6. How to Enable Real Time Chat

7. Email Configuration

8. Server Requirements

9. Email Configuration

10. How to install Application on Local Server

1. Server Requirements

Below are the server requirements for the laravel application's

2. How to Enable Real Time Chat

Please make sure Node.js server is installed and active on your server. Please ask your hosting provider to run server.js file through SSH commands, server.js file is located in (your-project > js > server.js) Please ask your hosting provider how we can setup node server file. You need to set server host and port from chat settings


Note: if you have used port other than 3001 then please update port in server.js as well.


3. How to Translate language in Doctry?

Translation of strings is termed as localization in laravel official documention.

You can change language according to your need in doctry by following the steps given below.

Create New Language

If your required folder not exist then you can create new language by following steps




For more information regrading translation in laravel you can visit laravel official documention Laravel Localization

4. How to setup CRON job in Doctry

Go to the cPanel and then click on Cron Jobs


Then Setup a Cron Job according to your needs. 

Command will look something like that

/opt/php71/bin/php -q /http://yoursite.com/artisan schedule:run >> /dev/null 2>&1

This CRON job will execute and create the payouts history in the admin panel and then admin can export the payouts list of the selected month.

Thanks

5. Email Configuration

You need to configure the following settings in your .env file

For Gmail server you need to do the following steps

If 2 Step Verification is Enabled:

If your 2 step verification is enabled in gmail account you need to do the following steps.

If 2 Step Verification is Disabled:

6. How to Enable Real Time Chat

*****************************************************************************************************************

How to enable real-time chat

Please note real-time chat will only work if your server does support node.js and you are allowed to run forever commands to run server file. Mostly VPS and Dedicated servers allow you to run node server files.

*****************************************************************************************************************

First make sure that you have installed node and npm installed on your server. 

Either its shared hosting or dedicated hosting, and also make sure from your hosting provider that the port is enabled on which you have sending requests.

On shared hosting contact to your hosting provider and ask them to install node and npm, so you can easily run index.js file by writing this command node index.js from the terminal.

In case of dedicated server you have full access to install node and npm.

After verifying please ask your hosting provider to run index.js file through SSH commands

If you have not used any SSL certificate for your domain then without any problems you can run node chat server file. Just follow the below instructions.

Please ask your hosting provider to run index.js file through SSH commands, index.js file is located in (your-project > js > index.js) Please ask your hosting provider how we can setup node server file. You need to set server host and port from chat settings


Note: if you have used port other than 3001 then please update port in index.js as well.

In simple inbox system, users will get messages on page refresh while in real-time chat system users will get instant messages without refreshing the page. 

If you have used SSL certificate for you domain, then make sure that you have access to your certificate files on your cpanel.

Normally SSL certificate files could be found below path on cpanel.

To make sure that which keys and cert file have used for SSL certificate, you can find that information on Cpanel SSL/TLS

After that click on Manage SSL

After clinking on Managed SSL Sites.

Copy the name of certificate file and then go to SSL folder path. ( ssl/certs )

Download the file on you PC and then go to ssl/keys folder to download the key file.

After that go to you theme directory and create the below folder path in your theme js folder -> chat-cert folder.

if chat-cert folder is not exist then create chat-cert inside js folder and upload your downloaded key and cert file to this folder.

Now run the node server file from terminal like this node server-ssl.js

Note: Only Authorized certificates install on your domain will be recognize for your chat node server and no self-signed certificate will work on production server.

This below process is same for both situations either with SSL or without SSL.

Node JS Chat server only available or worked if terminal open, If you have mistakenly closed the terminal or logged out your session then the node chat server will be stop.

To run the node js chat app in background process install the npm process manager which is forever.

Run the below commands from your terminal.

npm install forever -g

It will install forever package globally, Note: If you have not installed forever globally then it will not work.

To start the node chat server run the following command.

forever start server-ssl.js

Do not bother the warnings it will run your application in background now.

To check which node processes are running on background enter the following command.

forever list 

(It will list down the all running processes for node js)

And to stop the node chat server enter the below command.

forever stop server-ssl.js

For your eyes only


7. Email Configuration

You need to configure the following settings in your .env file

For Gmail server you need to do the following steps

If 2 Step Verification is Enabled:

If your 2 step verification is enabled in gmail account you need to do the following steps.

If 2 Step Verification is Disabled:

8. Server Requirements

Below are the server requirements for the laravel application's

9. Email Configuration

You need to configure the following settings in your .env file

For Gmail server you need to do the following steps

If 2 Step Verification is Enabled:

If your 2 step verification is enabled in gmail account you need to do the following steps.

If 2 Step Verification is Disabled:

10. How to install Application on Local Server

1. Download package from codecanyon
2. Unzip the main-files and then copy the worketic folder and paste it on your local server
3. Start editing your .env file located in downloaded folder. Please make sure you have added the  
Correct database name, username and password. And copy the env file and paste into your project
3. Go to your project root level and run command > composer update
4. When composer update get completed then run this command (start server) > php artisan serve
5. Then type in your browser http://localhost:8000/install

And follow the instructions and wait while your demo is being import

Checkout Installation Video Guide: