webdevabhi / chat-app

Real time chat-app using Angular.js & Codeigniter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Real Time Chat Application

Real time chat-app using Angular.js, Codeigniter & Ratchet

How to use :

  1. Download the code or get a clone. if (cloning please run the command)
	composer install
  1. Setup the databse named "chat_app_db" and set your usernamme and password in
	application/config/database.php
  1. setup your base path in, as for me is http://locahost/chat-app
	application/config/config.php
  1. 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
  1. Now open a url to migrate the databse. URL : http://localhost/chat-app/migrate (your_base_path/migrate)

  2. Enter your User Name to Enter the Chat Application.

What I used?

  1. CodeIgniter 3.x PHP Framework (https://www.codeigniter.com/)

  2. Ratchet - Websocket for PHP (http://socketo.me/) by Chris Boden(@boden_c)

  3. AngularJS - A superheroic Javascript MVW Framework by Google

About

Real time chat-app using Angular.js & Codeigniter

License:MIT License


Languages

Language:HTML 82.0%Language:PHP 16.9%Language:JavaScript 1.0%Language:CSS 0.2%