{"id":19831461,"url":"https://github.com/janubhav/medicords","last_synced_at":"2026-03-04T03:01:46.179Z","repository":{"id":286313762,"uuid":"961013815","full_name":"jAnubhav/Medicords","owner":"jAnubhav","description":"A web app that securely stores medical history in a paperless, tamper-proof format using blockchain technology.","archived":false,"fork":false,"pushed_at":"2025-07-18T06:50:34.000Z","size":1287,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-25T01:55:10.085Z","etag":null,"topics":["aptos","aptos-move","aptos-sdk","flask","flask-api","move","python","quart","react","reactjs","redis","redis-stack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","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/jAnubhav.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":"2025-04-05T15:11:24.000Z","updated_at":"2025-07-18T06:50:37.000Z","dependencies_parsed_at":"2025-04-05T17:38:50.641Z","dependency_job_id":null,"html_url":"https://github.com/jAnubhav/Medicords","commit_stats":null,"previous_names":["janubhav/medicords-combined"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jAnubhav/Medicords","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jAnubhav%2FMedicords","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jAnubhav%2FMedicords/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jAnubhav%2FMedicords/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jAnubhav%2FMedicords/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jAnubhav","download_url":"https://codeload.github.com/jAnubhav/Medicords/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jAnubhav%2FMedicords/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30070479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T01:03:42.280Z","status":"online","status_checked_at":"2026-03-04T02:00:07.464Z","response_time":59,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["aptos","aptos-move","aptos-sdk","flask","flask-api","move","python","quart","react","reactjs","redis","redis-stack"],"created_at":"2024-11-12T11:32:01.668Z","updated_at":"2026-03-04T03:01:46.174Z","avatar_url":"https://github.com/jAnubhav.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏥 Medicords – Your Health, Your Privacy in Your Hands (Secured by Blockchain)\n\n## 🌐 Introduction\n**Medicords** (short for *Medical Records*) is a secure and decentralized platform to manage medical histories on the **Aptos blockchain**. It eliminates reliance on fragile paper-based systems, prevents tampering or unauthorized access, and empowers users with full control over their health data.\n\n## 👥 User Roles\n\n### 🧑‍⚕️ Patients\n- **Login at**: `/patients/login`\n- **Functionality**:\n  - Register using **Aadhar ID** for unique and secure identification.\n  - **View your complete medical history** anytime through your personal dashboard.\n  - Access medical records securely with permissioned and blockchain-verified access.\n\n### 🏥 Hospitals\n- **Login at**: `/hospitals/login`\n- **Functionality**:\n  - Register using **National Identification Number (NIN)**.\n  - **Add new medical records** for any registered patient.\n  - Manage and track medical entries for multiple patients.\n  - All submissions are permanently recorded on the blockchain, ensuring no tampering or deletion.\n\n\n## 🔐 Key Features\n1. **Blockchain Security** for tamper-proof data integrity.\n2. **Permissioned Access** to health records anytime, anywhere.\n3. **Cost-Effective Storage** for hospitals and clinics.\n\n## 📸 Sample Interfaces\n\n**Hospital Dashboard**  \n\u003cimg src=\"./sample/Hospital Dashboard.png\" alt=\"Hospital Dashboard\"/\u003e\n\n**Tech Stack Overview**  \n\u003cimg src=\"./sample/TechStack.png\" alt=\"Tech Stack\" width=\"400\"/\u003e\n\n---\n\n## ⚙️ Tech Stack\n\n| Layer             | Technology                  |\n|------------------|-----------------------------|\n| **Blockchain**    | Aptos (Rust-based)          |\n| **Smart Contracts** | Move Programming Language |\n| **Backend/API**    | Python (Quart Framework)   |\n| **Blockchain SDK** | aptos-sdk for Python       |\n| **Frontend**       | ReactJS                    |\n| **Data Storage**   | RedisDB (Key-Value Store)  |\n\n---\n\n## 🚀 Getting Started\n\n### Clone the Repository\n```bash\ngit clone https://github.com/jAnubhav/Medicords\ncd Medicords\n```\n\n### Backend Setup\n📁 All backend-related files including smart contracts are in the backend/ directory.\nBefore running any Python commands, always navigate to the backend folder:\n\n```bash\ncd backend\n```\n\na. Install Python Dependencies\n```bash\npip install -r requirements.txt\n```\n\n\u003e 🧰 **Included in `requirements.txt`:**\n\u003e\n\u003e - `aptos-sdk` – Interact with the Aptos blockchain\n\u003e - `quart` – Async Python web framework\n\u003e - `quart-cors` – CORS support for Quart\n\u003e - `redis` – Communication with RedisDB\n\u003e - `bcrypt` – Secure password hashing\n\u003e - `pyjwt` – JSON Web Token handling\n\nb. Create Configuration File\nIn the backend folder, create a file named private_data.py:\n```python\nkey = \"Your Aptos Private Key\"\nsecret_key = \"Your Secret Key\"\n\nhost = \"Your Redis Host\"\nport = 6379  # Replace with your Redis port\npassword = \"Your Redis Password\"\n```\n\nc. Pre-Warm Aptos Accounts (Run Once)\na. Open controller.py:\n  1. Comment line 108\n  2. Uncomment line 106\n\nThen run:\n```bash\npython controller.py\n```\n\nOnce completed, revert the changes in controller.py and run again:\n```bash\npython controller.py\n```\n\nThis process pre-creates Aptos accounts and stores them in Redis for faster user onboarding.\n\nd. Start Backend Server\n```bash\npy main.py\n```\n\n💻 Frontend Setup\n```bash\ncd frontend\nnpm install\nnpm start\n```\n\nThis launches the ReactJS app that interacts with the Quart backend.\n\n📂 Folder Structure\n```bash\nMedicords/\n├── backend/\n│   ├── contracts/           # Move smart contracts\n│   ├── controller.py        # Account management service\n│   ├── main.py              # Quart backend entrypoint\n│   ├── private_data.py      # Local secrets (not versioned)\n│   └── ...\n├── frontend/                # React frontend\n└── sample/                  # Dashboard \u0026 tech stack images\n```\n\n📌 Notes\n1. Ensure your Aptos wallet is funded and configured for the desired network (devnet/testnet).\n2. Keep private_data.py secure and out of version control.\n3. Smart contracts are written in Move and located under backend/contracts/.\n\n🤝 Contributing\nPull requests and feature contributions are welcome. Please open an issue first to discuss major changes.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanubhav%2Fmedicords","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjanubhav%2Fmedicords","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjanubhav%2Fmedicords/lists"}