Skip to content
dk
← All projects

bugdrop-portfolio

v1.5.0

An interactive developer portfolio that turns real-world bugs into superpowers through a gamified vending machine. Built with HTML, CSS, JavaScript and AWS Amplify.

JavaScript10 forks0 open issues & PRsMITupdated
awsaws-amplifycreative-codingcssdebuggingdeveloper-portfoliogamified-portfoliogithub-pages-alternativehtmlincident-managementinteractive-portfoliojavascriptopen-sourceportfolio-websiteserverlessstudent-developervanilla-javascriptweb-development
Stars
1
Forks
0
Created
Nov 2, 2026
Last push
Nov 2, 2026
Last commit
Nov 2, 2026
Latest release
v1.5.0

README

dsk-dev-ai/bugdrop-portfolio

BUG DROP — The Superpower Vending Machine

CI Release License: MIT

A personal portfolio for the AWS Student Builder Challenge: Build Your Tech Superpower. Instead of listing skills, BUG DROP dispenses the superpowers I earned from real bugs: every capsule opens as an incident postmortem (incident → root cause → fix → lesson → the project it made possible).

  • Live site: https://main.d37v5f104dujlp.amplifyapp.com
  • Repo: https://github.com/dsk-dev-ai/bugdrop-portfolio
  • Built with: HTML, CSS, vanilla JavaScript
  • Hosted on: AWS Amplify Hosting (+ optional API Gateway / Lambda / DynamoDB counter)

BUG DROP architecture

The creative feature

BUG DROP feature flow

  1. A blinking "PULL FOR A SUPERPOWER" hint points at the lever.
  2. Pulling the lever shakes the machine and drops a capsule.
  3. The capsule opens an incident postmortem card with a real bug, its root cause, the fix, the lesson, and the project that came out of it.
  4. The third pull unlocks a secret capsule.
  5. Opened capsules are saved to a capsule cabinet with a progress bar, so the collection can be revisited later.
  6. An unlocked profile turns the collection into domain bars (Debugging, APIs, Data, Deploy, Frontend, Security, Accessibility, Mindset) as capsules open.
  7. Every postmortem has a shareable deep link (#capsule=c03) and a copy-link button; the cabinet can open a capsule without pulling again.
  8. Export unlocked downloads the opened postmortems as Markdown, and Reset local progress replays the machine without touching the AWS counter.
  9. The lever is a real <button> and works with mouse, touch, keyboard, and screen readers.
  10. No camera, no permissions, no external API keys — the feature works even if the network API is down.

Core portfolio sections

  • About Me — who I am and how I learn.
  • Skills / Tech Superpowers — powers framed as things earned, not just listed.
  • Projects / Achievements — projects with the bug stories behind them.
  • Under the hood — a visible AWS architecture diagram, the service map, and links to the SAM template and deploy runbook.

Project structure

bugdrop-portfolio/
├─ index.html                 # single-page portfolio
├─ 404.html                   # branded not-found page
├─ manifest.webmanifest       # installable web app metadata
├─ assets/
│  ├─ css/style.css           # theme + responsive layout + animations
│  ├─ js/config.js            # API base URL + GitHub link (edit this)
│  ├─ js/core.js              # pure helpers: deep links, cabinet, progress
│  ├─ js/machine.js           # vending machine + postmortem modal
│  ├─ js/app.js               # navigation
│  ├─ js/capsules.json        # ← your bug stories live here
│  └─ img/
│     ├─ og-cover.png         # 1200x675 social cover (generated)
│     ├─ og-cover.svg         # editable source for the cover
│     ├─ icon.svg             # vector app icon
│     └─ icon-512.png         # maskable app icon
├─ backend/
│  ├─ template.yaml           # AWS SAM: HTTP API + Lambda + DynamoDB
│  └─ src/
│     ├─ handler.mjs          # /pull /stats /daily
│     ├─ lib.mjs              # pure helpers (routing, day-of-year, daily pick)
│     └─ capsules.json        # mirror used by /daily
├─ docs/
│  ├─ architecture.svg        # architecture diagram for the submission
│  ├─ feature-flow.svg        # bug → superpower flow diagram
│  ├─ screenshots/            # put your screenshots here
│  ├─ DEPLOY.md               # Amplify + SAM deployment runbook
│  ├─ PULL_REQUEST_v1.0.0.md  # release PR description
│  └─ SUBMISSION.md           # write-up ready to paste into Builder Center
├─ tests/                     # node:test suite (33 tests)
├─ .github/
│  ├─ workflows/ci.yml        # GitHub Actions: tests + lint + links + Lighthouse
│  └─ PULL_REQUEST_TEMPLATE.md
├─ amplify.yml                # Amplify Hosting build config
├─ .nvmrc                     # Node 24 for local/CI parity
├─ package.json               # dev tooling only (not needed at runtime)
└─ README.md

1. Run locally

npm install
npm run serve      # http://localhost:8080

Or with no dependencies:

python3 -m http.server 8080

Open it through a server, not file://, so capsules.json can be fetched.

2. Make it yours

Edit assets/js/capsules.json:

{
  "capsules": [
    {
      "id": "c01",
      "superpower": "The 2AM Debugger",
      "bug": "What actually broke.",
      "cause": "Why it broke.",
      "fix": "How you fixed it.",
      "lesson": "What you now always do.",
      "project": "What it helped you build.",
      "domain": "Debugging",
      "evidence": "commit / screenshot / link"
    }
  ],
  "secret": { "id": "secret", "superpower": "...", "bug": "...", "cause": "...", "fix": "...", "lesson": "...", "project": "...", "evidence": "..." }
}

Also update:

  • index.html — name, About text, skills, projects, GitHub links.
  • assets/js/config.js — github URL and, after backend deploy, apiBase.

3. Deploy to AWS Amplify Hosting (required)

The full checklist, verification steps, and troubleshooting live in docs/DEPLOY.md.

  1. Push this folder to a public GitHub repository.
  2. AWS Console → Amplify → Create new app → Host web app.
  3. Connect GitHub → choose the repo and the main branch.
  4. Amplify reads amplify.yml automatically → Save and deploy.
  5. Copy the live URL (https://main.xxxxxxxx.amplifyapp.com).
  6. Amplify serves the branded 404.html for unknown paths; no rewrite is needed for this single-page static site.
  7. Optional: App settings → Previews to build pull requests, and Domain management for a custom domain.

Keep the app running through November 23 (judging window).

4. Optional AWS serverless counter

Adds a real serverless backend to the creative feature: a global "capsules pulled" counter and a daily superpower.

Managed Builder Center projects: the “Future Unicorn” project uses a Service Control Policy that denies CloudFormation, Lambda, API Gateway, and DynamoDB creation. SAM cannot deploy there. Submit the Amplify-only site; the counter is optional. Deploy this backend only from a standalone AWS account.

cd backend
sam build
sam deploy --guided
# Stack name: bugdrop-api
# AllowedOrigin: https://main.xxxxxxxx.amplifyapp.com

Then copy the ApiBaseUrl output into assets/js/config.js:

window.BUGDROP_CONFIG = {
  apiBase: "https://abc123.execute-api.us-east-1.amazonaws.com",
  github: "https://github.com/dsk-dev-ai"
};

Push again; Amplify redeploys. The machine calls:

Method Path Purpose
POST /pull Atomically increments the global counter
GET /stats Reads the global counter
GET /daily Returns a deterministic "superpower of the day"

If the API is unreachable, the site silently falls back to a local count — the creative feature never breaks.

AWS services used (for the write-up)

Live:

  • AWS Amplify Hosting — build + deploy from GitHub, HTTPS, live URL.
  • Amazon CloudFront — global CDN delivered by Amplify.
  • Amazon S3 — Amplify-managed build artifacts and site assets.
  • AWS IAM — Amplify-managed service role.
  • AWS Budgets — cost alarm (set this in the console).

Optional backend (in repo, not deployed in the managed project):

  • Amazon API Gateway (HTTP API) — the /pull, /stats, /daily endpoints.
  • AWS Lambda (Node.js 24) — counter and daily logic.
  • Amazon DynamoDB — capsule_stats table, atomic counter item.
  • AWS IAM — least-privilege role generated by SAM.
  • Amazon CloudWatch — Lambda logs.

5. CI/CD

  • Continuous deployment: every push to main triggers an Amplify build and deploy.
  • Pull request previews: enable in Amplify → Previews.
  • GitHub Actions (.github/workflows/ci.yml):
    • html-validate — HTML correctness and accessibility hints
    • ESLint — JavaScript
    • Stylelint — CSS
    • Linkinator — broken local links
    • Lighthouse CI — performance, accessibility, best practices, SEO

Run locally:

npm run lint
npm test
npm run serve
npm run links
npm run lighthouse

6. Tests

The test suite runs on Node's built-in test runner (no extra dependencies):

npm test

It checks:

  • the capsule dataset schema, unique ids, and the secret capsule (tests/capsules.test.mjs)
  • the backend mirror matches the frontend data
  • required sections, the visible hint, and the dialog live region exist in index.html
  • every local asset referenced by index.html exists
  • deep-link parsing, cabinet progress, domain tallies, Markdown export, deduplication, and capsule lookup (tests/core.test.mjs)
  • metadata, the raster social cover (1200×675), the manifest and its icons, the 404 page, and the deploy runbook (tests/site.test.mjs)
  • dayOfYear, dailyCapsule, routeOf, and reply behave correctly (tests/lib.test.mjs)

7. Submitting

Fill the Builder Center Create a project form using docs/SUBMISSION.md. You need:

  • Live AWS URL
  • Public GitHub repo URL
  • Write-up + screenshots (portfolio and AWS implementation)
  • Tags: aws-amplify, javascript, serverless, aws-lambda, student-builders

License

MIT — see LICENSE.

Related projects

Turn any codebase into beautiful architecture diagrams — one command, no AI, no server, runs on any laptop. Zero dependencies, pure Python, agent-friendly (Cursor, Claude Code, Codex, OpenCode).

ai-agentsarchitecture-diagramcli
Pythonv1.0.0

381 merged pull requests across 30 repositories · data generated Dec 1, 2026