{"id":19031169,"url":"https://github.com/hieuung/simple-web-app","last_synced_at":"2025-08-17T05:06:29.909Z","repository":{"id":222447300,"uuid":"757305918","full_name":"hieuung/Simple-web-app","owner":"hieuung","description":"My simple web application. Deployment using containerization for DevOps learning purpose","archived":false,"fork":false,"pushed_at":"2024-11-06T15:32:06.000Z","size":180,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-21T20:23:53.209Z","etag":null,"topics":["containerization","flask-sqlalchemy","learning","self-project","webapp","wsgi-server"],"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/hieuung.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":"2024-02-14T08:16:25.000Z","updated_at":"2024-11-06T15:32:10.000Z","dependencies_parsed_at":"2024-02-25T19:39:51.495Z","dependency_job_id":"46081c06-2c9c-4f7d-9cb9-170b5ae8afa2","html_url":"https://github.com/hieuung/Simple-web-app","commit_stats":null,"previous_names":["hieuung/simple-web-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hieuung/Simple-web-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hieuung%2FSimple-web-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hieuung%2FSimple-web-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hieuung%2FSimple-web-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hieuung%2FSimple-web-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hieuung","download_url":"https://codeload.github.com/hieuung/Simple-web-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hieuung%2FSimple-web-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270807934,"owners_count":24649346,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["containerization","flask-sqlalchemy","learning","self-project","webapp","wsgi-server"],"created_at":"2024-11-08T21:21:50.050Z","updated_at":"2025-08-17T05:06:29.873Z","avatar_url":"https://github.com/hieuung.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple-web-app\n\nMy simple web app, deploy using containerization for Dev-ops learning\n\n## Tech stack\n- Flask\n- WGIS\n- Containerization (Docker, Kubernetes, Minikube)\n- SQL (Postgres)\n\n## Description\nThis simple webapp provided user's interface for sign up and sign in. Using Flask (python). Containerized app with docker and deploy on Kubernetes.\n\n## Deployment\n- Install [docker](https://docs.docker.com/engine/install/ubuntu/), [kubernetes](https://kubernetes.io/docs/tasks/tools/), and [minikube](https://minikube.sigs.k8s.io/docs/start/)\n\n- Create namespace \n```\nkubectl create namespace webapp\n```\n\n- Deploy Postgres server to Kubernetes \n```\nkubectl apply -f ./k8s/database-postgres -n webapp\n```\n\u003e **_NOTE:_**  Postgres server ClusterIP have to be hard coded.\n\n- Create database following file \n```./db/schema.sql``` using provided user name and password created in k8s secret.\n\n- (Optional) Created docker image and push to registry. Add SQL_URI (AlchemySQL connection URI) to docker enviroment variable.\n\n- Create deployment for webapp. using created docker image (Currently [my docker image](https://hub.docker.com/repository/docker/hieuung/bookstore/general))\n\n```\nkubectl apply -f ./k8s/web-app -n webapp\n```\n\n## Result\n- Verify deployment, service\n```\nkubectl get depolyment -n webapp\n```\n\n![Deployment](\u003cassert/Screenshot from 2024-02-20 17-40-20.png\u003e)\n\n\n```\nkubectl get service -n webapp\n```\n\n![Service](\u003cassert/Screenshot from 2024-02-20 17-30-07.png\u003e)\n\n\u003e **_NOTE:_**  Using ```minkibe tunnel``` if LoadBalancer not exposes External-IP\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhieuung%2Fsimple-web-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhieuung%2Fsimple-web-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhieuung%2Fsimple-web-app/lists"}