InfyChat

Install InfyChat

If you have purchased the InfyChat system then you will be able to find dist.zip within the main zip file.

Extract that file on your local and follow the following steps:

1. Copy files to a web server

Upload dist.zip to your web server's root (public_html) and extract it there. If you are installing it on subdomain then do extract it in your subdomain's root folder.

2. Setup your Database

Open PHPMyAdmin on your server and do a login.

Setup Default DB

Click on the Databases tab.

Setup Default DB

Create a new database and specify a Database name of your choice and click the Create button.

Setup Default DB

Now on the left, select the database that you have created and click Import in the top menu

Setup Default DB

Under Import, choose the database SQL file from dist/database/chat.sql from the extracted file from your local and click the Go button.

Setup Default DB

3. Setup environment file

Open .env file on your server's root folder.

Setup Default DB

Update the following variables in your .env file.

APP_NAME - Name of your Application/Library System APP_URL - Change this URL with your server URL (including trailing path if you are putting it in a subfolder or root website) DB_HOST - Put your database hostname here DB_PORT - Put your database port here if it does not default to 3306 DB_DATABASE - Change it to your database name DB_USERNAME - Name of your database user DB_PASSWORD - Password of your database user

You will also need to set up mail configuration, you can read more about here for that setup based on mail service that you use.

MAIL_DRIVER MAIL_HOST MAIL_PORT MAIL_USERNAME MAIL_PASSWORD MAIL_ENCRYPTION MAIL_FROM_ADDRESS MAIL_FROM_NAME

Set Zoom configuration it is using in Live Consultations module. So first of you need to create your zoom ap into zoom marketplace and need to generate the API Keys and credentials.

  • Go to Link and do sign in.
  • Click Develop button on header and select Build App menu.
  • Choose the JWT and create an application with the app name that you want.
  • Input required information and click Continue until your app will be activated.

After completing the above steps, you need to update your .env file by placing below keys inside that.

ZOOM_API_URL="https://api.zoom.us/v2/" ZOOM_API_KEY="INPUT_YOUR_ZOOM_API_KEY" ZOOM_API_SECRET="INPUT_YOUR_ZOOM_API_SECRET"

Optional Configurations

OneSignal - If you want to configure Push Notifications then you need to add OneSignal configuration. You can find the steps here.

AWS S3 - You can also use your choice of storage driver to store your media assets if you want. All of your attachments will be placed into that. You can find the steps here.

Social Authentication - You can configure social authentication for registration and Login. You can find the steps here

4. Laravel Echo Configuration

InfyChat is built on Laravel Echo, Laravel Broadcasting mechanism. InfyChat works with all Laravel Echo supported drivers.

  • Socket.io
  • Pusher

You can use your choice of driver for realtime message updates. Here is the guide for both.

4.1 Pusher Configuration

Go to pusher website and do sign up or if you already have an account then do a login.

After login you will be redirected to the following screen.

Setup Default DB

Click on the “Create new app” button. After clicking this button you get below screen.

Setup Default DB

Enter the name of your app. Select a cluster of your choice. Select “JS” from front-end tech and “Laravel” from back-end tech and click “create my app” button. As shown in the below image.

Setup Default DB

After creating an app yow will redirect to the below screen. After that click on the “App settings” menu as pointed in below screen.

Setup Default DB

After clicking on “App Settings” you will redirect to the below screen. From there select “Enable client events” checkbox and click on the “Update” button.

Setup Default DB

Now click on the “App Keys” menu and you will get the following screen.

Setup Default DB

Copy the values and add those values in your env file.

PUSHER_APP_ID - Your pusher app id PUSHER_APP_KEY - Your pusher app key PUSHER_APP_SECRET - Your pusher app secret PUSHER_APP_CLUSTER - Your pusher app cluster

4.2 Socket.io

Laravel Echo also works with Laravel Echo Server with Socket.io implementation. We have created a very good video that demonstrates step by step to use Laravel Echo Server into InfyChat. Check the video below.

How to use InfyChat with Laravel Echo Server

5. Admin login

You can now login as admin using the following credentials.

email: admin@gmail.com

password: admin

Setup Default DB

6. Landing page

Access the InfyChat app by your URL. You should be able to see the below-landing page.

Setup Default DB

Click on the Register button and do register using your email.

Setup Default DB

Now check your email you will get below activation mail. (Make sure you have configured your mail settings properly)

Setup Default DB

Click on the “Activate your account” button, and you will be redirected to the login page as shown in the below image.

Login using your email & password

Setup Default DB

We are ready to go.