{"id":16112730,"url":"https://github.com/dsdatsme/flask-setup-for-instance","last_synced_at":"2026-04-29T01:34:16.101Z","repository":{"id":124158721,"uuid":"162280570","full_name":"DSdatsme/flask-setup-for-instance","owner":"DSdatsme","description":"In this repo I am setting up flask server on cloud compute and then will execute a predefined task from a cloud function, in short will do some task inside instance from external trigger","archived":false,"fork":false,"pushed_at":"2021-10-13T01:53:50.000Z","size":247,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-04-06T07:25:03.312Z","etag":null,"topics":["flask","hacktoberfest"],"latest_commit_sha":null,"homepage":"","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/DSdatsme.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":"2018-12-18T11:51:26.000Z","updated_at":"2021-10-13T01:53:50.000Z","dependencies_parsed_at":null,"dependency_job_id":"706ef18b-807a-4015-a3ec-19d134a2efd5","html_url":"https://github.com/DSdatsme/flask-setup-for-instance","commit_stats":{"total_commits":9,"total_committers":1,"mean_commits":9.0,"dds":0.0,"last_synced_commit":"efc137aeb7411b7f2a26f9caa66c8b0ff8f3d6da"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DSdatsme/flask-setup-for-instance","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSdatsme%2Fflask-setup-for-instance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSdatsme%2Fflask-setup-for-instance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSdatsme%2Fflask-setup-for-instance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSdatsme%2Fflask-setup-for-instance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DSdatsme","download_url":"https://codeload.github.com/DSdatsme/flask-setup-for-instance/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DSdatsme%2Fflask-setup-for-instance/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32407164,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-28T19:38:08.556Z","status":"ssl_error","status_checked_at":"2026-04-28T19:37:55.688Z","response_time":56,"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":["flask","hacktoberfest"],"created_at":"2024-10-09T20:09:02.515Z","updated_at":"2026-04-29T01:34:16.087Z","avatar_url":"https://github.com/DSdatsme.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Execute on Instance\n\nRepo contains a sample code to be used to create a webservice and which in turn will do some kind of execution on host machine.\n\n## Steps to Setup\n\nwe will be using python3\n\n```bash\nsudo apt-get update\nsudo apt-get install git -y\nsudo apt-get install python-pip -y\nsudo pip install Flask\nexport FLASK_APP=run.py\npip install flask_cors\n```\n\n### to run use following command\n\n```bash\nflask run\n```\n\n### To kill flask server on a port\n\n```bash\nsudo apt-get install psmisc\nrun sudo fuser -k 5000/tcp\n```\n\n## Flow\n\n* Clone the code on virtual machine of your desired cloud provider.\n* Make changes in [api/run.py](api/run.py) file. The changes you want to make are in '@app.route' 's parameter.\nGive it a desired name of you choice. This will be used while sending request to that webservice.\nExample: \u003cip_adderss\u003e/my_app_route\n* Next thing you want to change is the code inside the method. Write your own logic what you want to do inside the method below the line where you edited your '@app.route'.\n* That's it! Now run the flask app considering you have followed all the setup steps.\n\n\u003e You can ignore the `ui` folder, it's just some starter code.\n\n## TLDR\n\nTrigger a webservice hosted in flask from a cloud function or lambda.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsdatsme%2Fflask-setup-for-instance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdsdatsme%2Fflask-setup-for-instance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdsdatsme%2Fflask-setup-for-instance/lists"}