How vishal-abhinav/devops-ai-agent works
Project type and purpose
• This is a full-stack “DevOps AI Agent” web project.
• It consists of a static frontend served via GitHub Pages and a dynamic Flask backend deployed (e.g., on Firebase Hosting/Functions, Heroku, AWS).
• The frontend is pure HTML/CSS/JS (with Tailwind), possibly React; the backend is Python/Flask (Gunicorn), exposing REST APIs and handling business logic.
File structure
• Top-level:
– .github/workflows – CI/CD workflows (CodeQL, deploy).
– Dockerfile – containerization (optional local dev or production).
– README.md – project overview, architecture, deployment steps.
– firebase.json – Firebase Hosting/Functions configuration.
– run.py – Flask app entry point.
• app/ – Flask application package:
– __init__.py – app factory, CORS, config hooks.
– routes.py – REST API endpoints.
– models.py – domain/data models.
– static/ (tailwind.css) and templates/ (index.html, layout.html).
• public/ – static build for frontend (served by GitHub Pages).
• functions/ – optional Firebase Cloud Functions (if used instead of run.py).
• requirements.txt – Python dependencies.
README for additional insights
• Frontend is hosted on GitHub Pages (gh-pages branch).
• Backend is a Flask app served with Gunicorn, deployed on Firebase (or Heroku/AWS).
• Integration: frontend issues REST calls to the Flask backend; Flask-CORS enables cross-origin requests.
• CI/CD: GitHub Actions handle code analysis (CodeQL), tests, and deploys to both GitHub Pages and Firebase.