{"id":24057599,"url":"https://github.com/iandesuyo/randosoru-server","last_synced_at":"2025-06-12T15:05:20.680Z","repository":{"id":39835186,"uuid":"268325780","full_name":"IanDesuyo/Randosoru-Server","owner":"IanDesuyo","description":"Backend of guild.randosoru.me, a website for saving clan battle records","archived":false,"fork":false,"pushed_at":"2023-02-14T22:18:18.000Z","size":57,"stargazers_count":5,"open_issues_count":4,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T02:13:18.241Z","etag":null,"topics":["fastapi","princess-connect-redive","python"],"latest_commit_sha":null,"homepage":"https://guild.randosoru.me","language":"Python","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/IanDesuyo.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,"zenodo":null}},"created_at":"2020-05-31T17:07:14.000Z","updated_at":"2022-04-23T04:03:16.000Z","dependencies_parsed_at":"2025-04-23T02:13:19.135Z","dependency_job_id":"2e61fd83-974e-4474-b00d-3dfb50df7bc7","html_url":"https://github.com/IanDesuyo/Randosoru-Server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/IanDesuyo/Randosoru-Server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanDesuyo%2FRandosoru-Server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanDesuyo%2FRandosoru-Server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanDesuyo%2FRandosoru-Server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanDesuyo%2FRandosoru-Server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/IanDesuyo","download_url":"https://codeload.github.com/IanDesuyo/Randosoru-Server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/IanDesuyo%2FRandosoru-Server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259490490,"owners_count":22865762,"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":["fastapi","princess-connect-redive","python"],"created_at":"2025-01-09T05:49:31.992Z","updated_at":"2025-06-12T15:05:20.653Z","avatar_url":"https://github.com/IanDesuyo.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Randosoru-Server\n\nBackend of guild.randosoru.me\n\n\n## Getting Started\n\n### Prerequisites\n\n* MySQL Server\n* [Discord OAuth2 App](https://discord.com/developers/applications)\n* [Line Login App](https://developers.line.biz/en/)\n\n### Installation\n\n1. Install all required modules from pip. `pip3 install -r requirements.txt`\n2. Rename `config.py.example` to `config.py` and modify it.\n\n\n## Deployment\n\n#### Behind a Proxy\n\nIf you are using Nginx or any proxy server, add the following rules to your config.\n\n```conf\nlocation /api/ {\n  proxy_pass http://{SERVER_IP}/;\n}\n\nlocation /socket.io {\n  proxy_pass http://{SERVER_IP};\n  proxy_http_version 1.1;\n  proxy_set_header Upgrade $http_upgrade;\n  proxy_set_header Connection \"Upgrade\";\n  proxy_set_header Host $host;\n}\n```\n\n#### Without Docker\n\nRun `uvicorn main:app --host 0.0.0.0 --port 80` to start a server at `0.0.0.0:80`.\n\n#### With Docker\n\nIf your MySQL server is a docker container, you may need to add `--net mysql-network` when using `docker run`.\n\n```\ndocker build . -t guild-randosoru-server\n\ndocker run \\\n    -e VIRTUAL_HOST=guild.randosoru.me \\ # for nginx-proxy\n    --restart always \\\n    --name guild-randosoru-server \\\n    -d guild-randosoru-server\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiandesuyo%2Frandosoru-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fiandesuyo%2Frandosoru-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fiandesuyo%2Frandosoru-server/lists"}