{"id":22933409,"url":"https://github.com/tibue99/tutorial-dashboard","last_synced_at":"2025-07-12T14:34:25.002Z","repository":{"id":195016238,"uuid":"691459470","full_name":"tibue99/tutorial-dashboard","owner":"tibue99","description":"Der Code zum Discord Bot Dashboard Tutorial","archived":false,"fork":false,"pushed_at":"2024-04-17T09:35:23.000Z","size":21,"stargazers_count":17,"open_issues_count":0,"forks_count":9,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-01T08:37:53.538Z","etag":null,"topics":["discord","discord-bot","discord-bot-dashboard","fastapi","python"],"latest_commit_sha":null,"homepage":"","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/tibue99.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}},"created_at":"2023-09-14T08:13:41.000Z","updated_at":"2025-02-21T09:35:08.000Z","dependencies_parsed_at":"2024-12-14T11:29:29.540Z","dependency_job_id":"35c0d212-4100-46a0-9cea-7d39b035db40","html_url":"https://github.com/tibue99/tutorial-dashboard","commit_stats":null,"previous_names":["tibue99/tutorial-dashboard"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tibue99/tutorial-dashboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibue99%2Ftutorial-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibue99%2Ftutorial-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibue99%2Ftutorial-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibue99%2Ftutorial-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tibue99","download_url":"https://codeload.github.com/tibue99/tutorial-dashboard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tibue99%2Ftutorial-dashboard/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265003493,"owners_count":23696227,"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":["discord","discord-bot","discord-bot-dashboard","fastapi","python"],"created_at":"2024-12-14T11:29:21.133Z","updated_at":"2025-07-12T14:34:24.983Z","avatar_url":"https://github.com/tibue99.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Bot Dashboard Tutorial\nHier findest du den Code zum Dashboard Tutorial. Für dieses Tutorial benutzen wir [FastAPI](https://fastapi.tiangolo.com/).\n\n## Infos\nDas Dashboard kann mit einer beliebigen Discord-Library verwendet werden\n   ([Pycord](https://github.com/Pycord-Development/pycord),\n   [Discord.py](https://github.com/Rapptz/discord.py),\n   [Nextcord](https://github.com/nextcord/nextcord),\n   ...)\n\n1. Nachdem du eine Discord Library installiert hast, installiere alle Packages aus `requirements.txt`\n   ```\n   pip install -r requirements.txt\n   ```\n2. Füge einen Redirect im [Discord Developer Portal](https://discord.com/developers/applications) hinzu\n   ```\n   http://localhost:8000/callback\n   ```\n3. Aktiviere den **Member Intent** im Developer Portal\n4. Füge die Daten aus dem Developer Portal in `main.py` ein\n5. Starte die Dashboard-API in `main.py` und den Bot in `bot.py`\n\n## VPS Hosting\nDas Dashboard kann zum Beispiel auf einem VPS gehostet werden. Hier ist eine kleine Übersicht für Ubuntu.\n\n**Wichtig:** Nicht vergessen den Redirect im Dev Portal und im Code anzupassen.\nDort steht dann nicht mehr `localhost`, sondern eure IP-Adresse oder eure Domain.\n\nFolgende Befehle werden auf dem VPS ausgeführt:\n1. Packages aktualisieren: `apt update`\n2. Pip und Tmux installieren: `apt install python3-pip tmux`\n3. Requirements installieren: `pip install -r requirements.txt`\n4. `bot.py` und `main.py` jeweils in einer eigenen Tmux-Session starten\n5. Nginx-Konfiguration anpassen: `/etc/nginx/sites-available/`\n   ```nginx\n   server {\n      listen 80;\n      server_name _;  # IP-Adresse oder Domain eintragen\n\n      location / {\n         proxy_pass http://127.0.0.1:8000;\n         include /etc/nginx/proxy_params;\n         proxy_redirect off;\n      }\n\n      location /static {\n         alias /home/dashboard/frontend/static;\n      }\n   }\n   ```\n6. Nginx neustarten: `sudo systemctl restart nginx`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftibue99%2Ftutorial-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftibue99%2Ftutorial-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftibue99%2Ftutorial-dashboard/lists"}