Skip to content

Chatroom built on top of react.js. Implement google authentication for authorization and used Firebase's Firestore for real time messaging.

Notifications You must be signed in to change notification settings

patelmohit719/chatroom

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CHATROOM

Technology Used

Firebase : Firebase for authentication , real time database and deployment. React.js : Javascript library for frontend. HTML & CSS : for styling react components.

Available Scripts

npm start

Runs the app in the development mode.
Open http://localhost:3000 to view it in the browser.

npm run build

Builds the app for production to the build folder.
It correctly bundles React in production mode and optimizes the build for the best performance.

Firebase

Firebase Auth

    const provider = new firebase.auth.GoogleAuthProvider();
    auth.signInWithPopup(provider);
  };

Firebase Firestore

    const { uid, photoURL } = auth.currentUser; //get current user

    //add messages to firestore collection "messages"
    await messagesRef.add({
      text: formValue,
      createdAt: firebase.firestore.FieldValue.serverTimestamp(),
      uid,
      photoURL,
    });
  }; 

Screenshots

alt text

alt text

About

Chatroom built on top of react.js. Implement google authentication for authorization and used Firebase's Firestore for real time messaging.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published