Chaos ChatRoom is a real-time chat application built using React and Firebase. It allows users to join chat rooms, send messages, and interact with others in real-time.
- User authentication with Firebase Authentication.
- Create and join chat rooms.
- Real-time messaging with Firebase Realtime Database.
- User avatars and display names.
- Responsive design for various devices.
-
git clone https://github.com/yourusername/chaos-chatroom.git
-
cd chaos-chat-app
-
Using npm:npm install firebase npm install firebase react-firebase-hooks
-
Create a Firebase project on the Firebase Console. Copy your Firebase project's configuration object from the Firebase Console to src/firebase/firebase.js. Start the Development Server:
-
npm start
-
Open your web browser and visit http://localhost:3000 to access the app locally.
- To deploy the app to production, follow these steps:
-
Modify the homepage field in package.json to match your production URL:
// package.json "homepage": "https://yourusername.github.io/chaos-chatroom"
// package.json "scripts": { "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", "eject": "react-scripts eject", "predeploy": "npm run build", //Add "deploy": "gh-pages -d build" //Add }
-
Run the following command to build and deploy the app:
npm run deploy
This will publish your app to the specified production URL.
Contributions are welcome! If you'd like to contribute to this project, please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them with clear commit messages.
- Push your changes to your fork.
- Create a pull request to the original repository's
main
branch.
This project is licensed under the MIT License. See the LICENSE file for details.
Special thanks to the React and Firebase communities for their fantastic tools and documentation. This project is inspired by the desire to learn and build real-time applications.
Happy chatting!