{"id":19315309,"url":"https://github.com/saelsa/flask-with-docker-deployment","last_synced_at":"2025-07-22T21:03:16.850Z","repository":{"id":121348234,"uuid":"229326905","full_name":"saelsa/flask-with-docker-deployment","owner":"saelsa","description":"Project within the Udacity Fullstack-Development Nanodegree. Dockerizing a simple flask application and deploying it to Kubernetes using EKS","archived":false,"fork":false,"pushed_at":"2020-01-03T12:59:03.000Z","size":23,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-24T04:30:08.501Z","etag":null,"topics":[],"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/saelsa.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":"2019-12-20T19:48:58.000Z","updated_at":"2021-06-11T01:29:25.000Z","dependencies_parsed_at":null,"dependency_job_id":"9e6373f4-f47d-43ee-818f-f2e3db899bef","html_url":"https://github.com/saelsa/flask-with-docker-deployment","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/saelsa/flask-with-docker-deployment","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saelsa%2Fflask-with-docker-deployment","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saelsa%2Fflask-with-docker-deployment/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saelsa%2Fflask-with-docker-deployment/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saelsa%2Fflask-with-docker-deployment/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/saelsa","download_url":"https://codeload.github.com/saelsa/flask-with-docker-deployment/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/saelsa%2Fflask-with-docker-deployment/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266572293,"owners_count":23949994,"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-07-22T02:00:09.085Z","response_time":66,"last_error":null,"robots_txt_status":null,"robots_txt_updated_at":null,"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":[],"created_at":"2024-11-10T01:05:49.712Z","updated_at":"2025-07-22T21:03:16.828Z","avatar_url":"https://github.com/saelsa.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Deploying a Flask API\n\nThis is the project starter repo for the fourth course in the [Udacity Full Stack Nanodegree](https://www.udacity.com/course/full-stack-web-developer-nanodegree--nd004): Server Deployment, Containerization, and Testing.\n\nIn this project you will containerize and deploy a Flask API to a Kubernetes cluster using Docker, AWS EKS, CodePipeline, and CodeBuild.\n\nThe Flask app that will be used for this project consists of a simple API with three endpoints:\n\n- `GET '/'`: This is a simple health check, which returns the response 'Healthy'. \n- `POST '/auth'`: This takes a email and password as json arguments and returns a JWT based on a custom secret.\n- `GET '/contents'`: This requires a valid JWT, and returns the un-encrpyted contents of that token. \n\nThe app relies on a secret set as the environment variable `JWT_SECRET` to produce a JWT. The built-in Flask server is adequate for local development, but not production, so you will be using the production-ready [Gunicorn](https://gunicorn.org/) server when deploying the app.\n\n## Initial setup\n1. Fork this project to your Github account.\n2. Locally clone your forked version to begin working on the project.\n\n## Dependencies\n\n- Docker Engine\n    - Installation instructions for all OSes can be found [here](https://docs.docker.com/install/).\n    - For Mac users, if you have no previous Docker Toolbox installation, you can install Docker Desktop for Mac. If you already have a Docker Toolbox installation, please read [this](https://docs.docker.com/docker-for-mac/docker-toolbox/) before installing.\n - AWS Account\n     - You can create an AWS account by signing up [here](https://aws.amazon.com/#).\n     \n## Project Steps\n\nCompleting the project involves several steps:\n\n1. Write a Dockerfile for a simple Flask API\n2. Build and test the container locally\n3. Create an EKS cluster\n4. Store a secret using AWS Parameter Store\n5. Create a CodePipeline pipeline triggered by GitHub checkins\n6. Create a CodeBuild stage which will build, test, and deploy your code\n\nFor more detail about each of these steps, see the project lesson [here](https://classroom.udacity.com/nanodegrees/nd004/parts/1d842ebf-5b10-4749-9e5e-ef28fe98f173/modules/ac13842f-c841-4c1a-b284-b47899f4613d/lessons/becb2dac-c108-4143-8f6c-11b30413e28d/concepts/092cdb35-28f7-4145-b6e6-6278b8dd7527).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaelsa%2Fflask-with-docker-deployment","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsaelsa%2Fflask-with-docker-deployment","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsaelsa%2Fflask-with-docker-deployment/lists"}