OpenChat is an Open Source messaging platform where people can send messages to anyone registered to this platform.
Setting up OpenChat on your local machine is really easy. Follow this guide to setup your development machine.
- PHP > 5.6
- MySQL
- Composer
- npm
- git
- Supervisor
-
Get the source code on your machine via git.
git clone https://github.com/ankitjain28may/openchat.git
-
Install php and js dependencies
cd openchat composer install npm install
-
Rename file
.env.example
to.env
and change credentials. -
Create an empty sql database and run import database.
create database openchat; mysql -u[user] -p[password] [database name] < path\openchat\sql\openchat.sql
-
open .env file and set
APP_URL
to yourexternal_ip
address at port 8888 -
Open a
message.js
file stored atpublic\assests\js
and set external_ipvar conn = new WebSocket("ws://external_ip:8080");
-
Create a log file inside the root folder.
touch openchat_supervisor.log
-
Open
Supervisor\devserver.conf
and setexternal_ip
address at port 8888 -
Add the conf files of the Supervisor folder to Supervisor by running following commands in terminal
sudo supervisorctl reread sudo supervisorctl update sudo supervisorctl start devserver sudo supervisorctl start server
That's it, now start development at http://external_ip:8888 in your browser
If you are interested in contributing to OpenChat, Open Issues, send PR and Don't forget to star the repo.
Feel free to code and contribute