rizkiamor / Chat-Realtime

Public & Private message. MySQL & Firebase.

Home Page:http://bachors.com/project/chat-realtime-firebase

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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 :)

About

Public & Private message. MySQL & Firebase.

http://bachors.com/project/chat-realtime-firebase

License:MIT License


Languages

Language:JavaScript 44.0%Language:HTML 23.7%Language:PHP 16.9%Language:CSS 15.4%