{"id":24882847,"url":"https://github.com/dobschal/soccer-manager","last_synced_at":"2025-03-27T08:21:21.886Z","repository":{"id":190134083,"uuid":"668131176","full_name":"dobschal/soccer-manager","owner":"dobschal","description":null,"archived":false,"fork":false,"pushed_at":"2023-08-28T15:49:59.000Z","size":35988,"stargazers_count":1,"open_issues_count":50,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-01T13:16:30.100Z","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":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dobschal.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}},"created_at":"2023-07-19T05:20:14.000Z","updated_at":"2023-08-23T07:52:44.000Z","dependencies_parsed_at":"2023-08-23T11:29:36.124Z","dependency_job_id":"38598815-9fab-43ba-8a8d-f5445ca93c07","html_url":"https://github.com/dobschal/soccer-manager","commit_stats":null,"previous_names":["dobschal/soccer-manager"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobschal%2Fsoccer-manager","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobschal%2Fsoccer-manager/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobschal%2Fsoccer-manager/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dobschal%2Fsoccer-manager/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dobschal","download_url":"https://codeload.github.com/dobschal/soccer-manager/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245806459,"owners_count":20675300,"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":"2025-02-01T13:16:34.705Z","updated_at":"2025-03-27T08:21:21.862Z","avatar_url":"https://github.com/dobschal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Soccer Simulation\n![deployment](https://github.com/dobschal/soccer-manager/actions/workflows/deploy.yml/badge.svg)\n\nYou need to have a MySQL database running and NodeJS installed.\n\nInside the `src` folder various scripts are available:\n* `api.js` to start the web server with API\n* `migrate-database.js` to setup the database tables\n* `prepare-season.js` to fill the database with bot teams and games to play\n* `play-game-day.js` calculate the results for the next game day\n\nA UI is implemented. When you run the API, you can open the UI on http://localhost:3000\n\n\u003e !!! When starting the API with `api.js`, the other scripts are executed via CRON job automatically\n\n## Run it\nRun the scripts as described here:\n```bash\n# Install all dependencies\nnpm install\n\n# Prepare database\nnode src/migrate-database.cmd.js\n\n# Setup teams and games\nnode src/prepare-season.cmd.js\n\n# calculate the games for the current gameday ---\u003e repeat for each game day to play\nnode src/play-game-day.cmd.js\n\n# Start game UI on port 3000\nnpm start\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdobschal%2Fsoccer-manager","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdobschal%2Fsoccer-manager","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdobschal%2Fsoccer-manager/lists"}