https://github.com/dadansatria/yii2-realtime-chat-example
Yii2 simple realtime chat with websocket.io
https://github.com/dadansatria/yii2-realtime-chat-example
example-app example-project realtime-chat websocket yii2
Last synced: 8 months ago
JSON representation
Yii2 simple realtime chat with websocket.io
- Host: GitHub
- URL: https://github.com/dadansatria/yii2-realtime-chat-example
- Owner: dadansatria
- License: other
- Created: 2018-02-16T16:30:24.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-19T18:45:59.000Z (about 3 years ago)
- Last Synced: 2025-09-22T19:52:14.818Z (8 months ago)
- Topics: example-app, example-project, realtime-chat, websocket, yii2
- Language: PHP
- Homepage:
- Size: 8.13 MB
- Stars: 19
- Watchers: 4
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
DIRECTORY STRUCTURE
-------------------
assets/ contains assets definition
commands/ contains console commands (controllers)
config/ contains application configurations
controllers/ contains Web controller classes
mail/ contains view files for e-mails
models/ contains model classes
nodejs/ server.js -> get data from server without sending request from client
runtime/ contains files generated during runtime
tests/ contains various tests for the basic application
vendor/ contains dependent 3rd-party packages
views/ contains view files for the Web application
web/ contains the entry script and Web resources
Getting Started
-------------------
1. run ```composer install``` to install the framework and its components
2. run ```npm install``` to install the node modules
3. edit database config at ```config/db.php```
Database
-------------------
Apply the database migration to create the table required to store the chatting messages
```
php yii migrate/up
```
Running Node Service
-------------------
```
node server.js
```
Preview
-------------------
