Skip to content

A chat app made with React and Google Firebase - Eesa Zahed

Notifications You must be signed in to change notification settings

eesazahed/laser-chat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Laser Chat

Laser Chat 2.0.1 is out with many more features.

A chat app made with ReactJS and Google Firebase.

To host your own chat server, first open the terminal and type in git clone https://github.com/EesaZahed/laser-chat.git Next, type cd laser-chat and npm i react in the terminal.

Next, create a Google Firebase web project at https://console.firebase.google.com/, and enable a realtime database, and also add a method for user authentication with an email address and password. Once you create your project, go to your project settings, and copy the firebaseConfig object, and paste it in src/firebase/config.js.

To finally run it, type in the terminal of your project's directory npm start.

Your chat server is online and anyone with your API keys in the firebaseConfig object can edit your database. For more information about Firebase security, please read more about this at https://firebase.google.com/docs/projects/api-keys.

For your database rules, use the following:

{
  "rules": {
    "users": {
      "$uid": {
        ".read": "$uid === auth.uid",
        ".write": "$uid === auth.uid"
      }
    },
    "allposts": {
      ".read": "auth.uid !== null",
      ".write": "auth.uid !== null"
    }
  }
}

image1 image2

About

A chat app made with React and Google Firebase - Eesa Zahed

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published