Code Monkey home page Code Monkey logo

chat-realtime's Introduction

Chat-Realtime

Aplikasi ini akan selalu bersetatus (BETA) Karena akan terus di update & dikembangkan. Maka dari itu jangan lupa di fork & like ya sob :).

Aplikasi ini dibuat menggunakan:

  • PHP
  • MySQL PDO
  • Bootstrap
  • jQuery
  • Firebase
  • Fontawesome
  • Emoji-picker

Fitur:

  • Public rooms chat.
  • Private chat with user.
  • Sedn message with emoticon.

Realtime:

  • Status user online or offline.
  • Push new user login.
  • Push new message.
  • Push inbox count.

Penggunaan:

1. Import database db/chat_realtime.sql
  1. Setting database php/config.php
<?php
// Replace with: your database account
$username     = "REPLACE";
$password     = "REPLACE";
$host         = "REPLACE";
$name         = "chat_realtime";
  1. Setting firebase & MySQL API js/config.js
// MySQL API
var apis = 'api.php'; 

// Replace with: your firebase account
var config = {
    apiKey: "REPLACE",
    databaseURL: "https://REPLACE.firebaseio.com"
};
firebase.initializeApp(config);

// create firebase child
var dbRef = firebase.database().ref(),
	messageRef = dbRef.child('message'),
	userRef = dbRef.child('user');

Done :)

chat-realtime's People

Contributors

bachors avatar

Watchers

James Cloos avatar Survenator avatar

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.