{"id":22366880,"url":"https://github.com/imransilvake/bayes-challenge","last_synced_at":"2026-04-15T18:31:32.453Z","repository":{"id":156179355,"uuid":"294194030","full_name":"imransilvake/bayes-challenge","owner":"imransilvake","description":"A React, Hooks and Redux (RTK) based application coding challenge from Bayes Esports.","archived":false,"fork":false,"pushed_at":"2020-09-10T10:18:12.000Z","size":418,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-26T15:54:25.784Z","etag":null,"topics":["bootstrap","hooks","moment","react","redux-toolkit","rest-api"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/imransilvake.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-09-09T18:18:56.000Z","updated_at":"2023-07-05T18:45:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"bbcce022-25d8-4434-925a-4d41ca7d177e","html_url":"https://github.com/imransilvake/bayes-challenge","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/imransilvake/bayes-challenge","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imransilvake%2Fbayes-challenge","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imransilvake%2Fbayes-challenge/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imransilvake%2Fbayes-challenge/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imransilvake%2Fbayes-challenge/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/imransilvake","download_url":"https://codeload.github.com/imransilvake/bayes-challenge/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/imransilvake%2Fbayes-challenge/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31854654,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"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":["bootstrap","hooks","moment","react","redux-toolkit","rest-api"],"created_at":"2024-12-04T18:15:48.361Z","updated_at":"2026-04-15T18:31:32.446Z","avatar_url":"https://github.com/imransilvake.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bayes Challenge\nA React, Hooks and Redux (RTK) based application coding challenge from Bayes Esports.\n\n\u003cp align=\"center\"\u003e\n\t\u003cimg src=\"preview.png\" width=\"100%\"\u003e\n\u003c/p\u003e\n\n\n## Content\n1. **Sign in**: Use the Fetch API to make a `POST` request to `http://localhost:8080/api/sign-in` to receive a token.\n   - The `POST` body should look like `{ \"email\": \"anything@anything.com\", \"password\": \"anything\" }`.\n   - _(bonus)_ This token expires in 30 seconds. When the API returns `401 - Unauthorized`, a modal should pop up allowing the user to sign in again.\n\n2. **Load data**: Use the token to send a `GET` request for e-sport match data from `http://localhost:8080/api/matches?page=0`.\n   - The token should be put in the `Authorization` header with a value of: `Bearer \u003ctoken\u003e`.\n   - Put the data into the Redux store.\n\n3. **Display data**: Create a new page to show the matches available from the Redux store.\n   - When a user arrives on the new page, the matches should be cleared from the Redux store and loaded again from the API\n   - The API response is paginated, not all matches are returned in a single request, add a \"load more\" button unless no more matches can be loaded.\n   - While loading data, display a loading symbol in the application.\n   - _(bonus)_ Filter the matches based on game title, add checkboxes to the interface to let users decide what they want to see.\n   - _(bonus)_ Load more matches when the user scrolls to the bottom of the screen, a.k.a. infinite scroll.\n\n4. **Save changes**: Send JSON data of a match in the body of a `POST` request to `http://localhost:8080/api/match`.\n   - Allow users to archive matches.\n\n\n## Libraries and Frameworks\n\n#### External \n- [X] [TypeScript](https://www.typescriptlang.org/)\n- [X] [Redux Toolkit](https://redux-toolkit.js.org/)\n- [X] [Redux Devtools Extension](https://github.com/zalmoxisus/redux-devtools-extension)\n- [X] [Bootstrap](https://react-bootstrap.github.io/)\n- [X] [FontAwesome](https://fontawesome.com/)\n\n\n## Information\n1. Execute `npm run server` to host the API on http://localhost:8080.\n2. Execute `npm install` in the root folder of the challenge.\n3. Execute `npm start` to host the React application on http://localhost:3000.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimransilvake%2Fbayes-challenge","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fimransilvake%2Fbayes-challenge","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fimransilvake%2Fbayes-challenge/lists"}