Skip to content

Repository files navigation

theConnection

theConnection is a real-time chat application built with React, Firebase, and Material-UI. It allows users to communicate with each other through text messages, manage their profiles, and search for other users by display name or email.

Table of Contents

Features

  • Real-time messaging
  • User authentication
  • Profile management
  • Search users by display name or email
  • Responsive design

Installation

  1. Clone the repository:

    git clone https://github.com/yourusername/theConnection.git
    cd theConnection
  2. Install dependencies:

    npm install
  3. Create a .env file in the root directory and add your Firebase configuration:

    VITE_FB=your_firebase_api_key
  4. Start the development server:

    npm run dev

Usage

  1. Open your browser and navigate to http://localhost:3000.
  2. Register or log in with your account.
  3. Start chatting with other users!

Project Structure

.
├── .env
├── .eslintrc.cjs
├── .gitignore
├── index.css
├── index.html
├── package.json
├── postcss.config.js
├── public/
├── README.md
├── src/
│   ├── App.jsx
│   ├── assets/
│   ├── components/
│   │   ├── CACover.jsx
│   │   ├── ChatArea.jsx
│   │   ├── ChatHeader.jsx
│   │   ├── ChatList.jsx
│   │   ├── EditDisplayName.jsx
│   │   ├── FullImg.jsx
│   │   ├── Messages.jsx
│   │   ├── MyAvatar.jsx
│   │   ├── SearchBar.jsx
│   │   ├── Send.jsx
│   │   ├── Sidebar.jsx
│   │   └── SideHeader.jsx
│   ├── context/
│   │   ├── AuthContext.jsx
│   │   ├── ChatContext.jsx
│   │   └── ImgContext.jsx
│   ├── firebase.js
│   ├── main.jsx
│   ├── materialUI/
│   │   └── ...
│   └── pages/
│       ├── Chat.jsx
│       └── ...
├── tailwind.config.js
├── vercel.json
└── vite.config.js

Key Files and Directories

  • src/firebase.js: Firebase configuration and initialization.
  • src/context/: Context providers for authentication, chat, and image handling.
  • src/components/: Reusable UI components.
  • src/materialUI/: Custom Material-UI components.
  • src/pages/Chat.jsx: Main chat page.

About

A chat app using react and firebase

Resources

Stars

0 stars

Watchers

0 watching

Forks

Used by

Contributors

Languages