{"id":24186207,"url":"https://github.com/bbqqvv/backend-education","last_synced_at":"2026-02-24T15:34:19.839Z","repository":{"id":271966018,"uuid":"913415157","full_name":"bbqqvv/Backend-Education","owner":"bbqqvv","description":null,"archived":false,"fork":false,"pushed_at":"2025-04-28T02:35:43.000Z","size":279,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-23T02:55:39.942Z","etag":null,"topics":["ai-chatbot","docker","germini-api","java","jwt","mongodb","smtp","spring-boot","thymeleaf"],"latest_commit_sha":null,"homepage":"","language":"Java","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/bbqqvv.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-07T16:33:07.000Z","updated_at":"2025-04-28T02:35:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"861f2c7b-06fd-4aad-89d1-e4c43273763f","html_url":"https://github.com/bbqqvv/Backend-Education","commit_stats":null,"previous_names":["bbqqvv/backend-education"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/bbqqvv/Backend-Education","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqqvv%2FBackend-Education","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqqvv%2FBackend-Education/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqqvv%2FBackend-Education/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqqvv%2FBackend-Education/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bbqqvv","download_url":"https://codeload.github.com/bbqqvv/Backend-Education/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bbqqvv%2FBackend-Education/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29788072,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-24T10:45:18.109Z","status":"ssl_error","status_checked_at":"2026-02-24T10:45:09.911Z","response_time":75,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["ai-chatbot","docker","germini-api","java","jwt","mongodb","smtp","spring-boot","thymeleaf"],"created_at":"2025-01-13T12:34:13.842Z","updated_at":"2026-02-24T15:34:19.824Z","avatar_url":"https://github.com/bbqqvv.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n# 📚 Backend - Hệ Thống Quản Lý Giáo Dục\n\nĐây là hệ thống backend cho nền tảng quản lý giáo dục, được xây dựng bằng **Spring Boot**, **WebFlux** và **MongoDB**, hỗ trợ lập trình phản ứng (reactive) và bảo mật bằng JWT.\n\n---\n\n## 🚀 Tính Năng Chính\n\n- 🔐 Xác thực \u0026 phân quyền bằng **JWT**\n- 👥 Quản lý **người dùng**, **vai trò** (Học sinh, Giáo viên)\n- 🧾 Theo dõi **lớp học**, **giảng dạy**, **lịch học**\n- ⚡ Hỗ trợ xử lý **bất đồng bộ** với Spring WebFlux\n- 🧩 Tích hợp cả **Reactive** và **Blocking** MongoDB Repositories\n- ☁️ Tích hợp gửi mail, Cloudinary và AI (Gemini API)\n\n---\n\n## 🛠️ Công Nghệ Sử Dụng\n\n| Thành phần       | Công nghệ                        |\n|------------------|----------------------------------|\n| Ngôn ngữ         | Java 17+                         |\n| Framework        | Spring Boot 3, WebFlux           |\n| Bảo mật          | Spring Security + JWT            |\n| Cơ sở dữ liệu    | MongoDB (Reactive + Blocking)    |\n| Quản lý dự án    | Maven                            |\n| Gửi mail         | SMTP qua Gmail                   |\n| Lưu trữ ảnh      | Cloudinary API                   |\n| Trí tuệ nhân tạo | Gemini API                       |\n\n---\n\n## 🏗️ Cấu Trúc Dự Án (Tổng quan)\n\n```\nsrc/\n├── config/                # Cấu hình bảo mật, JWT\n├── controller/            # API endpoints\n├── dto/                   # Các lớp chuyển dữ liệu\n├── entity/                # Định nghĩa dữ liệu MongoDB\n├── repository/            # Reactive + Blocking Repositories\n├── service/               # Business logic\n├── util/                  # Các hàm hỗ trợ (utility)\n├── application.yaml       # Cấu hình ứng dụng\n```\n\n---\n\n## ⚙️ Hướng Dẫn Chạy Dự Án\n\n### 📌 Yêu cầu hệ thống\n\n- Java 17+\n- Maven\n- MongoDB\n- (Tuỳ chọn) Docker\n\n### ▶️ Chạy bằng Maven\n\n```bash\n# Cài đặt và build\nmvn clean install\n\n# Hoặc chỉ build không chạy test\nmvn clean package -DskipTests\n\n# Chạy app\nmvn spring-boot:run\n```\n\n---\n\n### 🐳 Chạy bằng Docker (khuyến khích cho tester/dev)\n\n#### Bước 1: Tạo file `.env` (hoặc dùng file `.env.example`)\n\n```bash\ncp .env.example .env\n```\n\u003e 👉 Rồi chỉnh lại thông tin thật trong file `.env`\n\n```\n   Có thể sử dụng application.yaml để cấu hình, thêm các giá trị tương ứng trong file .env.example\n   vào biến môi trường trên máy tinh\n```\n#### Bước 2: Chạy Docker\n\n```bash\ndocker-compose up --build\n```\n\n---\n\n## 🧪 Kiểm Thử Với Postman\n\n- Base URL: `http://localhost:8080`\n- Đảm bảo bạn đã cấu hình `.env` đầy đủ trước khi test các API\n- Các endpoint cần JWT sẽ yêu cầu bạn đăng nhập để lấy token\n- Chỉ cần import file [Backend Edu.postman_collection.json](Backend%20Edu.postman_collection.json) có sẵn trong thư mục dự án vào Postman\n---\n\n## 📁 Biến Môi Trường\n\nCác biến được cấu hình qua `.env`:\n\n```env\nMAIL_USERNAME=\nMAIL_PASSWORD=\nJWT_SECRET_KEY=\nCLOUDINARY_CLOUD_NAME=\nCLOUDINARY_API_KEY=\nCLOUDINARY_API_SECRET=\nGEMINI_API_KEY=\n```\n\n\u003e ⚠️ Không commit file `.env` thật — chỉ commit `.env.example` để hướng dẫn\n\n---\n\n## 🤝 Đóng Góp\n\nMọi đóng góp đều được hoan nghênh! Hãy tạo pull request hoặc issue nếu bạn phát hiện lỗi hoặc muốn thêm tính năng mới.\n\n---\n\n## 📄 Giấy Phép\n\nMIT License\n```\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbqqvv%2Fbackend-education","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbbqqvv%2Fbackend-education","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbbqqvv%2Fbackend-education/lists"}