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.
Click on the Databases tab.
Create a new database and specify a Database name of your choice and click the Create button.
Now on the left, select the database that you have created and click Import in the top menu
Under Import, choose the database SQL file from dist/database/chat.sql
from the extracted file from your local and click the Go button.
3. Setup environment file
Open .env
file on your server's root folder.
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 and update the following variables. You can use the below video for the reference on how to setup email configuration for cPanel servers.
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 selectBuild
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.
Click on the “Create new app” button. After clicking this button you get below screen.
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.
After creating an app yow will redirect to the below screen. After that click on the “App settings” menu as pointed in below screen.
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.
Now click on the “App Keys” menu and you will get the following screen.
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.
5. Admin login
You can now login as admin using the following credentials.
email: admin@gmail.com
password: admin
6. Landing page
Access the InfyChat app by your URL. You should be able to see the below-landing page.
Click on the Register button and do register using your email.
Now check your email you will get below activation mail. (Make sure you have configured your mail settings properly)
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
We are ready to go.