{"id":26320911,"url":"https://github.com/istiak19/bloodbanker-server","last_synced_at":"2026-04-30T20:32:09.767Z","repository":{"id":278157340,"uuid":"919271604","full_name":"istiak19/BloodBanker-server","owner":"istiak19","description":null,"archived":false,"fork":false,"pushed_at":"2025-05-12T05:37:25.000Z","size":29,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-29T12:40:16.583Z","etag":null,"topics":["expressjs","jwt","mongodb","node"],"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/istiak19.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,"zenodo":null}},"created_at":"2025-01-20T04:51:16.000Z","updated_at":"2025-05-12T05:37:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"b97d8377-08cc-4952-be0b-9ae6ee215b81","html_url":"https://github.com/istiak19/BloodBanker-server","commit_stats":null,"previous_names":["istiak19/bloodbanker-server"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/istiak19/BloodBanker-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/istiak19%2FBloodBanker-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/istiak19%2FBloodBanker-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/istiak19%2FBloodBanker-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/istiak19%2FBloodBanker-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/istiak19","download_url":"https://codeload.github.com/istiak19/BloodBanker-server/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/istiak19%2FBloodBanker-server/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32476682,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"ssl_error","status_checked_at":"2026-04-30T13:12:06.837Z","response_time":57,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["expressjs","jwt","mongodb","node"],"created_at":"2025-03-15T16:15:34.927Z","updated_at":"2026-04-30T20:32:09.749Z","avatar_url":"https://github.com/istiak19.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🩸 BloodBanker - Backend  \n\n**BloodBanker** is an online platform designed to connect blood donors and recipients, enabling seamless and efficient blood donation management. It allows users to register as donors, browse available donation campaigns, and get in touch with nearby blood banks or individuals in need. The platform also offers features like user profiles, donation tracking, and volunteer opportunities. By making blood donation more accessible, organized, and impactful for communities, BloodBanker not only saves lives but also fosters a spirit of community support, encourages volunteerism, and strengthens social responsibility across society.\n\n## 📖 Table of Contents  \n\n- [Features](#-features)  \n- [Installation](#-installation)  \n- [Configuration](#-configuration)  \n- [Usage](#-usage)  \n- [API Endpoints](#-api-endpoints)  \n- [Dependencies](#-dependencies)  \n- [Troubleshooting](#-troubleshooting)  \n- [Contributing](#-contributing)  \n- [License](#-license)  \n\n## 📌 Key Features \n\n- **User Roles:** Manage donor, volunteer, and admin access securely.  \n- **Donation Management:** Schedule and track blood donations effortlessly.  \n- **Localized Search:** Find donors and recipients by district and upazila.  \n- **Secure Authentication:** Safeguard user data with JWT authentication.  \n- **Admin Dashboard:**  Monitor real-time user and donation statistics.  \n- **Blog Section:** Publish updates, health tips, and inspiring stories.  \n- **Donation Tracking:** Keep donation statuses updated and transparent \n- **Payment Integration:** Enable Stripe-powered donations for campaigns.  \n- **Responsive Design:** Enjoy a smooth experience on any device.  \n- **Community Impact:** Organize events and promote blood donation awareness.  \n\n## ⚙️ Installation  \n\n1. **Clone the repository**  \n   ```sh\n   git clone https://github.com/istiak19/BloodBanker-server\n   cd bloodbanker-backend\n   ```\n\n2. **Install dependencies**  \n   ```sh\n   npm install\n   ```\n\n3. **Set up environment variables** (See [Configuration](#-configuration))  \n\n4. **Start the server**  \n   ```sh\n   npm start\n   ```\n\n## 🔧 Configuration  \n\nCreate a `.env` file in the root directory and add the following environment variables:  \n\n```ini\nPORT=5000\nMONGO_URI=your_mongodb_connection_string\nJWT_SECRET=your_jwt_secret_key\nSTRIPE_SECRET_KEY=your_stripe_secret_key\n```\n\n## ▶️ Usage  \n\n- Run the server:  \n  ```sh\n  npm start\n  ```\n- The backend will be available at: `http://localhost:5000` (default port)  \n\n## 📌 API Endpoints  \n\n| Method | Endpoint            | Description                            |\n|--------|---------------------|----------------------------------------|\n| POST   | `/auth/signup`      | Register a new user                   |\n| POST   | `/auth/login`       | Authenticate user and return JWT      |\n| GET    | `/donors`           | Get a list of available donors        |\n| POST   | `/donation/schedule`| Schedule a blood donation             |\n| GET    | `/donation/status`  | Check donation status                 |\n| POST   | `/payments/donate`  | Process a payment via Stripe          |\n\n_(More endpoints can be documented based on your API structure.)_  \n\n## 📦 Dependencies  \n\nThe backend relies on the following packages:  \n\n- **Express** – Web framework for Node.js  \n- **MongoDB** – NoSQL database  \n- **JWT (jsonwebtoken)** – Authentication \u0026 authorization  \n- **Dotenv** – Load environment variables  \n- **CORS** – Enable Cross-Origin Resource Sharing  \n- **Stripe** – Payment processing  \n\n## 🛠 Troubleshooting  \n\n- If **MongoDB connection fails**, ensure `MONGO_URI` is correctly set in `.env`.  \n- If **CORS issues occur**, configure allowed origins in your Express setup.  \n- If **JWT authentication fails**, verify that `JWT_SECRET` is correctly set.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fistiak19%2Fbloodbanker-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fistiak19%2Fbloodbanker-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fistiak19%2Fbloodbanker-server/lists"}