{"id":28214093,"url":"https://github.com/vzool/fullstack-nanodegree-tournament-results","last_synced_at":"2025-06-11T20:30:47.036Z","repository":{"id":29856847,"uuid":"33401776","full_name":"vzool/fullstack-nanodegree-tournament-results","owner":"vzool","description":null,"archived":false,"fork":false,"pushed_at":"2015-04-06T16:42:18.000Z","size":136,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-17T20:12:14.177Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/vzool.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}},"created_at":"2015-04-04T10:21:18.000Z","updated_at":"2015-04-06T16:42:18.000Z","dependencies_parsed_at":"2022-09-07T00:40:12.264Z","dependency_job_id":null,"html_url":"https://github.com/vzool/fullstack-nanodegree-tournament-results","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vzool/fullstack-nanodegree-tournament-results","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vzool%2Ffullstack-nanodegree-tournament-results","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vzool%2Ffullstack-nanodegree-tournament-results/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vzool%2Ffullstack-nanodegree-tournament-results/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vzool%2Ffullstack-nanodegree-tournament-results/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vzool","download_url":"https://codeload.github.com/vzool/fullstack-nanodegree-tournament-results/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vzool%2Ffullstack-nanodegree-tournament-results/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259334608,"owners_count":22842466,"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-05-17T20:12:14.042Z","updated_at":"2025-06-11T20:30:47.030Z","avatar_url":"https://github.com/vzool.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Full-Stack Nanodegree Tournament Results\n\nThis is a python tournament functions working with a Database as a Back-End.\n\n## File Structure\n\nI organized the project with considerations based on trustful functionality.\n\n```\n\ttournament.py\t\t(Query functions)\n\ttournament.sql\t\t(Database Tournament Database SQL)\n\ttournament_test.py\t(Test Functions)\n```\n## Database Structure\n\n```\n\nvagrant@vagrant-ubuntu-trusty-32:/vagrant/tournament$ psql tournament \npsql (9.3.6)\nType \"help\" for help.\n\ntournament=\u003e \\d player\n                                     Table \"public.player\"\n   Column   |            Type             |                      Modifiers                      \n------------+-----------------------------+-----------------------------------------------------\n id         | integer                     | not null default nextval('player_id_seq'::regclass)\n name       | text                        | not null\n created_at | timestamp without time zone | default now()\nIndexes:\n    \"player_pkey\" PRIMARY KEY, btree (id)\n    \"player_name_key\" UNIQUE CONSTRAINT, btree (name)\nReferenced by:\n    TABLE \"match\" CONSTRAINT \"match_player_1_fkey\" FOREIGN KEY (player_1) REFERENCES player(id)\n    TABLE \"match\" CONSTRAINT \"match_player_2_fkey\" FOREIGN KEY (player_2) REFERENCES player(id)\n    TABLE \"match\" CONSTRAINT \"match_the_winner_fkey\" FOREIGN KEY (the_winner) REFERENCES player(id)\n\ntournament=\u003e \\d match\n                                     Table \"public.match\"\n   Column   |            Type             |                     Modifiers                      \n------------+-----------------------------+----------------------------------------------------\n id         | integer                     | not null default nextval('match_id_seq'::regclass)\n player_1   | integer                     | \n player_2   | integer                     | \n the_winner | integer                     | \n round_no   | integer                     | default 1\n created_at | timestamp without time zone | default now()\nIndexes:\n    \"match_pkey\" PRIMARY KEY, btree (id)\n    \"match_player_1_player_2_round_no_key\" UNIQUE CONSTRAINT, btree (player_1, player_2, round_no)\nForeign-key constraints:\n    \"match_player_1_fkey\" FOREIGN KEY (player_1) REFERENCES player(id)\n    \"match_player_2_fkey\" FOREIGN KEY (player_2) REFERENCES player(id)\n    \"match_the_winner_fkey\" FOREIGN KEY (the_winner) REFERENCES player(id)\n\n\n\n```\n\n## Instructions\n\nTo Test those functions you will need to type the following:\n\n### First import the SQL file into psql\n\n```\n$ psql -f tournament.sql\n```\n\n### Finally do this\n```\n$ python tournament_test.py\n```\n\n## Requirements\n\n- You will need a Python 2.x language installed in your system.\n- PostgreSQL 9.3+\n\n\n## Licence\n\nIt's Completely Free. But, Do whatever you like to do on your own full responsibility;\n\nThis licence is known with [MIT License](http://vzool.mit-license.org/) in professional networks.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvzool%2Ffullstack-nanodegree-tournament-results","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvzool%2Ffullstack-nanodegree-tournament-results","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvzool%2Ffullstack-nanodegree-tournament-results/lists"}