{"id":17924931,"url":"https://github.com/diptochakrabarty/flaskkube-api","last_synced_at":"2025-09-08T00:06:13.308Z","repository":{"id":113311026,"uuid":"259813586","full_name":"DiptoChakrabarty/FlaskKube-api","owner":"DiptoChakrabarty","description":"A API deployed in Kubernetes and Docker which has been built using Flask and SQL . Authentication and all CRUD methods are possible ","archived":false,"fork":false,"pushed_at":"2020-10-01T08:42:41.000Z","size":27436,"stargazers_count":4,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-31T16:43:39.263Z","etag":null,"topics":["api","api-rest","docker","docker-compose","docker-container","docker-image","dockerfiles","flask","flask-api","flask-application","flask-backend","flask-sqlalchemy","hacktoberfest","kubernetes","kubernetes-deployment","kubernetes-secrets","kubernetes-service","rest-api","restapi","restful-api"],"latest_commit_sha":null,"homepage":"https://flask-kube.herokuapp.com/products","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/DiptoChakrabarty.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2020-04-29T03:20:59.000Z","updated_at":"2024-01-24T16:10:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"39e4867f-c8e9-47a5-8f12-f43ce23aae57","html_url":"https://github.com/DiptoChakrabarty/FlaskKube-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/DiptoChakrabarty/FlaskKube-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiptoChakrabarty%2FFlaskKube-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiptoChakrabarty%2FFlaskKube-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiptoChakrabarty%2FFlaskKube-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiptoChakrabarty%2FFlaskKube-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/DiptoChakrabarty","download_url":"https://codeload.github.com/DiptoChakrabarty/FlaskKube-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/DiptoChakrabarty%2FFlaskKube-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274113090,"owners_count":25224335,"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-09-07T02:00:09.463Z","response_time":67,"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":["api","api-rest","docker","docker-compose","docker-container","docker-image","dockerfiles","flask","flask-api","flask-application","flask-backend","flask-sqlalchemy","hacktoberfest","kubernetes","kubernetes-deployment","kubernetes-secrets","kubernetes-service","rest-api","restapi","restful-api"],"created_at":"2024-10-28T20:51:38.576Z","updated_at":"2025-09-08T00:06:13.297Z","avatar_url":"https://github.com/DiptoChakrabarty.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Flask Kube api  :triangular_flag_on_post:\n\n\nThis Project demonstrates how to deploy an API in docker and Kubernetes,\n\nThe api has been built using Flask and supported by a mysql database \n\n\n## How to run the project  :information_source:\n\nFor all the steps \n\n```sh\n- git clone https://github.com/DiptoChakrabarty/api.git\n\n- cd apiapp\n```\n\n### Using Python only :o:\n\n\n```sh\n  - Initialize DataBase\n\n  In your terminal\n  \u003e python3\n  \u003e from apiapp import db\n  \u003e db.create_all()\n  \u003e exit\n\n  - Run Application API\n\n  python3 app.py\n\n```\n\n###  Using Docker :whale:\n\nDockerfile for flask backend is in current directory\n\nDockerfile for DataBase is in folder db\n\n```sh\n\n - To run in background\n  docker-compose up -d\n\n - Run Normally\n  docker-compose up\n\n```\n\n\n### Using Kubernetes :boom:\n\nI have run and tested the application in minikube and online kubernetes IDE\n\n```sh\n \n - kubectl apply -f kube\n\n - Check service Ip of app\n\n    kubectl get svc\n \n - Send requests in the ip provided in the service ip\n```\n\n\u003cimg src=\"images/SVC.png\"\u003e\n\n## Send your Requests \t:bomb: \nYou can send request using Postman or using your terminal \n\n## For Routes Documentation visit:\n[Postman FlaskKube-API Docs](https://documenter.getpostman.com/view/11026000/TVRdBCDc)\n\n\n## Routes  :anger:\n\n | Route | Method | Function | \n | --- | --- | --- |\n | /productadd | POST | Add data |\n | /products | GET | Show data |\n | /product/id | GET | Show individual items data |\n | /product/id | PUT | Update items data |\n | /product/id  | DELETE| Delete items  |\n | /users | POST | Register User |\n | /auth | POST | Login User |\n\n\n\n## Tech Stack :muscle:\n\n- Flask\n- Flask-SQLAlchemy\n- SQL\n- Docker\n- Docker Compose\n- Kubernetes\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiptochakrabarty%2Fflaskkube-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdiptochakrabarty%2Fflaskkube-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdiptochakrabarty%2Fflaskkube-api/lists"}