Skip to content

leonaurdo/monochat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Monochat

Monochat is a simple chat application built with React and Firebase. It allows users to sign in with Google, send messages, and view messages in real-time. This project is based on the chat app built by Fireship

Features

  • Google Authentication
  • Real-time messaging
  • Responsive design

Prerequisites

  • Node.js and npm installed
  • Firebase project set up

Installation

  • Clone the repository
  npm install my-project
  cd my-project
  • Install dependencies
  npm install
  • Create a .env file in the root directory and add your Firebase configuration
REACT_APP_FIREBASE_API_KEY=your_api_key
REACT_APP_FIREBASE_AUTH_DOMAIN=your_auth_domain
REACT_APP_FIREBASE_PROJECT_ID=your_project_id
REACT_APP_FIREBASE_STORAGE_BUCKET=your_storage_bucket
REACT_APP_FIREBASE_MESSAGING_SENDER_ID=your_messaging_sender_id
REACT_APP_FIREBASE_APP_ID=your_app_id
REACT_APP_FIREBASE_MEASUREMENT_ID=your_measurement_id

Usage/Examples

  • Start the development server:
   npm start

Project Structure

  • App.js: Main component that handles authentication and renders the chat room or sign-in button.
  • ChatRoom() - Function that displays messages and handles sending new messages.
  • ChatMessage() - function that renders individual messages.
  • SignIn() - function that handles Google sign-in.
  • SignOut() - function that handles sign-out.

Firebase Configuration

The firebase configuration is stored in the .env file. Make sure to create your own and replace the placeholder values with your actual project configuration.

Acknowledgements

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published