A secure, real-time messaging application developed using Flutter and Firebase. It features a modern UI and robust security rules.
- Secure Authentication: Email/Password login powered by Firebase Authentication.
- Real-Time Chat: Instant messaging using Cloud Firestore.
- Data Security: Custom Security Rules ensure only authenticated users can access messages.
- Timestamps: Messages display the sent time.
- Modern UI: Clean design with colored bubbles distinguishing sender and receiver.
- Identity Check: Automatic alignment of messages (Right for "Me", Left for "Others").
This project is open-source; however, for security and privacy reasons, the Firebase API Keys are NOT included in this repository.
To run this project on your local machine, you must connect it to your own Firebase project.
-
Clone the Repository:
git clone [https://github.com/BatteriVoltas/Chat-App.git]
-
Create Your Own Firebase Project: Go to the Firebase Console and create a new project.
-
Enable Authentication & Firestore:
- Authentication: Sign-in method -> Email/Password (Enable).
- Firestore Database: Create Database -> Start in production mode.
-
Connect Your Project (Terminal): Run the following command in the project root (Requires FlutterFire CLI):
flutterfire configure
-
Run the App:
flutter run
lib/auth_page.dart: Handles Login and Registration logic.lib/chat_page.dart: Manages the Chat UI and Firestore connection.lib/main.dart: Entry point and session management.