Skip to content

fskamau/comat

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

COMAT: AI-Visual Powered Comrade Marketplace πŸŽ“πŸš€

"Stop scrolling, start selling." > COMAT is a specialized C2C marketplace designed to solve the inefficiencies of informal university trade. By integrating Gemini Pro Vision AI, COMAT eliminates the "Brain Fatigue" and "Manual Entry Friction" found in traditional campus WhatsApp/Telegram groups.


🧠 The Engineering Challenge

Current campus resale relies on disorganized chat histories, leading to Information Overload and Decision Fatigue (Cognitive Load Theory). COMAT acts as a centralized "Guaranteed Buyer" poolβ€”providing an AI-searchable marketplace that ensures sellers get fair value and buyers find essentials without the mental exhaustion of combing through messages.

✨ Key Features

  • πŸ€– AI-Driven Listing (Gemini Pro Vision): Simply snap a photo. The AI identifies the item, suggests a category, and generates a draft price in Ksh, reducing listing time by ~70%.
  • πŸ’¬ Seamless WhatsApp Bridge: One-tap negotiation. Connects buyers and sellers directly through their preferred communication channel without losing context.
  • πŸ“ Secure Campus Logistics: Integrated location-aware features for standardized, safe meetup points within the university geography.
  • πŸ›‘οΈ Academic Trust: Secure Google Authentication restricted to university-affiliated accounts to ensure a vetted community.

πŸ› οΈ Tech Stack

  • Frontend: Flutter (Dart) - Cross-platform performance.
  • Backend: Firebase (Firestore NoSQL, Cloud Storage).
  • AI Engine: Google Generative AI (Gemini 1.5 Flash).
  • State Management: Provider/Clean Architecture.

βš™οΈ Installation & Setup

To protect project integrity, sensitive configurations (.env and google-services.json) have been scrubbed. Follow these steps to deploy your own instance:

1. Clone & Clean

git clone git@github.com:fskamau/comat.git
cd comat
flutter pub get

2. Environment Variables

Rename the .env.example file to .env and insert your API key:

GEMINI_API_KEY=your_key_here

3. Firebase Connection

  • Create a project on the Firebase Console.
  • Add an Android/iOS app.
  • Download google-services.json (Android) or GoogleService-Info.plist (iOS) and place them in the correct directories:
    • android/app/google-services.json
    • ios/Runner/GoogleService-Info.plist

4. Firestore Rules

Ensure your Firestore rules allow authenticated read/writes for the products and users collections.


πŸ“‚ Project Structure

lib/
β”œβ”€β”€ core/          # Theme, Constants, & Shared Utils
β”œβ”€β”€ data/          # Models, API Services (Gemini/Firebase)
β”œβ”€β”€ presentation/  # UI Components (Auth, Listings, Profile)
└── main.dart      # App Entry & .env Initialization

🀝 Contributing

Found a bug or want to add a feature (like AI-based price trending)? Open a PR!

πŸ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

About

COMAT: Where Campus Resale Meets Artificial Intelligence. πŸš€ Stop scrolling, start selling. AI-driven item recognition and secure campus logistics for the modern student.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors