{"id":34499637,"url":"https://github.com/akarazhev/ai-driven-development-101","last_synced_at":"2026-04-13T04:37:25.412Z","repository":{"id":326500732,"uuid":"1105423607","full_name":"akarazhev/ai-driven-development-101","owner":"akarazhev","description":"AI-Driven Development 101: a practical course + full‑stack project (FastAPI + React). Learn agents, prompting, and ship a social media automation app.","archived":false,"fork":false,"pushed_at":"2025-12-17T08:37:22.000Z","size":590,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-13T04:36:11.610Z","etag":null,"topics":["agents","ai","automation","course","docker","education","fastapi","llm","podman","prompting","react","social-media","sqlmodel","tailwindcss","vite"],"latest_commit_sha":null,"homepage":"https://github.com//ai-driven-development-101/tree/main/doc/course","language":"HTML","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/akarazhev.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-27T15:32:18.000Z","updated_at":"2025-12-17T07:31:45.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/akarazhev/ai-driven-development-101","commit_stats":null,"previous_names":["akarazhev/ai-driven-development-101"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/akarazhev/ai-driven-development-101","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akarazhev%2Fai-driven-development-101","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akarazhev%2Fai-driven-development-101/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akarazhev%2Fai-driven-development-101/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akarazhev%2Fai-driven-development-101/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/akarazhev","download_url":"https://codeload.github.com/akarazhev/ai-driven-development-101/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/akarazhev%2Fai-driven-development-101/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31740266,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T03:27:07.512Z","status":"ssl_error","status_checked_at":"2026-04-13T03:26:53.610Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5: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":["agents","ai","automation","course","docker","education","fastapi","llm","podman","prompting","react","social-media","sqlmodel","tailwindcss","vite"],"created_at":"2025-12-24T01:59:51.037Z","updated_at":"2026-04-13T04:37:25.404Z","avatar_url":"https://github.com/akarazhev.png","language":"HTML","funding_links":[],"categories":[],"sub_categories":[],"readme":"# AI-Driven-Development-101\n\nFull-stack Confluence Publisher App implementing the course project (Chapter 06).\n\n## Stack\n\n- Backend: Spring Boot 3.4, JPA/Hibernate, SQLite\n- Frontend: Angular 20 + TypeScript + TailwindCSS\n\n## Prerequisites\n\n- Java 21+\n- Gradle 8+ (or use included gradlew)\n- Node.js 18+ and npm\n\n## Setup\n\n1) Start backend\n\n```bash\ncd backend\n./gradlew bootRun\n```\n\n2) Frontend\n\n```bash\ncd frontend\nnpm install\nnpm start\n# or\nng serve\n```\n\nOpen http://localhost:4200 and ensure the backend is running on http://localhost:8080.\n\n## Project structure\n\n```\nbackend/\n  src/main/java/com/confluence/publisher/\n    controller/     # REST controllers (Page, Attachment, Schedule, Confluence, AI)\n    service/        # Business logic (PageService, AttachmentService, PublishService, ScheduleService)\n    repository/     # JPA repositories\n    entity/         # JPA entities (Page, Attachment, Schedule, PublishLog, etc.)\n    dto/            # Request/Response DTOs\n    provider/       # Provider adapter pattern (BaseProvider, ConfluenceStubProvider)\n    scheduler/      # Background scheduler for queued pages\n    config/         # Spring configuration and properties\n    exception/      # Global exception handling\n  src/main/resources/\n    application.yml # Application configuration\nfrontend/\n  src/pages/      # ComposePage, Schedules\n  src/app/        # app component and routing\ndata/             # sqlite database (gitignored)\nstorage/attachments/ # uploaded files (gitignored)\n```\n\n## API quickstart\n\n- Health: GET /api/health\n- Upload attachment: POST /api/attachments (multipart: file, description?)\n- Create page: POST /api/pages { title, content, spaceKey, attachmentIds }\n- Publish now: POST /api/confluence/publish { pageId }\n- Schedule: POST /api/schedules { pageId, scheduledAt? }\n- List schedules: GET /api/schedules\n\n## Tests\n\n```bash\ncd backend\n./gradlew test\n```\n\n## Notes\n\n- The Confluence provider is a stub by default; configure real Confluence API integration for production.\n- For production, configure a proper database and storage, secure API tokens, and harden CORS.\n- Confluence URL and space configuration available via environment variables.\n\n## Containerization (Docker/Podman)\n\nThe repo includes Dockerfiles for backend and frontend and a docker-compose.yml for local runs with Docker or Podman.\n\n### Quickstart (Docker)\n\n- Build and run\n  ```bash\n  docker compose up --build\n  ```\n- Open\n  - Frontend: http://localhost:4200\n  - Backend: http://localhost:8080/api/health\n- Stop / clean\n  ```bash\n  docker compose down          # stop containers\n  docker compose down -v       # also remove volumes (DB/attachments)\n  ```\n\n### Quickstart (Podman)\n\n- macOS hosts require the Podman VM:\n  ```bash\n  podman machine start\n  ```\n- Build and run\n  ```bash\n  podman-compose -f podman-compose.yaml up --build\n  ```\n- Open\n  - Frontend: http://localhost:4200\n  - Backend: http://localhost:8080/api/health\n- Stop / clean\n  ```bash\n  podman-compose -f podman-compose.yaml down\n  podman-compose -f podman-compose.yaml down -v\n  ```\n\n\u003e **Note**: Both containers run as non-root users for rootless Podman compatibility. Nginx listens on port 8080 (non-privileged) inside the container.\n\n### Compose services and ports\n\n- backend\n  - Image: built from backend/Dockerfile (Spring Boot 3.4, JDK 21)\n  - Port: 8080:8080 (host:container)\n  - Runs as non-root user (`appuser`, UID 1000)\n  - Volumes: named `data` (SQLite at /data/app.db), `attachments` (/storage/attachments)\n  - Env (loaded from `.env` file):\n    - `CONFLUENCE_URL`, `CONFLUENCE_USERNAME`, `CONFLUENCE_API_TOKEN`\n    - `CONFLUENCE_DEFAULT_SPACE`, `CONFLUENCE_PROVIDER`\n    - `SCHEDULER_INTERVAL_SECONDS`, `CORS_ORIGINS`\n- frontend\n  - Image: built from frontend/Dockerfile (Angular 20, nginx)\n  - Port: 4200:8080 (host:container, nginx on non-privileged port)\n  - Build arg: `NG_APP_API_BASE=http://localhost:8080` so the browser calls the backend via host port 8080.\n\n### Customizing configuration\n\n- Backend environment variables (Spring Boot properties with `APP_` prefix):\n  - `APP_DATABASE_URL` (default `jdbc:sqlite:./data/app.db` in dev, `jdbc:sqlite:///data/app.db` in container)\n  - `APP_ATTACHMENT_DIR` (default `storage/attachments`, container uses `/storage/attachments`)\n  - `APP_CONFLUENCE_URL` (Confluence instance URL)\n  - `APP_CONFLUENCE_DEFAULT_SPACE` (default Confluence space key)\n  - `APP_CONFLUENCE_API_TOKEN` (API token for authentication)\n  - `APP_PROVIDER` (`confluence-stub` by default)\n  - `APP_SCHEDULER_INTERVAL_SECONDS` (default `5`)\n  - `APP_CORS_ORIGINS` comma-separated list of allowed origins\n- Frontend API base\n  - Set at build time via compose `build.args.NG_APP_API_BASE` (default `http://localhost:8080`).\n  - Change when deploying behind another host/port, then rebuild the frontend image.\n\n### Build images manually (optional)\n\n```bash\n# Backend image\ndocker build -t confluence-backend -f backend/Dockerfile .\ndocker run --rm -p 8080:8080 \\\n  -e APP_DATABASE_URL=jdbc:sqlite:///data/app.db \\\n  -e APP_ATTACHMENT_DIR=/storage/attachments \\\n  -v confluence_data:/data -v confluence_attachments:/storage/attachments \\\n  confluence-backend\n\n# Frontend image\ndocker build -t confluence-frontend \\\n  --build-arg NG_APP_API_BASE=http://localhost:8080 \\\n  -f frontend/Dockerfile .\ndocker run --rm -p 4200:8080 confluence-frontend\n```\n\n### Data persistence\n\n- Compose uses named volumes: `data` for the SQLite DB and `attachments` for uploaded files.\n- Remove volumes with `docker compose down -v` (or `podman compose down -v`). This will delete your DB and uploaded attachments.\n\n### Troubleshooting\n\n- Port already in use\n  - Change host ports in docker-compose.yml (e.g., `8081:8080` for backend, `4201:8080` for frontend).\n- CORS blocked\n  - Add your origin to `CORS_ORIGINS` in `.env` file and recreate containers.\n- Frontend cannot reach backend\n  - Ensure backend is mapped to host port 8080 and frontend is built with `NG_APP_API_BASE` pointing to `http://localhost:8080`.\n  - Rebuild the frontend image after changing `NG_APP_API_BASE`.\n- Podman on SELinux hosts (Linux)\n  - If you bind host directories instead of volumes, append `:Z` to volume mounts for proper labeling.\n- macOS Podman\n  - Ensure `podman machine start` before running compose commands.\n- Slow or stale frontend\n  - Rebuild frontend: `docker compose build frontend` (or Podman equivalent).\n\n## Course documentation\n\n- Overview: [doc/course/README.md](doc/course/README.md)\n- Chapters\n  1. [01. Introduction to AI](doc/course/01-introduction-to-ai/README.md)\n  2. [02. Agents](doc/course/02-agents/README.md)\n  3. [03. Setup Cursor AI](doc/course/03-setup-cursor-ai/README.md)\n  4. [04. Setup Context7](doc/course/04-setup-context7/README.md)\n  5. [05. AI-Driven Software Development](doc/course/05-ai-driven-software-development/README.md)\n  6. [06. Project: Confluence Publisher App](doc/course/06-project-confluence-publisher-app/README.md)\n\n### Additional resources\n\n- [Cursor Learn — Official Course](https://cursor.com/learn)\n- [Cursor Directory: Rules](https://cursor.directory/rules)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakarazhev%2Fai-driven-development-101","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fakarazhev%2Fai-driven-development-101","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fakarazhev%2Fai-driven-development-101/lists"}