{"id":22006141,"url":"https://github.com/yogesh-bhandare/mandai-backend-api","last_synced_at":"2026-04-12T00:02:13.189Z","repository":{"id":263180842,"uuid":"889057055","full_name":"yogesh-bhandare/mandai-backend-api","owner":"yogesh-bhandare","description":"Backend API supports Mandai by enabling real-time pricing, secure data management, and seamless market connectivity for farmers, vendors, and restaurants.","archived":false,"fork":false,"pushed_at":"2025-02-23T07:30:17.000Z","size":3803,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-03-23T06:43:26.503Z","etag":null,"topics":["aws","celery","django","django-rest-framework","postgresql","redis","selenium"],"latest_commit_sha":null,"homepage":"https://mandai.vercel.app/","language":"Jupyter Notebook","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/yogesh-bhandare.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":"2024-11-15T14:25:47.000Z","updated_at":"2025-02-23T07:33:42.000Z","dependencies_parsed_at":"2025-02-23T08:32:31.701Z","dependency_job_id":null,"html_url":"https://github.com/yogesh-bhandare/mandai-backend-api","commit_stats":null,"previous_names":["yogesh-bhandare/mandai-backend-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yogesh-bhandare/mandai-backend-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogesh-bhandare%2Fmandai-backend-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogesh-bhandare%2Fmandai-backend-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogesh-bhandare%2Fmandai-backend-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogesh-bhandare%2Fmandai-backend-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yogesh-bhandare","download_url":"https://codeload.github.com/yogesh-bhandare/mandai-backend-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yogesh-bhandare%2Fmandai-backend-api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265224095,"owners_count":23730336,"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":["aws","celery","django","django-rest-framework","postgresql","redis","selenium"],"created_at":"2024-11-30T01:09:28.150Z","updated_at":"2026-04-12T00:02:13.113Z","avatar_url":"https://github.com/yogesh-bhandare.png","language":"Jupyter Notebook","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Mandai Backend API\n\nThis repository contains the backend API for Mandai, a mobile app connecting farmers, vendors, and restaurants for seamless commodity trading. Built on Django, this backend powers real-time market updates, direct trade operations, and order management, integrating with a React Native frontend.\n\n### Overview\n\nMandai is a mobile app designed to empower farmers, vendors, and restaurants by enabling seamless trade of bulk commodities. It provides real-time market price updates, ensuring fair deals and eliminating exploitation by middlemen. Farmers can directly sell their produce to restaurants or vendors, maximizing profits, while restaurants benefit from transparent pricing and streamlined order management.\n\n### Motivation\n\nThe lack of transparency in agricultural trading leads to unfair pricing and reduced profits for farmers. Mandai empowers farmers, ensures fair market deals, and simplifies supply chain management for all stakeholders, fostering trust and efficiency.\n\n![Mandai Demo](mockups/home_hero.png)\n\n### Features\n   - **Live Price Updates:** Stay informed about current market rates with automated scraping.\n   - **Direct Marketplace:** Farmers can post and sell directly to restaurants or vendors.\n   - **Order \u0026 Payment Management:** Simplifies bulk trading for restaurants with secure APIs.\n   - **Notifications:** Alerts for price changes, orders, and listings via integrated services.\n\n### Tech Stack\n\n- **[Django](https://www.djangoproject.com/)** - Web framework for backend logic, APIs, and data management.\n- **[Celery](https://docs.celeryproject.org)** - Scheduled scraping tasks and asynchronous processing.\n- **[Redis](https://redis.io)** - Task queue management and caching for real-time updates.\n- **[Selenium](https://www.selenium.dev/)** - Automated web scraping of commodity prices from trusted sources.\n- **[PostgreSQL (Neon DB)](https://neon.tech/)** - Reliable database for user data, listings, and orders.\n- **[AWS S3](https://aws.amazon.com/s3/)** - Secure storage for commodity images and files.\n- **[Docker](https://www.docker.com/)** - Containerized deployment with GitHub Actions for CI/CD.\n- **[Python 3.8+](https://www.python.org/)** - Core programming language.\n- **React Native Frontend** - See [Mandai Frontend repo](https://github.com/yogesh-bhandare/mandai) for the client-side codebase.\n\n## Setup \u0026 Installation\n\n### Prerequisites\n- **[Python 3.8+](https://www.python.org/downloads/)** - Ensure Python is installed.\n- **[Redis Instance](https://redis.io/download)** - For task queuing and caching.\n- **[Git](https://git-scm.com/)** - Version control system.\n- **[Docker](https://www.docker.com/get-started)** - For containerized services (optional).\n\n1. **Clone the Repository**\n   ```bash\n   git clone https://github.com/yogesh-bhandare/mandai-backend-api.git\n   cd mandai-backend-api\n   ```\n\n2. **Install Dependencies**\n   ```bash\n   pip install --upgrade pip\n   pip install -r requirements.txt\n   ```\n\n3. **Redis Setup (Using Docker)**\n   Start Redis on redis://localhost:6170:\n   ```bash\n   docker compose -f compose.yaml up -d\n   ```\n\n4. **Environment Configuration**\n   Create a .env file in the project root:\n   ```bash\n   CELERY_BROKER_REDIS_URL=\"redis://localhost:6170\"\n   DEBUG=True\n   DATABASE_URL=\u003cyour-postgres-url\u003e\n   ```\n\n5. **Database Setup**\n   ```bash\n   python manage.py migrate\n   ```\n\n6. **Start Services**\n   In separate terminals:\n   ```bash\n   # Terminal 1: Django Server\n   python manage.py runserver\n   ```\n   ```bash\n   # Terminal 2: Celery Worker \u0026 Beat\n   celery -A mandai worker --beat\n   ```\n\n### Running App\nDownload and use the Mandai app to explore its features: [Download Mandai App](https://mandai-app.s3.us-east-1.amazonaws.com/download/Mandai.apk)\n\n![Mandai Demo](mockups/mockup.png)\n\n### License\nThis project is licensed under the MIT License. See the [LICENSE](LICENSE) file for details.\n\nFor the frontend codebase, visit [Mandai Frontend](https://github.com/yogesh-bhandare/mandai).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyogesh-bhandare%2Fmandai-backend-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyogesh-bhandare%2Fmandai-backend-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyogesh-bhandare%2Fmandai-backend-api/lists"}