Giter Site home page Giter Site logo

bachors / chat-realtime Goto Github PK

View Code? Open in Web Editor NEW
180.0 26.0 178.0 454 KB

Public & Private message. MySQL & Firebase.

License: MIT License

PHP 11.70% CSS 21.79% HTML 9.51% JavaScript 53.30% TSQL 3.70%
realtime firebase chat-realtime mysql php chat chat-application chat-room chatting jquery

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

chat-realtime's People

Contributors

bachors avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

chat-realtime's Issues

adding new room

Hi, I wanna add a new public room but I couldn't do that, can you explain?

Emojis go away

When I refresh the page, emojis turn into ???? Can that please be fixed?

Thanks! ๐Ÿ˜„

firebase database is deleted automaticaly

firebase database is deleted automatically within secs and i put the sql in my phpmyadmin but there are also other users that i have not registered .wht is the problem

Error unclosed token

Mohon di solving errornya :

XML Parsing Error: unclosed token
Location: file:///D:/Downloads/Chat-Realtime-master/Chat-Realtime-master/api.php
Line Number 1, Column 1:

Versi PHP dan MYSQL?

Bro ini pakai PHP dan MYSQL versi berapa ya?
ane pake apache2triad nda bisa ya?

Wah gila coding nya

nama fungsinya a, b, c, d, e .. z serius? salut. saya sampai pusing baca dan mengingatnya. Semoga kedepannya kalau codingnya dishare, diusahakan yang bisa dibaca

terima kasih.

send pdf files

Hi, I just tried your program and it's very nice.
I'm going to work on it to improve it a bit, I want to be able to send pdf documents and fix the system's login.
I will write u later .

Firebase rule problem

What kind of setup we have to do in firebase.my child is creating but getting deleted in seconds

Not Working

It's Reading from MySQL DB but not inserting to mysql

logged in users chat...

Hi
I have a web app i am working on in php and Mysql and will like to add this chat in it.
I am not so good in java script ... i want to pick the logged in users details in the chat page and allow them to chat.

how do i got about or where do i need to change ?

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.