{"id":50768472,"url":"https://github.com/lightning1377/smoke-tracker-cloud-dashboard","last_synced_at":"2026-06-11T16:01:55.027Z","repository":{"id":361764511,"uuid":"1255120103","full_name":"lightning1377/smoke-tracker-cloud-dashboard","owner":"lightning1377","description":null,"archived":false,"fork":false,"pushed_at":"2026-06-01T07:17:13.000Z","size":118,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-06-01T07:25:09.738Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/lightning1377.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":"docs/security.md","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":"2026-05-31T12:36:27.000Z","updated_at":"2026-06-01T07:17:17.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/lightning1377/smoke-tracker-cloud-dashboard","commit_stats":null,"previous_names":["lightning1377/smoke-tracker-cloud-dashboard"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/lightning1377/smoke-tracker-cloud-dashboard","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightning1377%2Fsmoke-tracker-cloud-dashboard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightning1377%2Fsmoke-tracker-cloud-dashboard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightning1377%2Fsmoke-tracker-cloud-dashboard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightning1377%2Fsmoke-tracker-cloud-dashboard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lightning1377","download_url":"https://codeload.github.com/lightning1377/smoke-tracker-cloud-dashboard/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lightning1377%2Fsmoke-tracker-cloud-dashboard/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34206492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-11T02:00:06.485Z","response_time":57,"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":[],"created_at":"2026-06-11T16:01:54.124Z","updated_at":"2026-06-11T16:01:55.022Z","avatar_url":"https://github.com/lightning1377.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Smoke Tracker Cloud Dashboard\n\nA production-style AWS deployment case study for an optional cloud dashboard companion to a mobile smoke tracking app.\n\nBuilt with React, TypeScript, Node.js, MySQL, Terraform, GitHub Actions, ECS Fargate, RDS, S3, CloudFront, Secrets Manager, and CloudWatch.\n\n## Product Scope\n\nThe dashboard is an opt-in cloud companion for users who want to sync Smoke Tracker data, view long-term analytics, export history, and track reduction or limit goals across devices.\n\n## Tech Stack\n\n- Frontend: React, TypeScript, Vite, TanStack Query, React Router, Recharts\n- Backend: Node.js, TypeScript, Fastify, Prisma, Zod\n- Database: MySQL 8 on Amazon RDS\n- Auth: JWT access tokens with refresh token rotation\n- Runtime: Docker, ECS Fargate, Application Load Balancer\n- Frontend hosting: S3 and CloudFront\n- Infrastructure: Terraform\n- CI/CD: GitHub Actions\n- Secrets and logs: AWS Secrets Manager and CloudWatch\n\n## Repository Layout\n\n```txt\napps/\n  api/       Fastify API, Prisma schema, Dockerfile\n  web/       React dashboard app\npackages/\n  shared/    Shared TypeScript types and Zod schemas\ninfra/\n  terraform/ AWS infrastructure modules and dev environment\ndocs/        Architecture, deployment, security, cost, and readiness notes\n```\n\n## Local Development\n\n```sh\npnpm install\ndocker compose up -d mysql\npnpm db:generate\npnpm db:migrate\npnpm db:seed\npnpm dev\n```\n\nThe API runs on `http://localhost:4000` and the web app runs on `http://localhost:5173`.\n\nSeeded demo login:\n\n```txt\nEmail: demo@smoketracker.local\nPassword: Password123!\n```\n\n## API Surface\n\n- `POST /v1/auth/register`\n- `POST /v1/auth/login`\n- `POST /v1/auth/refresh`\n- `POST /v1/auth/logout`\n- `GET /v1/me`\n- `DELETE /v1/me`\n- `GET|POST|PATCH|DELETE /v1/smoke-items`\n- `GET|POST|PATCH|DELETE /v1/smoke-logs`\n- `GET|POST|PATCH|DELETE /v1/goals`\n- `GET /v1/analytics/summary`\n- `GET /v1/analytics/daily-stats`\n- `GET /v1/analytics/daily-target-progress`\n- `POST /v1/exports`\n- `GET /v1/exports`\n- `GET /v1/exports/:id/download-url`\n- `GET /health`\n- `GET /ready`\n\n## AWS Case Study\n\nSee the `docs/` directory for the production architecture, deployment flow, security notes, cost notes, and production-readiness checklist.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightning1377%2Fsmoke-tracker-cloud-dashboard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flightning1377%2Fsmoke-tracker-cloud-dashboard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flightning1377%2Fsmoke-tracker-cloud-dashboard/lists"}