Real time chat-app using Angular.js, Codeigniter & Ratchet
- Download the code or get a clone. if (cloning please run the command)
composer install
- Setup the databse named "chat_app_db" and set your usernamme and password in
application/config/database.php
- setup your base path in, as for me is http://locahost/chat-app
application/config/config.php
- Goto application/config/constants.php
Change the constant BROADCAST_URL and set it as your host.
5). Open Command Prompt Move towards your webroot folder. We are having our websocket code at following path in our project.
server.php
We have to run that server.php file from command prompt.
Just move to that folder by using "cd" command, and run the command
php server.php
-
Now open a url to migrate the databse. URL : http://localhost/chat-app/migrate (your_base_path/migrate)
-
Enter your User Name to Enter the Chat Application.
-
CodeIgniter 3.x PHP Framework (https://www.codeigniter.com/)
-
Ratchet - Websocket for PHP (http://socketo.me/) by Chris Boden(@boden_c)
-
AngularJS - A superheroic Javascript MVW Framework by Google