{"id":27498286,"url":"https://github.com/ledgermall/ledgermall","last_synced_at":"2026-05-09T15:22:49.825Z","repository":{"id":288057559,"uuid":"966642934","full_name":"LedgerMall/LedgerMall","owner":"LedgerMall","description":"LedgerMall is an open-source digital commerce platform designed to leverage blockchain technology for secure, multi-crypto transactions. This web-based marketplace aims to provide a user-friendly experience while empowering administrators with real-time analytics and streamlined management tools.","archived":false,"fork":false,"pushed_at":"2025-04-15T09:46:40.000Z","size":208,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-15T10:55:39.522Z","etag":null,"topics":["blockchain","cryptocurrency","ecommerce","flask","mongodb","python","website"],"latest_commit_sha":null,"homepage":"","language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/LedgerMall.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null}},"created_at":"2025-04-15T08:31:22.000Z","updated_at":"2025-04-15T09:50:31.000Z","dependencies_parsed_at":"2025-04-15T11:05:40.329Z","dependency_job_id":null,"html_url":"https://github.com/LedgerMall/LedgerMall","commit_stats":null,"previous_names":["ledgermall/ledgermall"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LedgerMall%2FLedgerMall","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LedgerMall%2FLedgerMall/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LedgerMall%2FLedgerMall/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/LedgerMall%2FLedgerMall/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/LedgerMall","download_url":"https://codeload.github.com/LedgerMall/LedgerMall/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249326181,"owners_count":21251735,"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":["blockchain","cryptocurrency","ecommerce","flask","mongodb","python","website"],"created_at":"2025-04-17T08:29:51.380Z","updated_at":"2026-05-09T15:22:49.763Z","avatar_url":"https://github.com/LedgerMall.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![License: AGPL v3 + Custom Terms](https://img.shields.io/badge/License-AGPL%20v3%20+%20Attribution%20%2F%20NonCommercial-blue.svg)](https://www.gnu.org/licenses/agpl-3.0)\n\n\n# 🧾 LedgerMall – Decentralized Digital Commerce\n\n**LedgerMall** is a secure, crypto-powered e-commerce platform built with **Python**, **Flask**, and **MongoDB**. It supports multiple cryptocurrencies for product purchases, real-time admin analytics, built-in support chat, and wallet integration—making it a future-forward digital shopping experience.\n\n---\n\n## 🚀 Features at a Glance\n\n- 🔐 **User Authentication** — Sign up, login, hashed password security  \n- 🛍️ **Product Marketplace** — Category filters, detail pages, reviews  \n- 💼 **In-App Wallets** — Manual deposits \u0026 crypto-based balance tracking  \n- 🧾 **Cart \u0026 Checkout** — Add/remove items, pay via CoinPayments API  \n- 🧑‍💼 **Admin Panel** — Add/edit/delete products, view metrics, manage messages  \n- 💬 **Support System** — Message-based user queries \u0026 admin replies  \n- 📊 **Dashboard Metrics** — Orders, revenue, user activity  \n- ⭐ **Product Reviews** — Users can rate \u0026 review products  \n- 🔎 **Search \u0026 Filters** — Real-time product search \u0026 price filtering\n\n---\n\n## 📁 Project Structure\n\n```\nLedgerMall/\n├── app.py            \n├── db/                 \n│   ├── products.py   \n│   ├── users.py         \n├── config.py           \n├── config.yaml        \n├── templates/          \n└── requirements.txt     \n```\n\n---\n\n## 📷 Screenshots\n\n| Marketplace | Admin Panel |\n|-------------|-------------|\n| ![Marketplace Screenshot](./assets/marketplace.jpg) | ![Admin Panel Screenshot](./assets/admin.jpg) |\n\n---\n\n## 🛠️ Setup Instructions\n\n### 1️⃣ Clone the Repository\n\n```bash\ngit clone https://github.com/ledgermall/ledgermall.git\ncd ledgermall\n```\n---\n\n### 2️⃣ Configure APIs \u0026 MongoDB\n\nEnsure MongoDB is running locally or use a remote cluster. Create a database called `ledgermall` with two collections:\n- `users`\n- `products`\n\nConfigure the [config](config.yaml) file and populate with the following:\n\n```python\nSECRET_KEY = \"your-secret-key\"\nCP_PUBLIC_KEY = \"your-coinpayments-public-key\" \nCP_PRIVATE_KEY = \"your-coinpayments-private-key\"\nBUYER_EMAIL = \"buyer@example.com\"\n\nCOIN_MAPPING = {\n    \"btc\": {\"currency2\": \"BTC\", \"address\": \"your-btc-address\"},\n    \"ltc\": {\"currency2\": \"LTC\", \"address\": \"your-ltc-address\"},\n    ...\n}\n```\n\u003e ⚠️ Keep this file secure and don’t commit it publicly.\n\n---\n\n### 3️⃣ Install Dependencies \u0026 Run WebApp\n\n```bash\npip install -r requirements.txt\npython app.py\n```\n\n\u003cdetails\u003e\n\u003csummary\u003e📦 Click to see required packages\u003c/summary\u003e\n\n```txt\nFlask\nflask-login\nflask-bcrypt\npymongo\npycoinpayments\n```\n\u003c/details\u003e\n\n---\n\n## 🔐 Admin Setup (Manual via MongoDB)\n\nCreate an admin user directly in the `users` collection. Sample document:\n\n```json\n{\n  \"username\": \"admin\",\n  \"email\": \"admin@example.com\",\n  \"password\": \"\u003cbcrypt_hashed_password\u003e\",\n  \"is_admin\": true\n}\n```\n\nTo generate a bcrypt hash:\n\n```python\nfrom flask_bcrypt import Bcrypt\nbcrypt = Bcrypt()\nprint(bcrypt.generate_password_hash(\"yourpassword\").decode())\n```\n\n\u003e ⚠️ There’s no web interface to set up admin yet. Use MongoDB Compass or CLI.\n\n---\n\n## 🔒 Security Practices\n\n- Use **HTTPS** in production  \n- Keep **MongoDB secure** and password-protected  \n- **Environment variables** for secrets (avoid plain `config.py` in production)  \n- Validate \u0026 sanitize all user inputs  \n- Restrict admin routes via `is_admin` checks\n\n---\n\n## 📊 Future Add-ons (Roadmap Ideas)\n\n- 📨 Telegram or email order notifications  \n- 🆔 Verified user tiers (KYC)  \n- 🧾 Auto-generated PDF invoices  \n- 📱 Mobile-friendly UI/UX  \n- 🪝 REST API integration for external platforms or Telegram bots\n\n---\n\n## 🤝 Contribution Guide\n\nWe welcome your contributions! Here's how:\n\n1. Fork the repo  \n2. Create your feature branch (`git checkout -b feature/cool-feature`)  \n3. Commit your changes  \n4. Push to the branch (`git push origin feature/cool-feature`)  \n5. Open a Pull Request\n\n---\n\n## 🛠 Built With\n\n| Tech Stack | Description |\n|------------|-------------|\n| **Python \u0026 Flask** | Backend framework |\n| **MongoDB** | NoSQL database |\n| **Jinja2** | Templating engine |\n| **CoinPayments API** | Crypto payment gateway |\n| **HTML/CSS/JS** | Frontend foundation |\n\n---\n\n## 📄 License\n\nThis project is licensed under the [AGPL License](LICENSE).\n\n- You are free to modify, distribute, and use the code **for non-commercial purposes only**.\n- Any modifications and distributions of the project must also be licensed under the AGPL.\n- You may **not** use this code for commercial purposes without explicit permission.\n- If you use this code in a publicly accessible system, you must make the source code available to the users of that system.\n- **Credits:** Please give appropriate credit to the original author, **Samrat Talukdar**.\n\nFeel free to make it your own, but please ensure that the AGPL license terms and the non-commercial restriction are followed.\n\n---\n\n## Crafted with 💻, ☕, and a bit of ₿itcoin, by [Samrat](github.com/ogsamrat)\u003c3  \n\u003e _LedgerMall isn't just a store — it's your step into a decentralized future._  \n\u003e Buy, sell, and grow securely with crypto at your fingertips. 🛒💸🛡️\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledgermall%2Fledgermall","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fledgermall%2Fledgermall","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fledgermall%2Fledgermall/lists"}