{"id":28842888,"url":"https://github.com/sameem97/to-do-web-app","last_synced_at":"2026-02-23T04:31:41.825Z","repository":{"id":298765305,"uuid":"998993274","full_name":"sameem97/to-do-web-app","owner":"sameem97","description":null,"archived":false,"fork":false,"pushed_at":"2025-06-13T20:02:45.000Z","size":98,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-20T07:59:56.166Z","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sameem97.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,"zenodo":null}},"created_at":"2025-06-09T15:15:35.000Z","updated_at":"2025-06-13T20:02:49.000Z","dependencies_parsed_at":"2025-06-12T21:01:34.117Z","dependency_job_id":"594d7ac4-3550-4143-b4a7-50e65c647419","html_url":"https://github.com/sameem97/to-do-web-app","commit_stats":null,"previous_names":["sameem97/to-do-web-app"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/sameem97/to-do-web-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameem97%2Fto-do-web-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameem97%2Fto-do-web-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameem97%2Fto-do-web-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameem97%2Fto-do-web-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sameem97","download_url":"https://codeload.github.com/sameem97/to-do-web-app/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sameem97%2Fto-do-web-app/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29738079,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-23T02:24:00.660Z","status":"ssl_error","status_checked_at":"2026-02-23T02:22:56.087Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":[],"created_at":"2025-06-19T16:07:42.877Z","updated_at":"2026-02-23T04:31:41.807Z","avatar_url":"https://github.com/sameem97.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Todo Web Application\n\nA simple todo web application with user authentication and task management, built with Flask.\n\n## Project Structure\n\n```txt\nto-do-web-app/\n├── app.py              # Main application file\n├── requirements.txt    # Python dependencies\n├── Dockerfile         # Docker configuration\n├── entrypoint.sh      # Docker entrypoint script\n├── .env.example       # Example environment variables\n├── instance/          # Instance-specific files (database)\n└── templates/         # HTML templates\n```\n\n## Features\n\n- User authentication (register, login, logout)\n- Create, read, update, and delete tasks\n- Set due dates for tasks\n- Set task priorities (Low, Medium, High)\n- Mark tasks as complete/incomplete\n- Responsive design\n\n## Views\n\n![Todo App Dashboard](images/dashboard.png)\n*Main dashboard showing task management interface*\n\n![Login Page](images/login.png)\n*User login interface*\n\n![Register Page](images/register.png)\n*New user registration form*\n\n## Prerequisites\n\n- Python 3.11 or higher\n- Docker (optional, for containerized deployment)\n\n## Setup\n\n1. Clone the repository:\n\n```bash\ngit clone \u003cyour-repo-url\u003e\ncd to-do-web-app\n```\n\n2. Create and activate a virtual environment:\n\n```bash\npython -m venv venv\nsource venv/bin/activate  # On Windows: venv\\Scripts\\activate\n```\n\n3. Install dependencies:\n\n```bash\npip install -r requirements.txt\n```\n\n4. Create a `.env` file:\n\n```bash\ncp .env.example .env\n```\n\nThen edit `.env` and set your own `SECRET_KEY`.\n\n## Running the Application\n\n### Local Development\n\nRun the application in debug mode:\n\n```bash\nflask run --debug\n```\n\nThe application will be available at \u003chttp://127.0.0.1:5000\u003e\n\n### Docker Deployment\n\nBuild and run the Docker container:\n\n```bash\ndocker build -t todo-app .\ndocker run -p 5000:5000 --env-file .env todo-app\n```\n\nThe application will be available at \u003chttp://localhost:5000\u003e\n\n## Environment Variables\n\n- `SECRET_KEY`: Secret key for session management\n- `DATABASE_URL`: SQLite database URL (default: sqlite:///instance/todo.db)\n\n**Note:** If running the application locally using `flask run`, you need to set the `FLASK_APP` and `FLASK_DEBUG` environment variables. If running via Docker, these variables are not required as the application is run using Gunicorn.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Deployment and CI/CD\n\nThis application is configured for deployment to a Kubernetes cluster emulated by Minikube running on an AWS EC2 instance, with a CI/CD pipeline managed by Jenkins on a separate EC2 instance.\n\n### CI/CD Pipeline\n\nThe Jenkins pipeline automates the following steps:\n\n1. Code checkout from GitHub\n2. Docker image build with `--no-cache` to ensure fresh builds\n3. Running tests in a containerized environment\n4. Pushing the Docker image to DockerHub\n5. Deploying to Minikube cluster\n\n### Kubernetes Deployment (Minikube on EC2)\n\nA Minikube cluster is set up on an EC2 instance to simulate a Kubernetes environment.\n\n**Prerequisites on EC2:**\n\n- Docker\n- Minikube\n- kubectl\n\n**Setup Steps:**\n\n1. **Launch EC2 Instance:** Provision an EC2 instance (e.g., Ubuntu 22.04, `t2.medium` or larger for Minikube). Ensure appropriate Security Group rules are in place (e.g., SSH on port 22, HTTP on port 80).\n\n2. **Install Docker:**\n\n    ```bash\n    sudo apt update\n    sudo apt install docker.io -y\n    sudo usermod -aG docker ubuntu # Replace 'ubuntu' with your EC2 user\n    newgrp docker # Apply group changes immediately\n    ```\n\n3. **Install Minikube and kubectl:**\n\n    ```bash\n    curl -LO https://storage.googleapis.com/minikube/releases/latest/minikube-linux-amd64\n    sudo install minikube-linux-amd64 /usr/local/bin/minikube\n    curl -LO \"https://dl.k8s.io/release/$(curl -L -s https://dl.k8s.io/release/stable.txt)/bin/linux/amd64/kubectl\"\n    sudo install -o root -g root -m 0755 kubectl /usr/local/bin/kubectl\n    ```\n\n4. **Start Minikube:**\n\n    ```bash\n    minikube start --driver=docker\n    ```\n\n    *Note: Ensure the Docker image for the application is built for `linux/amd64` architecture (e.g., `docker build --platform linux/amd64 -t todo-app .`) to avoid platform mismatch issues on `amd64` EC2 instances.*\n\n### Jenkins Setup\n\nThe Jenkins server is configured with the following credentials:\n\n- DockerHub credentials for image pushing\n- GitHub credentials for code checkout\n- SSH key for Minikube deployment\n- Environment variables (SECRET_KEY, DATABASE_URL)\n\nThe pipeline is triggered automatically on pushes to the main branch.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameem97%2Fto-do-web-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsameem97%2Fto-do-web-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsameem97%2Fto-do-web-app/lists"}