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.
- Real-time messaging
- User authentication
- Profile management
- Search users by display name or email
- Responsive design
-
Clone the repository:
git clone https://github.com/yourusername/theConnection.git cd theConnection -
Install dependencies:
npm install
-
Create a
.envfile in the root directory and add your Firebase configuration:VITE_FB=your_firebase_api_key
-
Start the development server:
npm run dev
- Open your browser and navigate to
http://localhost:3000. - Register or log in with your account.
- Start chatting with other users!
.
├── .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.jssrc/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.