{"id":20810613,"url":"https://github.com/anshika010/talkify","last_synced_at":"2025-09-03T17:42:04.828Z","repository":{"id":203795703,"uuid":"689432270","full_name":"ANSHIKA010/Talkify","owner":"ANSHIKA010","description":"A Real-time chat application designed using flutter and firebase.","archived":false,"fork":false,"pushed_at":"2024-11-15T13:08:35.000Z","size":322,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-18T14:32:51.671Z","etag":null,"topics":["dart","firebase-auth","firebase-database","firebasecloudfunctions","flutter","pubsec"],"latest_commit_sha":null,"homepage":"","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ANSHIKA010.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-09T19:35:19.000Z","updated_at":"2024-11-15T13:08:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"c874c557-5e97-41a1-b11a-860625bcfbd9","html_url":"https://github.com/ANSHIKA010/Talkify","commit_stats":null,"previous_names":["anshika010/talkify"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ANSHIKA010%2FTalkify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ANSHIKA010%2FTalkify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ANSHIKA010%2FTalkify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ANSHIKA010%2FTalkify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ANSHIKA010","download_url":"https://codeload.github.com/ANSHIKA010/Talkify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243158800,"owners_count":20245662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dart","firebase-auth","firebase-database","firebasecloudfunctions","flutter","pubsec"],"created_at":"2024-11-17T20:26:25.749Z","updated_at":"2025-03-12T04:29:38.700Z","avatar_url":"https://github.com/ANSHIKA010.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Talkify\n\nA real-time chat application built using Flutter and various services of Firebase, such as, Firebase Authentication, Cloud Storage, Firestore Database, CLoud Functions, etc. \u003c/br\u003e\nThe application allowed users to authenticate through their email and create a customized account. The app is a typical chat application where users can send messages and images to other registered users.\n\n## Features\n\n- **Real-time Messaging**: Enjoy instant messaging with real-time updates.\n- **User Authentication**: Securely authenticate users using Firebase Authentication.\n- **Firestore Database Integration**: Store and retrieve chat messages in real-time using Firebase Cloud Firestore.\n- **Cloud Storage**: Help to send images via chat and also allow users to customize their profile photo.\n- **Flutter UI**: Intuitive and responsive user interface built with Flutter for a smooth user experience.\n- **Lexical Seach**: To find specific users amongst all registered users.\n\n\n## User Flow\n![UserFlow](https://github.com/ANSHIKA010/Talkify/assets/99765179/36c3f64c-59c9-4593-bdfd-18784f123b79)\n\n## System Design\n\n### 1. System Architecture\nThe system consists of the following major components:\n\n- Client Application: Built with Flutter, the client app handles the user interface and interactions, including sending and receiving messages and images.\n- Firebase Authentication: Manages user authentication and secure login using email and password.\n- Firestore Database: A NoSQL database that stores user profiles, messages, and other chat-related data in real-time.\n- Firebase Cloud Storage: Stores media files such as profile pictures and images shared in chat.\n- Cloud Functions: Used for server-side logic, such as sending notifications, handling complex queries, and other backend operations.\n\n### 2. Component Interaction\n\n- User Authentication: Users register or log in using their email credentials. Firebase Authentication manages secure sessions.\n- Real-time Messaging: Messages are sent and received in real-time using Firestore, where each conversation is stored as a collection of messages.\n- Media Sharing: Images sent in chat are uploaded to Firebase Cloud Storage, and their URLs are stored in Firestore.\n- Profile Management: Users can update their profiles, including their profile pictures, which are stored in Cloud Storage.\n\n### 3. Data Flow\n\n- Auth Section:\n  - User opens the app -\u003e Check if the user is logged in.\n  - If not logged in -\u003e Redirect to Login or Registration page.\n  - Upon successful login -\u003e Redirect to the Dashboard.\n- On Dashboard:\n  - Access Conversations, Users, or Profile sections.\n  - Start a new conversation or continue an existing one.\n- Messaging:\n  - Send text messages or images.\n  - Messages are displayed in real-time.\n\n## Database Schema\n### 1. Users Collection\n```\nDocument ID: UserID (auto-generated)\nFields:\nemail: String - User's email address.\nusername: String - User's display name.\nprofileImageUrl: String - URL of the profile picture stored in Cloud Storage.\nstatus: String - User status (online, offline).\ncreatedAt: Timestamp - Account creation date.\nlastLogin: Timestamp - Last login date.\n```\n### 2. Conversations Collection\n```\nDocument ID: ConversationID (auto-generated)\nFields:\nparticipants: Array - List of user IDs participating in the conversation.\nlastMessage: String - Preview of the last message sent.\nlastMessageTimestamp: Timestamp - Time when the last message was sent.\n```\n### 3. Messages Subcollection (under Conversations)\n```\nDocument ID: MessageID (auto-generated)\nFields:\nsenderId: String - User ID of the sender.\ntext: String - Content of the text message (if any).\nimageUrl: String - URL of the image in Cloud Storage (if any).\ntimestamp: Timestamp - Time when the message was sent.\n```\n### 4. Images Collection (optional, if storing separately)\n```\nDocument ID: ImageID (auto-generated)\nFields:\nuploadedBy: String - User ID who uploaded the image.\nimageUrl: String - URL of the image in Cloud Storage.\nuploadedAt: Timestamp - Time when the image was uploaded.\n```\n## Application Interface (Screen Shots)\n\n\u003cspan\u003e\u003cimg src=\"https://github.com/user-attachments/assets/f758ed77-eae8-40dd-b34c-525457c56798\" width=\"30%\"/\u003e\u003c/span\u003e\n\u003cspan\u003e\u003cimg src=\"https://github.com/user-attachments/assets/53fd2f87-9e6a-48dd-843e-7356da220616\" width=\"30%\"/\u003e\u003c/span\u003e\n\u003cspan\u003e\u003cimg src=\"https://github.com/user-attachments/assets/b334a5ea-5804-43cc-9537-bcdd33c0e481\" width=\"30%\"/\u003e\u003c/span\u003e\n\u003cspan\u003e\u003cimg src=\"https://github.com/user-attachments/assets/e1fbd729-1d75-4f52-9e38-3a090de51d6a\" width=\"30%\"/\u003e\u003c/span\u003e\n\u003cspan\u003e\u003cimg src=\"https://github.com/user-attachments/assets/989a0103-a454-4f93-aa97-f0db076a7eef\" width=\"30%\"/\u003e\u003c/span\u003e\n\u003cspan\u003e\u003cimg src=\"https://github.com/user-attachments/assets/b358e2b3-ade6-40ad-af07-35f584b42f4e\" width=\"30%\"/\u003e\u003c/span\u003e\n\n# Project Setup\nFollow the instruction below to setup the project on your device.\n\n### Prerequisites\n\nBefore you begin, ensure you have met the following requirements:\n\n- Flutter installed on your local machine. [Install Flutter](https://flutter.dev/docs/get-started/install)\n- Firebase account for setting up Firestore and Authentication. [Firebase Console](https://console.firebase.google.com/)\n\n### Installation\n\n1. Clone the repository:\n\n   ```bash\n   git clone https://github.com/ANSHIKA010/talkify.git\n  \n2. Move to the created directory.\n   ```bash\n   cd talkify\n\n3. Install Dependencies\n   ```bash\n   flutter pub get\n\n4. Setup Firebase\n   - Create a new project on the [Firebase Console](https://console.firebase.google.com).\n   - Add an Android and/or iOS app to your Firebase project.\n   - Configure your project using [flutterfire](https://firebase.google.com/docs/flutter/setup?platform=android)\n  \n5. Configure and Deploy Cloud Functions\n   - Activate the service in firebase project for google cloud functions.\n   - Use the functions designed --\u003e [File containg functions](https://github.com/ANSHIKA010/Talkify_cloud_functions/blob/02c1b2c4d43c236e54f4fba906efb945e7ad6b7e/functions/index.js)\n   - Deploy those function on firebase.\n\n6. Run the app\n   ```bash\n   flutter run\n  \n\n## Contributing\n\nContributions are welcomed! Please follow the [contribution guidelines]() for details.\n\n# Acknowledgments\n\n![FLutter](https://github.com/ANSHIKA010/Talkify/assets/99765179/74b9c34d-2fc2-4b7d-9ee9-145cd77e0b23) ![Firebase](https://github.com/ANSHIKA010/Talkify/assets/99765179/6b5faedd-7aa6-4a1a-a480-65821a196200)\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshika010%2Ftalkify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fanshika010%2Ftalkify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fanshika010%2Ftalkify/lists"}