{"id":18398846,"url":"https://github.com/mongodb-developer/atlas-search-soccer","last_synced_at":"2025-04-07T05:33:51.456Z","repository":{"id":42376074,"uuid":"501586464","full_name":"mongodb-developer/atlas-search-soccer","owner":"mongodb-developer","description":null,"archived":true,"fork":false,"pushed_at":"2024-09-18T15:30:18.000Z","size":21055,"stargazers_count":16,"open_issues_count":0,"forks_count":10,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-02T01:14:16.651Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mongodb-developer.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}},"created_at":"2022-06-09T09:24:20.000Z","updated_at":"2024-12-07T01:51:51.000Z","dependencies_parsed_at":"2023-01-23T17:45:06.795Z","dependency_job_id":null,"html_url":"https://github.com/mongodb-developer/atlas-search-soccer","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-search-soccer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-search-soccer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-search-soccer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mongodb-developer%2Fatlas-search-soccer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mongodb-developer","download_url":"https://codeload.github.com/mongodb-developer/atlas-search-soccer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247601378,"owners_count":20964861,"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":[],"created_at":"2024-11-06T02:24:37.283Z","updated_at":"2025-04-07T05:33:46.436Z","avatar_url":"https://github.com/mongodb-developer.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Notice: Repository Deprecation\nThis repository is deprecated and no longer actively maintained. It contains outdated code examples or practices that do not align with current MongoDB best practices. While the repository remains accessible for reference purposes, we strongly discourage its use in production environments.\nUsers should be aware that this repository will not receive any further updates, bug fixes, or security patches. This code may expose you to security vulnerabilities, compatibility issues with current MongoDB versions, and potential performance problems. Any implementation based on this repository is at the user's own risk.\nFor up-to-date resources, please refer to the [MongoDB Developer Center](https://mongodb.com/developer).\n\n\n\u003ch1 align=\"center\"\u003eAtlas Search Soccer\u003c/h1\u003e\n\n\u003ch2 align=\"center\"\u003eBuild your Soccer Dream Team with MongoDB Atlas Search\u003c/h2\u003e\n\nEvery four years, for the sake of blending in, I pretend to know soccer. When the World Cup is on, I’m overwhelmed by the exuberant fans with colorful soccer jerseys. Jerseys with unfamiliar names from far away places. I recognize Messi and Ronaldo, but the others …? Mkhitaryan, Szczęsny, Großkreutz? How can I look up their stats to feign familiarity when I have no idea how to spell their names?\n\nWell, now there's this app for that. \u003ca href=\"https://www.atlassearchsoccer.com\"\u003e\u003cb\u003eAtlas Search Soccer\u003c/b\u003e\u003c/a\u003e is an interactive Atlas Search tutorial and instant sports bar credibility builder.\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"readmeImages/soccerDemo.gif\" width=\"400\"  /\u003e\n\u003c/p\u003e\n\nTeaming up MongoDB Atlas Search with an extensive player dataset, you can scout across the over 22,000 players in the database based on a variety of search parameters and data types:\n\n- player name\n- player position\n- nationality\n- club\n- skill level\n- age\n- salary\n\nEquipped with only a search box, sliders and checkboxes, find the world's best players with the most impossible-to-spell names to build out your own Soccer Dream Team. Autocomplete, wildcard, and filters to find Ibrahimović, Błaszczykowski, and Szczęsny? No problem!\n\nAs you interact with the application, you'll see the `$search` operator in a MongoDB aggregation pipeline live in-action!\n\nWhen you pick a footballer for your team, he is written to local storage on your device. That way, your Dream Team stays warmed up and on the pitch even after you close your browser.\n\n\u003ch4\u003eSkills and Drills\u003c/h4\u003e\n\n- search operators:\n  - text\n  - wildcard\n  - autocomplete\n  - range\n- fuzzy matching\n- indexes and analyzers\n- compound operator\n- relevance based scoring\n- custom score modifiers\n- filters, facets and counts\n\nSo give it a shot, and you'll be an Atlas Search pro in no time!\n\n\u003ch4 align=\"center\"\u003e \u003cspan \u003e\u003ca href=\"https://www.atlassearchsoccer.com\"\u003ewww.atlassearchsoccer.com\u003c/a\u003e\u003c/span\u003e  ⚽ \u003c/h4\u003e\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"readmeImages/football-is-life-ted-lasso.gif\" width=\"400\"  /\u003e\n\u003c/p\u003e\n\u003ch6\u003eGame Notes 📝\u003c/h6\u003e\n\u003cp\u003eThis application hosted entirely by MongoDB Atlas was created using:\u003c/p\u003e\n\n- React\n- Tailwind CSS\n- Atlas App Services for backend HTTPs endpoints and webhooks\n- A [FIFA22 player dataset](https://www.kaggle.com/datasets/bryanb/fifa-player-stats-database)\n\n\u003cp\u003e\u003cem\u003eCurrently this app is not suitable for mobile, but feel free to send a PR.\u003c/em\u003e 😊\u003c/p\u003e\n\u003chr\u003e\n\n\u003ch4\u003eWant to play in your own stadium? Here's how to build Atlas Search Soccer on your own free cluster.\n\u003c/h4\u003e\n\nAtlas Search Soccer runs on a very streamlined game plan where MongoDB Atlas is the MVP.\n**No additional servers or software needed. No need to keep data in sync. Everything is done in MongoDB Atlas.**\n\n\u003cp float=\"left\"\u003e\n    \u003cimg src=\"readmeImages/Architecture.png\" width=\"750\"  /\u003e\n\u003c/p\u003e\n\n\u003ch3\u003ePrerequisites\u003c/h3\u003e\n\n- A MongoDB Atlas account. Get one for free \u003ca href=\"https://www.mongodb.com/cloud/atlas\"\u003ehere.\u003c/a\u003e\n- A recent version of Node.js and npm.\n- Extensive worldwide player dataset (players22.json) provided in the data folder.\n- (Recommended) \u003ca href=\"https://www.mongodb.com/try/download/compass\"\u003eMongoDB Compass - GUI\u003c/a\u003e\n\nIt is also included in this repo's data folder as \u003cpre\u003eplayers22.json\u003c/pre\u003e\n\n---\n\n\u003ch6\u003eTo Run This Application....\u003c/h6\u003e\n\n1. Clone the repo.\n2. Navigate inside `atlas-search-soccer` directory.\n3. Run \u003ccode\u003enpm install\u003c/code\u003e .\n4. Run \u003ccode\u003enpm start \u003c/code\u003e .\n\n---\n\n\u003ch6\u003ePrepare Data\u003c/h6\u003e\n\nLoad data to Atlas cluster:\n\n\u003cul\u003e\n\u003cli\u003edatabase: \u003ccode\u003esoccer\u003c/code\u003e\u003c/li\u003e\n\u003cli\u003ecollection: \u003ccode\u003eplayers22\u003c/code\u003e\u003c/li\u003e\n\u003c/ul\u003e\n\n\u003ch2\u003eReact Components....\u003c/h2\u003e\n\n  \u003cimg src=\"/readmeImages/Main.png\" width=\"500\" /\u003e\n  \u003cimg src=\"/readmeImages/SearchResults.png\" width=\"550\" /\u003e \n  \u003cimg src=\"readmeImages/Filters.png\" width=\"550\" /\u003e\n\n\u003ch2\u003eUsing Atlas App Services as Your Serverless Backend....\u003c/h2\u003e\n\u003cp\u003eAtlasSearchSoccer uses HTTP services in App Services to create 5 APIs to allow you to query for your player data over HTTP: \u003c/p\u003e\n\nThe data is queried from `useHomeFetch.js` in the `hooks` directory.\nHere you'll find the endpoints for the backend search queries using the `$search` operator:\n\n- `BasicSearchEndPoint`\n- `WildcardEndPoint`\n- `AutocompleteEndpoint`\n- `AdvancedSearchEndPoint`\n- `FacetsEndPoint`\n  Find the code for these webhooks in the \u003ccode\u003eAppServices\u003c/code\u003e folder.\u003c/p\u003e\n\n\u003chr\u003e\n\n\u003cp\u003eIf you have any questions or feedback about this repo, feel free to create an Issue or PR in this repo or reach out to me on Twitter @YouOldMaid.\u003c/p\u003e\n\n\u003cp\u003eAlso please join our online \u003ca href=\"https://developer.mongodb.com/community/forums/\"\u003eMongoDB Community\u003c/a\u003e to interact with our product and engineering teams along with thousands of other MongoDB and Realm users. \n\u003cbr/\u003e\u003cbr/\u003eHave fun and happy coding!\u003c/p\u003e\u003c/h4\u003e\n\n## Disclaimer\n\nUse at your own risk; not a supported MongoDB product\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Fatlas-search-soccer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmongodb-developer%2Fatlas-search-soccer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmongodb-developer%2Fatlas-search-soccer/lists"}