This is a real time messaging system using Yii2, NodeJS, Socket.io and Redis.
User has to login and search user with whom he wants to chat and can begin chatting.
Steps to install the application
- Clone or download the zip in the server root directory.
- Install composer
- Run
composer global require "fxp/composer-asset-plugin:1.1.4"
- Run
composer update
- Run command "init" (windows) or "php init" (for linux) to initialize the application with a specific environment. Select "development" environment.
- Create database named as "bananabandy" adjust the components['db'] configuration in /common/config/main.php.
- Migrate Database
yii migrate
in command prompt. - Install NodeJS
- Install & run Redis
- Go to nodejs folder and open command prompt here and run
node server.js
- Go to browser URL and type /backend/web
- Use following credentials to login: [email protected]/admin123
- Create users.
- Go to frontend
- Open two browsers & type / in both the browsers.
- Login using credentials created in the admin panel
- Search user and start chatting.
Note : Please let me know if you need any help in setting up the system.