Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
css
 
 
db
 
 
 
 
js
 
 
php
 
 
 
 
 
 
 
 
 
 
 
 

README.md

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.
  • Send message with emoticon, images & videos.
  • search user.
  • Load more message.

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

// Image dir
$imageDir = "image";

// Replace with: your database account
$username     = "REPLACE";
$password     = "REPLACE";
$host         = "REPLACE";
$name         = "chat_realtime";
  1. Setting firebase & MySQL API js/config.js
// Domain
const domain = "http://REPLACE";

// MySQL API
const apis = 'api.php';

// set image directori
const imageDir = 'image';

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

// create firebase child
const dbRef = firebase.database().ref();

const messageRef = dbRef.child('message');
const userRef = dbRef.child('user');

Done :)

You can’t perform that action at this time.