Giter Club home page Giter Club logo

chat-application's Introduction

CHAT APPLICATION

This is a simple Chat application written in php, javascript and ajax chat_screenshot

WORKING

This works based on polling, every 5 seconds it checks for new message in database new messages are returned to the user

FUTURE SCOPE

  • To add security options
  • To include group chat options
  • To include upload of multimedia

INSTALLATION

Follow the below steps for apache server
  • Create the directory for your_domain and move to the directory
    sudo mkdir /var/www/your_domain
    cd /var/www/your_domain
    
  • Clone the repo or download the files inside the current directory,To Clone the repo
    git clone "https://github.com/yogeeswar2001/cpu_scheduling_algo_simulator.git"
    
  • Assign ownership of the directory with the $USER environment variable
    sudo chown -R $USER:$USER /var/www/your_domain
    
  • open a new configuration file in Apache sites-available directory using preferred command-line editor
    sudo vim /etc/apache2/sites-available/your_domain.conf
    
  • Paste in the following configuration
    <VirtualHost *:80>
      ServerName your_domain
      ServerAlias www.your_domain
      ServerAdmin webmaster@localhost
      DocumentRoot /var/www/your_domain
      ErrorLog ${APACHE_LOG_DIR}/error.log
      CustomLog ${APACHE_LOG_DIR}/access.log combined
    </VirtualHost>
    
  • Run the following commands to enable the web app
    sudo a2ensite your_domain
    sudo a2dissite 000-default
    
    The below command should give "syntax OK" which ensures configuration file doesn’t contain syntax error, if so reload apache
    sudo apache2ctl configtest
    
    sudo systemctl reload apache2
    
  • Open the browser and type localhost in the url

Follow the steps to create database with MySQL

  • Create a database, the use the chat_App.sql to import the database
    create database database_name
    use database_name
    source path_to_sql_sorce_file
    
  • Change the $username, $pwd, $db in db_conn.php

chat-application's People

Contributors

yogeeswar2001 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

uberstig

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.