{"id":22931517,"url":"https://github.com/angudadevops/python-developement","last_synced_at":"2025-06-26T18:34:11.448Z","repository":{"id":182387472,"uuid":"260060749","full_name":"angudadevops/Python-Developement","owner":"angudadevops","description":"Python Web Application with Flask ","archived":false,"fork":false,"pushed_at":"2024-04-01T17:08:59.000Z","size":115,"stargazers_count":1,"open_issues_count":0,"forks_count":10,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-01T07:38:26.698Z","etag":null,"topics":["django","django-app","docker-compose-python","flask","flask-application","flask-mysql","flask-web","python","python-docker","python-mysql-test","python-sample","python-send","python-web-development","sample-web-application"],"latest_commit_sha":null,"homepage":null,"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/angudadevops.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":"2020-04-29T22:35:51.000Z","updated_at":"2022-01-23T14:26:06.000Z","dependencies_parsed_at":"2023-07-19T20:15:17.465Z","dependency_job_id":null,"html_url":"https://github.com/angudadevops/Python-Developement","commit_stats":null,"previous_names":["angudadevops/python-developement"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/angudadevops/Python-Developement","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2FPython-Developement","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2FPython-Developement/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2FPython-Developement/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2FPython-Developement/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/angudadevops","download_url":"https://codeload.github.com/angudadevops/Python-Developement/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/angudadevops%2FPython-Developement/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262123167,"owners_count":23262538,"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":["django","django-app","docker-compose-python","flask","flask-application","flask-mysql","flask-web","python","python-docker","python-mysql-test","python-sample","python-send","python-web-development","sample-web-application"],"created_at":"2024-12-14T10:39:29.833Z","updated_at":"2025-06-26T18:34:11.366Z","avatar_url":"https://github.com/angudadevops.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Welcome to Python Web Development.\n\nPreRequisites:\n- Docker\n\nPython Web Application can be developed \n- [Flask](#flask-app)\n- [Django](#django-app)\n\n## flask-app\nIf you want to build a light weight web application, you can choose flask module. \n\nRun the below command to create sample flask App\n\n```\ndocker run -d -p 5000:5000 anguda/python-flask-app\n```\n\nAccess above container like below \n```\nlocalhost:8080/username\n```\n\nIf you want to run a flask with MySQL DB connectivity, please run the below command\n```\ndocker-compose up\n```\n\nNo docker-compose installed? Don't worry, please follow the below steps with simple docker \n\nRun the below simple docker commands to spin up docker containers\n```\ndocker run -d -p 3306:3306 --name db anguda/mysql\ndocker run -d -p 5000:5000 --name flaskweb --link db:db anguda/python-flask-app:web\n```\n\nAre you intersted to build the docker images and explore source code, then follow the below steps.\n\n1. First build the Docker images for both flask app and MySQL DB\n\nRun the below command to build flask app\n```\ncd flask/app\ndocker build -t flaskweb . --no-cache\n```\nRun the velow command to build MySQL image\n```\ncd flask/db\ndocker build -t mysqldb . --no-cache\n```\n2. It's time for to run the docker containers\n\nRun the below commands to run the applications\n```\ndocker run -d -p 3306:3306 --name db mysqldb\ndocker run -d -p 5000:5000 --name flaskweb --link db:db flaskweb\n```\n\n### Using Kubernets\nAre you using kubernetes as a service, then here's commands to run your application as pods\n\n```\nkubectl create -f db-deployment.yaml\n\nkubectl create -f app-deployment.yaml\n```\n\nTo get nodeport of app deployment, run the below command \n\n```\nkubectl get svc\n```\n\n### Usage\n\nAccess the web application with below url\n```\nlocalhost:5000/\n```\n\n## django-app\nDjango is help to use Advanced Web Development\n\nRun the below command to create a django simple web application\n\n```\ncd django\ndocker build -t mydjango . --no-cache\n```\n\nRun the below command to run the docker container\n\n```\ndocker run -d -p 8000:8000 --name django mydjango\n```\n\n### Usage\n\nAccess the web application with below url\n```\nlocalhost:8000/\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangudadevops%2Fpython-developement","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fangudadevops%2Fpython-developement","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fangudadevops%2Fpython-developement/lists"}