{"id":16654118,"url":"https://github.com/aliartiza75/flask-frontend-application","last_synced_at":"2026-04-29T23:02:21.037Z","repository":{"id":41051522,"uuid":"169840649","full_name":"aliartiza75/flask-frontend-application","owner":"aliartiza75","description":"Front-end application build in flask, its backend api's exists in aliartiza75/ht-be repository.","archived":false,"fork":false,"pushed_at":"2024-10-26T00:09:58.000Z","size":65,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-21T05:38:41.801Z","etag":null,"topics":["docker","dockerfiles","flask","helm","kubernetes"],"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/aliartiza75.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2019-02-09T06:56:26.000Z","updated_at":"2024-06-01T01:53:33.000Z","dependencies_parsed_at":"2024-06-01T02:52:53.949Z","dependency_job_id":"fc078e13-f2ca-46fe-bd84-5c5ac0eeac34","html_url":"https://github.com/aliartiza75/flask-frontend-application","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/aliartiza75/flask-frontend-application","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliartiza75%2Fflask-frontend-application","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliartiza75%2Fflask-frontend-application/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliartiza75%2Fflask-frontend-application/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliartiza75%2Fflask-frontend-application/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aliartiza75","download_url":"https://codeload.github.com/aliartiza75/flask-frontend-application/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aliartiza75%2Fflask-frontend-application/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32447312,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-29T22:27:22.272Z","status":"ssl_error","status_checked_at":"2026-04-29T22:10:49.234Z","response_time":110,"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":["docker","dockerfiles","flask","helm","kubernetes"],"created_at":"2024-10-12T09:48:43.824Z","updated_at":"2026-04-29T23:02:21.019Z","avatar_url":"https://github.com/aliartiza75.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![SonarCloud](https://sonarcloud.io/images/project_badges/sonarcloud-orange.svg)](https://sonarcloud.io/summary/new_code?id=aliartiza75_flask-frontend-application)\n\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=aliartiza75_flask-frontend-application\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=aliartiza75_flask-frontend-application)\n\n[![Bugs](https://sonarcloud.io/api/project_badges/measure?project=aliartiza75_flask-frontend-application\u0026metric=bugs)](https://sonarcloud.io/summary/new_code?id=aliartiza75_flask-frontend-application)\n[![Code Smells](https://sonarcloud.io/api/project_badges/measure?project=aliartiza75_flask-frontend-application\u0026metric=code_smells)](https://sonarcloud.io/summary/new_code?id=aliartiza75_flask-frontend-application)\n[![Lines of Code](https://sonarcloud.io/api/project_badges/measure?project=aliartiza75_flask-frontend-application\u0026metric=ncloc)](https://sonarcloud.io/summary/new_code?id=aliartiza75_flask-frontend-application)\n[![Maintainability Rating](https://sonarcloud.io/api/project_badges/measure?project=aliartiza75_flask-frontend-application\u0026metric=sqale_rating)](https://sonarcloud.io/summary/new_code?id=aliartiza75_flask-frontend-application)\n[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=aliartiza75_flask-frontend-application\u0026metric=alert_status)](https://sonarcloud.io/summary/new_code?id=aliartiza75_flask-frontend-application)\n[![Reliability Rating](https://sonarcloud.io/api/project_badges/measure?project=aliartiza75_flask-frontend-application\u0026metric=reliability_rating)](https://sonarcloud.io/summary/new_code?id=aliartiza75_flask-frontend-application)\n[![Security Rating](https://sonarcloud.io/api/project_badges/measure?project=aliartiza75_flask-frontend-application\u0026metric=security_rating)](https://sonarcloud.io/summary/new_code?id=aliartiza75_flask-frontend-application)\n[![Technical Debt](https://sonarcloud.io/api/project_badges/measure?project=aliartiza75_flask-frontend-application\u0026metric=sqale_index)](https://sonarcloud.io/summary/new_code?id=aliartiza75_flask-frontend-application)\n[![Vulnerabilities](https://sonarcloud.io/api/project_badges/measure?project=aliartiza75_flask-frontend-application\u0026metric=vulnerabilities)](https://sonarcloud.io/summary/new_code?id=aliartiza75_flask-frontend-application)\n\n[![Quality gate](https://sonarcloud.io/api/project_badges/quality_gate?project=aliartiza75_flask-frontend-application)](https://sonarcloud.io/summary/new_code?id=aliartiza75_flask-frontend-application)\n\n\n\n# Flask Frontend Application\n\nThis repository contains frontend logic and kubernetes manifests. I have used `minikube` for this project. Installation steps is given in this [gist](https://gist.github.com/aliartiza75/3a34f059de62c7de04727dae6a363ea8) \n\n# Guidelines for containerizing frontend\n* Building image\n```bash\nsudo docker build -t ht-fe:0.0.1 -f Dockerfile .\n```\n\n* To run docker container on host machine\n```bash\nsudo docker run -e FLASK_ENV=development -e FLASK_HOST_IP=0.0.0.0 -e=FLASK_HOST_PORT=5001 -e BE_IP_ADDR=\u003c172.17.0.4\u003e:5001 -p 9002:5001 ht-fe:0.0.1\n```\n\n# Kubernetes deployment Guidelines\n\nBefore the creation of frontend deployement, backend deployment and service *must* be created. Guideline for creating the backend deployment and service is given in the `README.md` file of backend respository. Once pre-requisites are completed. Frontend `deployment.yaml` file must be updated by changing the `BE_IP_ADDR` env variable with the ip address of the backend pod.\n\n* To get the ip address of the backend pod, use the command given below:\n\n\n```bash\n# to get pod list\nsudo kubectl get pods\n\n# to get the information of the backend pod\nsudo kubectl describe pod \u003cpod-id\u003e\n```\n\n* Once the above changes are done, create the frontend deployment.\n```bash\nsudo kubectl apply -f deployment.yaml\n```\n\n* To create the frontend service\n```bash\nsudo kubectl apply -f htfe_service.yaml\n```\n* To access the frontend service\n```bash\n# to get list of services, copy the CLUSTER_IP\nsudo kubectl get service\n\n# Open the browser and type this URL. It will display a web page containing two buttons. The Get Date button will call the backend service\nhttp://CLUSTER_IP:5002\n```\n\n* To curl the backend service from frontend pod\n```bash\n# To get pod list.\nsudo kubectl get pods\n\n# Copy the pod id of the frontend service and use the command below to enter the pod\nsudo kubectl exec -it \u003cfrontend-service-pod-id\u003e /bin/bash\n\n# To curl the backend service\ncurl -X GET \"http://\u003cbackend-pod-ip\u003e:5001/datetime\"\n```\n\n# Guidelines for helm charts deployment\n* Helm installation guidelines [link](https://helm.sh/docs/install/#installing-the-helm-client)\n\n* Once the helm is installed, use the command given below to install tiller in kubernetes cluster:\n```bash\nhelm init\n```\n\n* To create a helm chart folder:\n\n```bash\nhelm create \u003capp-name\u003e\n```\n\n* To dry run the helm chart for debugging:\n```bash\nsudo helm install --dry-run --debug \u003cchart-directory\u003e\n```\n\n* To purge a release\n```bash\nsudo helm del --purge \u003crelease-name\u003e\n```\n\n* To check the status of a release\n```bash\nsudo helm ls --all \u003crelease-name\u003e\n```\n\n* To search a helm package name\n```bash\nsudo helm search \u003cpackage-name\u003e\n```\n\n* To create a package from the helm charts folder\n```bash\nsudo helm package \u003chelm-charts-package-folder-path\u003e\n```\n\n# Important Notes\n* Start the minikube cluster in the virtual machine drive in none mode [--vm-driver=none], otherwise services will not be accessible.\n* Minikube will pull images from the dockerhub.\n* In some cases minikube cluster doesn't work properly, one quick fix is to delete the cluster and restart the minikube cluster.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliartiza75%2Fflask-frontend-application","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faliartiza75%2Fflask-frontend-application","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faliartiza75%2Fflask-frontend-application/lists"}