{"id":20229199,"url":"https://github.com/xoraus/livecricscore","last_synced_at":"2026-04-16T11:02:22.907Z","repository":{"id":218744215,"uuid":"747211484","full_name":"xoraus/LiveCricScore","owner":"xoraus","description":"API to fetch Live Cricket Score","archived":false,"fork":false,"pushed_at":"2024-01-23T14:55:25.000Z","size":8861,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-03T13:25:05.265Z","etag":null,"topics":["backend","java","jpa","spring","spring-w"],"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/xoraus.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-01-23T13:46:14.000Z","updated_at":"2024-01-23T14:59:05.000Z","dependencies_parsed_at":null,"dependency_job_id":"2c10575b-8b4c-44e0-be6f-e5332bb33c59","html_url":"https://github.com/xoraus/LiveCricScore","commit_stats":null,"previous_names":["xoraus/livecricscore"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/xoraus/LiveCricScore","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xoraus%2FLiveCricScore","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xoraus%2FLiveCricScore/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xoraus%2FLiveCricScore/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xoraus%2FLiveCricScore/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xoraus","download_url":"https://codeload.github.com/xoraus/LiveCricScore/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xoraus%2FLiveCricScore/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268043771,"owners_count":24186472,"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","status":"online","status_checked_at":"2025-07-31T02:00:08.723Z","response_time":66,"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":["backend","java","jpa","spring","spring-w"],"created_at":"2024-11-14T07:34:48.879Z","updated_at":"2025-10-16T01:31:58.799Z","avatar_url":"https://github.com/xoraus.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# 🏏 Live Cricket Score API - Spring Boot Backend 🚀\n\n## 📋 Requirement\n\nThe Live Cricket Score API is a Spring Boot backend project designed to fulfill the need for real-time updates on cricket matches. The system provides information such as live scores, point tables for the CWC 2023, and details about all ongoing matches.\n\n## Demo\n\n![LiveCricScore](Demo.gif)\n\n## 🎨 Design\n\n### Controllers\n\nThe primary controller, `CricketController`, handles various endpoints for fetching live match scores, CWC 2023 point tables, and a list of all matches.\n\n```java\n@RestController\n@RequestMapping(\"/cricket\")\n@CrossOrigin(\"*\")\npublic class CricketController {\n    // ... (controller methods)\n}\n```\n\n### Entity\n\nThe `Match` entity encapsulates the details of a cricket match, including team information, scores, live text, match link, and status.\n\n```java\n@Entity\n@Table(name = \"cricket_match\")\npublic class Match {\n    // ... (fields)\n\n    @Enumerated\n    private MatchStatus status;\n\n    private Date date = new Date();\n\n    // ... (methods)\n}\n```\n\n### Enum\n\nThe `MatchStatus` enum defines the possible statuses of a cricket match - either completed or live.\n\n```java\npublic enum MatchStatus {\n    COMPLETED, LIVE\n}\n```\n\n### Repositories\n\nThe `MatchRepo` interface, extending `JpaRepository`, provides CRUD operations for the `Match` entity.\n\n```java\npublic interface MatchRepo extends JpaRepository\u003cMatch, Integer\u003e {\n    Optional\u003cMatch\u003e findByTeamHeading(String teamHeading);\n}\n```\n\n### Services\n\nThe `CricketService` interface outlines methods to retrieve live match scores, CWC 2023 point tables, and details of all matches.\n\n```java\npublic interface CricketService {\n    List\u003cMatch\u003e getLiveMatchScores();\n    List\u003cList\u003cString\u003e\u003e getCWC2023PointTable();\n    List\u003cMatch\u003e getAllMatches();\n}\n```\n\n## 🚀 Implementation\n\n### Get Live Match Scores 📊\n\n```java\n@GetMapping(\"/live\")\npublic ResponseEntity\u003c?\u003e getLiveMatchScores() throws InterruptedException {\n    System.out.println(\"Getting live match\");\n    return new ResponseEntity\u003c\u003e(this.cricketService.getLiveMatchScores(), HttpStatus.OK);\n}\n```\n\n### Get CWC 2023 Point Table 🏆\n\n```java\n@GetMapping(\"/point-table\")\npublic ResponseEntity\u003c?\u003e getCWC2023PointTable() {\n    return new ResponseEntity\u003c\u003e(this.cricketService.getCWC2023PointTable(), HttpStatus.OK);\n}\n```\n\n### Get All Matches 📅\n\n```java\n@GetMapping\npublic ResponseEntity\u003cList\u003cMatch\u003e\u003e getAllMatches() {\n    return new ResponseEntity\u003c\u003e(this.cricketService.getAllMatches(), HttpStatus.OK);\n}\n```\n\n## 🌐 Cross-Origin Resource Sharing\n\nThe `@CrossOrigin(\"*\")` annotation in the `CricketController` allows for cross-origin resource sharing.\n\nFeel free to explore and integrate this API to meet the requirements of fetching live cricket scores and tournament statistics. Stay updated with real-time cricket action! 🏏✨","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxoraus%2Flivecricscore","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxoraus%2Flivecricscore","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxoraus%2Flivecricscore/lists"}