# 26 Week AI Engineer Roadmap

A responsive AI engineering learning site built from the 26 supplied weekly workbooks. It covers .NET AI development, Semantic Kernel, Microsoft.Extensions.AI, Azure OpenAI, RAG, agents, production practices, portfolio work, and career preparation.

## Open the site

Serve this folder from a local static web server so every page shares the same browser origin. If Python is installed, open a terminal in this folder and run:

```powershell
python -m http.server 8000
```

Then open `http://localhost:8000`. No packages or build step are required. Week pages can be opened directly from that address, for example `http://localhost:8000/weeks/week1.html`.

## Progress and notes

Daily checkmarks, milestone checkmarks, week notes, and the last opened week are saved locally for immediate use. On the private Cloudflare deployment, these course items sync to a D1 database for the signed-in Access email, so the dashboard and Continue button follow you between devices. Local data is merged with cloud data by item timestamp; each individual update is applied only if it is newer than the stored value. If the cloud service is unavailable, changes stay on the device and retry when it is online.

To enable cloud sync:

1. Connect this site folder to Cloudflare Pages using a private GitHub repository. Keep the `functions/` directory at the Pages project root; the site is plain static HTML, so no build command is needed and the output directory is `.`.
2. Create a Cloudflare D1 database and run [`schema.sql`](schema.sql) in its SQL console.
3. In the Pages project's Settings → Bindings, bind that database with the variable name `PROGRESS_DB`, then redeploy.
4. Protect the production `pages.dev` hostname with Cloudflare Access. Allow only your email and use the One-time PIN login method.
5. Add the Access application audience tag as `ACCESS_AUD` and the team issuer URL as `ACCESS_TEAM_DOMAIN` in the Pages project's production variables.

The Pages Function verifies the Cloudflare Access JWT before reading or writing progress. D1 stores one row per signed-in email and progress item. The resume builder draft, interview practice answers, and theme preference remain browser-local; they are not sent to D1. Until the Pages Function and D1 binding are deployed, the site continues to save course progress locally.

The site also includes a dark theme, search across every week's daily plan and milestones, a project gallery, an architecture diagram gallery, an interview question bank with saved practice notes, a printable resume builder, and concise AI engineering cheat sheets. The resume draft, interview practice notes, and theme preference are also stored locally in the current browser.

## Structure

- `index.html` contains the phase overview and progress dashboard.
- `weeks/week1.html` through `weeks/week26.html` contain weekly plans, milestones, notes, and previous/next navigation.
- `projects.html`, `architectures.html`, `interview-bank.html`, `resume-builder.html`, and `cheat-sheets.html` contain the roadmap tools and reference galleries.
- `functions/api/progress.js` verifies Cloudflare Access sessions and synchronizes course progress; `schema.sql` creates the D1 progress table.
- `css/styles.css` contains the responsive theme and layout.
- `js/app.js` manages roadmap progress, last-visited week, week notes, and cloud sync; `js/features.js` manages theme, search, and feature tools.
- `assets/diagrams/` contains the roadmap illustration and editable SVG architecture diagrams; `assets/icons/` contains the site mark.
- `assets/screenshots/` is reserved for project screenshots.

Weekly activities were adapted from the matching supplied Week 1 through Week 26 PDF workbook. Source learning links from the workbooks are retained where available.
