Remove all tracked portfolio files

This commit is contained in:
StormRunner06106
2026-10-13 12:15:35 -07:00
parent 7fb83ea46c
commit aec7104f83
112 changed files with 0 additions and 15820 deletions
-25
View File
@@ -1,25 +0,0 @@
# Frontend
frontend/node_modules/
frontend/dist/
# Python
__pycache__/
*.py[cod]
.venv/
venv/
# Local configuration
.env
backend/.env
backend/data/uploads/
.vercel/
node_modules/
# Editors and operating systems
.DS_Store
Thumbs.db
.idea/
.vscode/
.vercel
.env*
-1
View File
@@ -1 +0,0 @@
3.12
-20
View File
@@ -1,20 +0,0 @@
.git
.venv
venv
**/__pycache__
**/*.pyc
**/node_modules
frontend/dist
**/.env
**/.env.*
backend/data/uploads
scripts
backend/test_*.py
backend/supabase
backend/seed_*.py
backend/connect_dropbox.py
backend/migrate_media_dropbox.py
resumes/*
!resumes/resume-v25.pdf
Alexander Herlan Resume 2024.md
Alexander Herlan Resume 2024.pdf
-36
View File
@@ -1,36 +0,0 @@
# Agent instructions
## Automatic commits
- Automatically commit every repository change made to fulfill a user prompt before ending the task, unless the user explicitly instructs otherwise.
- Keep each commit focused on the corresponding prompt and use a clear commit message describing the changes.
- Run any relevant checks before committing and report their results.
- Stage only the files or hunks changed for the current prompt. Do not include unrelated or pre-existing changes.
- If a commit cannot be completed, explain the blocker and report any changes left uncommitted.
- Do not push commits unless the user requests it.
## Question lists
- Treat prompts containing questions and accompanying company or job context
as application-answer requests. Answer each question in Alex's first-person
voice using both the supplied context and his resume and project history.
- Read `Alexander Herlan Resume 2024.md` and relevant repository project context
before drafting. Tailor the answers to the company's mission, role, and stated
priorities, selecting supported examples from Alex's experience rather than
repeating the job description or inventing qualifications to match it.
- When the user provides a list of questions, append the questions and answers
to `answers.txt` as a separate group for that request.
- Use the company name as the group heading when available. If only job context
is available, use the job title or context. If neither company nor job context
is available, use "General questions".
- Restart question numbering at 1 within each group; do not continue numbering
from previously answered groups.
- Wrap text in `answers.txt` at 80 characters per line to avoid horizontal
scrolling.
- For question-list responses, provide only concise, ready-to-use answers.
Omit preambles, clarification questions, confirmation requests, draft labels,
missing-information notes, and other commentary from the answer content.
- Use the resume, project context, and reasonable assumptions to answer directly
without asking follow-up questions. Do not invent personal experience,
credentials, project details, or outcomes; use relevant supported experience
when a specific detail is unavailable.
-193
View File
@@ -1,193 +0,0 @@
# Alexander Herlan
**Senior Software Engineer · DevOps & IT Manager**
1207 El Portal NW, Albuquerque, NM 87107<br />
[813-402-8692](tel:+18134028692) · [alexherlandev@gmail.com](mailto:alexherlandev@gmail.com) · [alex.herlan.dev](https://alex.herlan.dev) · [LinkedIn](https://linkedin.com/in/alexander-herlan) · [GitHub](https://github.com/AlexanderHerlan)
## Overview
Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.
Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.
## Experience
### Independent Software Developer / Freelancer
*2017 - Present*
I develop and support web and Android applications for freelance clients, translating business requirements into working software. My work covers membership administration, e-commerce, automated document workflows, mobile object detection, and integrations with existing systems, from implementation through deployment, client feedback, and ongoing maintenance.
#### Selected Projects
##### Irish Pension Management
*April 2025 - March 2026*
- Expanded WordPress landing pages into a PHP and PostgreSQL membership application, working with an agency partner to translate administrative requirements into application workflows.
- Implemented individual and organisational applications, qualification checks, annual payments, monthly course-progress reviews, and downloadable PDF certificates.
- Built administrative dashboards and automated programme timelines, approved-leave handling, and certificate issuance to replace manual documentation tasks.
**Technologies:** WordPress, PHP, PostgreSQL
##### [HeroEyez](https://heroeyez.com)
*June 2024 - June 2025*
- Built two Android applications in Java and Kotlin and integrated them with the existing .NET HeroEyez portal, connecting device and IP-camera feeds to an incident-response workflow.
- Implemented TensorFlow Lite firearm detection, screenshot and video evidence capture, alerts, and a Twilio-powered call workflow. Evaluated YOLO and trained and tested detection models using more than 10,000 images to address mobile hardware constraints.
- Completed and deployed the end-to-end workflow in June 2025. Broader commercial rollout was subsequently paused because of market and regulatory constraints.
**Technologies:** Android, Java, Kotlin, TensorFlow Lite, Twilio, .NET integration
##### [James & James Furniture](https://jamesandjamesfurniture.com/)
*Original build: 2017; occasional maintenance ongoing*
- Designed and developed the original e-commerce website in 2017 using WordPress and WooCommerce, customizing the theme to reflect the client's brand and creating responsive layouts for desktop and mobile shoppers.
- Implemented product catalogs and galleries, customer reviews, inventory management, promotional discounts, shipping calculators, payment gateway integrations, and a streamlined checkout process.
- Improved page loading through caching and image compression. Continue to provide occasional website maintenance and updates.
**Technologies:** WordPress, WooCommerce, PHP, responsive web design
### Covius, LLC / Senior Software Engineer
*January 2022 - April 2024 · Pompano Beach, FL*
At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.
#### Accomplishments
- Contributed to the complete redesign of a major legacy website containing extensive historical data.
- Helped manage and adapt a legacy database to support the redesigned platform.
- Built a responsive web application frontend for desktop and mobile browsers.
- Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.
- Developed frontend functionality using Angular and RxJS.
### SEAD Software / Software Engineer
*April 2021 - July 2022 · Delray Beach, FL*
At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.
#### Accomplishments
- Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.
- Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.
- Maintained and implemented Amazon Web Services infrastructure to support multiple projects
- Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure
- Maintained a large Git code repository for multiple clients
### Clarity Diagnostics & Lab Solutions / Director of IT
*September 2020 - January 2022 · Boca Raton, FL*
Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.
#### Accomplishments
- Implemented a physical keycard/badge access security system for the entire laboratory facility
- Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365
- Maintained client-facing websites
- Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment
- Managed and instructed other IT staff in their daily responsibilities
### MyTap, aka Which Craft / Lead Developer
*January 2016 - April 2020 · Albuquerque, NM*
At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.
#### Accomplishments
- Implemented a robust web scraper in Python using the Scrapy Python library
- Created a responsive web application frontend for mobile browsers
- Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.
- Maintained a Django backend serving data from a PostgreSQL database
### TriCore Reference Laboratories / Production Support Specialist
*April 2013 - January 2017 · Albuquerque, NM*
Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.
#### Accomplishments
- Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.
- Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.
- Guided medical staff through time-sensitive IT troubleshooting affecting patient care.
- Monitored critical hospital infrastructure for performance and errors, correcting them promptly.
- Trained new help desk employees on their daily tasks and responsibilities
- Remained on-call off hours for emergency assistance.
### Desert Digital Consulting / Software Engineer, Web Application Developer, IT Consultant
*October 2010 - January 2021 | Remote*
Provided freelance services in software development, web design, information technology, and computer hardware design.
## Skills
### Programming Languages
Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP (WordPress, WooCommerce), Java, Kotlin, C, C++, CoffeeScript, HTML5, CSS3, Sass
### Database Technologies
- **SQL:** Microsoft SQL Server, MySQL Server, PostgreSQL Server
- **NoSQL:** MongoDB, CouchDB, Redis
- **Other:** Microsoft Access, Microsoft Excel
### Applications
- **Programming:** Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git
- **Design:** Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign
- **Productivity:** Microsoft Office, Google Docs (Drive), WordPerfect Suite
- **Virtualization:** VMware, VirtualBox, Docker, Kubernetes
### Cloud Technologies
- Microsoft 365 and Google Workspace Administration
- Amazon Web Services (AWS) Administration
- Microsoft Azure DevOps Administration
### Other
- Jira Agile Project Management skills
- Responsive web design
- Advanced (and remote) Linux administration
- Search engine optimization (SEO) for Google and Bing
- Social media presence implementation (Facebook, Twitter, Instagram, etc.)
## Education
### University of New Mexico
BS, Computer Science
*September 2003 - September 2008*
#### Certifications
- Beginning Programming in C++
- Intermediate Programming in C++
- Advanced Visual C++
- Beginning Visual Basic
- Intermediate Visual Basic
### Central New Mexico Community College (aka TVI)
- Beginning Photoshop
- Intermediate Photoshop
- Advanced Photoshop
- Introduction to Lightwave 3D
## References
| Name | Role | Organization | Phone |
| --- | --- | --- | --- |
| David Foy | Senior Software Engineer | Covius | [407-954-1245](tel:+14079541245) |
| Warren Wright | CEO | SEAD Software | [201-988-1513](tel:+12019881513) |
| Ashley Park | Director | Clarity Diagnostics | [508-341-5387](tel:+15083415387) |
| Douglas Radecki | CEO | MyTap / Which Craft | [505-400-4636](tel:+15054004636) |
Binary file not shown.
-348
View File
@@ -1,348 +0,0 @@
# Alex Herlan Portfolio
## Website offline
The website is intentionally blank. The backend returns blank HTML with HTTP 410
for every route, including APIs, resume downloads, and static files,
with caching disabled and a `noindex` header. Background cleanup and scheduled
jobs are disabled. The frontend builds only a blank HTML page without assets.
Vercel routes all requests through the same offline backend.
Deploy the updated `main` branch and restart the production backend to apply
this shutdown. Pushing to Git alone does not stop an already-running server.
Source history and stored content are retained; reverting the shutdown commit
and redeploying restores the application. The documentation below describes
the original application when it is online.
A custom React and FastAPI portfolio built from Alex Herlan's résumé. The interface uses hand-written CSS—no Tailwind or component library. Profile, career, and skill content comes from JSON; journal articles use Supabase through FastAPI with a local JSON fallback.
## Project structure
```text
backend/
data/ Local content and article fallback
supabase/schema.sql Supabase articles table and security setup
seed_supabase.py One-time migration for the starter articles
main.py FastAPI routes, SMTP delivery, and production serving
requirements.txt
frontend/
public/ Alex's locally stored profile image
src/ React pages, components, and custom CSS
Alexander Herlan Resume 2024.pdf
Alexander Herlan Resume 2024.md
scripts/generate_resume.py Single-file Markdown → HTML → PDF generator
resumes/ Matching HTML/PDF files for each generated version
```
## Generate a resume
The standalone generator reads `Alexander Herlan Resume 2024.md`, creates a self-contained HTML document, and prints that exact HTML to PDF using Python Playwright. The template and CSS are in `scripts/generate_resume.py`. The default `--layout original` retains the sidebar design with left-column section labels, right-column content, Letter pages, and green header accents. Section starts use normal-flow grid layout to preserve the PDF text reading order. Use `--layout ats` for the optional single-column layout. Both layouts use the same Markdown and local Raleway/Lato fonts when available, with Arial as a fallback. The original PDF is only a design reference, and is not needed to run the generator.
**Selected website resume: styled version 25.** The portfolio's **Open CV** link
uses `/api/resume?v=resume-v25`, serving `resumes/resume-v25.pdf` as
`Alexander-Herlan-Resume-v25.pdf`. Its Markdown source matches
`Alexander Herlan Resume 2024.md`; both deployment configurations include this PDF.
**ATS extraction version: 26.** `resumes/resume-v26.pdf` and
`resumes/resume-v26.docx` use a plain single-column layout, explicit contact
labels, and separate job title, employer, location, and date lines. Matching
Markdown and HTML are included. Both versions contain the same career facts.
The freelance examples use HeroEyez, Irish Pension Management, and James & James
Furniture. The furniture store is dated to its 2017 original build, with occasional
maintenance ongoing. The original 2024 PDF remains a design reference. Changing the selected PDF requires a backend
deployment; editing live career content alone does not replace the download.
Generate future ATS versions with
`.venv/Scripts/python.exe scripts/generate_resume.py resumes/resume-v26.md --layout autofill --docx`.
Generating a new version does not automatically change the selected website
resume. PDF text extraction and Word reading order are checked locally; actual
application-field mapping depends on the receiving system.
The profile API derives the CV link's version from the selected `RESUME_PATH`,
so changing the selected PDF also changes the URL and bypasses previously cached
downloads. PDF responses send `Cache-Control: no-store`; the unversioned
`/api/resume` endpoint remains available. The query parameter is a cache marker,
not a selector for historical files. To check a deployment, follow the live
`/api/profile` response's `resume_url` and compare the downloaded PDF's bytes
with the selected file, rather than relying only on its filename.
Install the generator dependencies separately from the web backend:
```powershell
.venv/Scripts/python.exe -m pip install Markdown==3.10.3 playwright==1.62.0
.venv/Scripts/python.exe -m playwright install chromium
.venv/Scripts/python.exe scripts/generate_resume.py
```
Each run creates the next unused pair, such as `resumes/resume-v1.html` and `resumes/resume-v1.pdf`, then `resume-v2.html` and `resume-v2.pdf`. Existing versions are never overwritten. To choose a version or Markdown source:
```powershell
.venv/Scripts/python.exe scripts/generate_resume.py --version 2026-09
.venv/Scripts/python.exe scripts/generate_resume.py "path/to/resume.md" --version v3
```
Use `--browser msedge` or `--browser chrome` to render with an already installed browser instead of installing Chromium. `--output-dir` changes the destination; by default, output goes to the repository's `resumes` directory regardless of your working directory. You can also run the script with `uv run`, using its embedded dependency metadata (a supported browser is still required).
Markdown format: start with one `# Name`, optionally follow with a bold professional title, then contact details. Use `##` for sections, `###` for roles/categories, and smaller headings for accomplishments/projects. Italic-only paragraphs become date/location lines. Lists, links, and tables are supported; the four-column References table is formatted as individual contact lines to match the original. All resume content is read from Markdown. Generation is local and does not publish the files or change the website's existing `/api/resume` download.
Package references: [Python-Markdown](https://python-markdown.github.io/reference/) and [Playwright PDF rendering](https://playwright.dev/python/docs/api/class-page#page-pdf).
For content updates, edit the Markdown first and rerun the generator to create a new matching HTML/PDF draft pair. Do not edit generated content directly. Each HTML file records the SHA-256 of its source text in a `source-sha256` meta tag, so its source revision can be checked. The generator rejects long dashes in visible Markdown text instead of silently rewriting them in the output. Generating a new pair does not change the selected website resume. Retire superseded outputs when correcting unsupported content.
## Run locally
The sun/moon control between the navigation and admin account button switches the entire website between light and dark themes. It follows the device preference until a visitor selects a mode, then saves that choice locally and synchronizes it across tabs. The theme applies before rendering, remains selected after sign-out, and also covers forms and admin dialogs. After building the frontend, run `.venv/Scripts/python.exe -m scripts.test_theme` for isolated browser checks of persistence, device preferences, keyboard interaction, mobile header layout, and unavailable browser storage (requires Playwright and Microsoft Edge).
Create and install the Python environment from the repository root:
```powershell
python -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r backend\requirements.txt
```
Start FastAPI:
```powershell
uvicorn backend.main:app --reload --reload-dir backend --port 8000 --env-file backend\.env
```
In a second terminal, start React:
```powershell
cd frontend
npm install
npm run dev
```
Open `http://localhost:5173`. Vite proxies `/api` requests to FastAPI on port 8000.
The interface loads Roboto Flex from Google Fonts for its compact UI copy, while editorial headings keep the résumé-inspired serif treatment.
## Contact-form delivery
The form uses `POST /api/contact` and sends email through SMTP. Copy `backend/.env.example` to `backend/.env`, fill in the SMTP values, and start the API with the environment file:
```powershell
uvicorn backend.main:app --reload --reload-dir backend --port 8000 --env-file backend\.env
```
If SMTP is unavailable, the API returns a clear delivery error and the page keeps Alex's direct email, LinkedIn, and GitHub links visible.
## Journal publisher
Click the lock icon beside the header navigation and enter the journal admin password. Signing in enables **New article**, **Edit**, and **Delete** controls throughout the journal. The account icon opens the admin menu and sign-out control. You can also open `http://localhost:5173/blog/manage` directly; the page prompts you to sign in before writing.
The writing room uses Tiptap for headings, bold and italic text, lists, undo/redo, and inline font sizes. Creating, updating, and deleting articles uses Supabase when configured, or `backend/data/posts.json` in local fallback mode. Edit controls open `/blog/{slug}/edit` with the existing sections, formatting, topics, banner, and attachments. Editing a title preserves the published URL. Deleting an article requires confirmation and removes it from the journal; stored uploads remain available at their existing URLs.
Set unique production values in `backend/.env`:
```dotenv
JOURNAL_ADMIN_PASSWORD=replace-with-a-strong-password
JOURNAL_TOKEN_SECRET=replace-with-a-long-random-secret
```
The login endpoint returns a signed admin session that expires after four hours. The password remains server-side and the browser stores only the temporary token. The shared session restores after refresh and expires automatically. Every create, update, delete, and upload endpoint verifies the admin token on the server.
Reading the journal is public and independent of the admin session. Journal lists and article pages retry temporary failures once, refresh after successful sign-in, and offer **Try again** if the store remains unavailable. Existing content stays visible during failed refreshes. A temporary session-check failure preserves the saved token and can recover when the connection returns. Supabase reads use bounded retries and log the failure type/code without credentials or article content.
Use **+ Section** in the editor to add a section heading and opening paragraph. Section headings receive the same divider and uppercase drop cap as the starter articles, with formatting visible in the editor. Existing H2 headings use this styling automatically.
The media picker supports drag-and-drop or file browsing, a live banner preview with the article title and subtitle, file-size and format checks, and duplicate detection by file name and size. Uploads have individual progress, cancel, and retry controls; a failed file does not stop the remaining queue. Retry or remove pending/failed uploads before publishing. Drag an attachment row with a mouse, or briefly hold its grip handle on a touch screen, to change the order of additional photos and files. Keyboard users can focus the handle, press Space to pick up a file, use the arrow keys to move it, and press Space to drop or Escape to cancel. The new order is persisted when the article is saved. Build the frontend and run `.venv/Scripts/python.exe -m scripts.test_attachment_reordering` to verify mouse, touch, keyboard, cancellation, and order persistence in an isolated browser test (requires Playwright and Microsoft Edge). Replacing a banner keeps the previous image until the replacement uploads successfully.
The publisher accepts a banner image (JPEG, PNG, WebP, or GIF, up to 8 MB) and up to ten additional photos or files (20 MB each). The banner appears in the journal thumbnail and behind the article title and subtitle with a readability overlay; additional photos and downloadable files appear below the body. Uploads require an admin session. New uploads use Dropbox by default. The Supabase article's `banner` and each item in `attachments` contain `storage: "dropbox"` and `dropbox_file_id: "id:..."`, alongside their names, sizes, media types, and stable website URLs.
The `article_media` table stores the upload-ID-to-Dropbox-ID mapping, including uploads not yet attached to a published article. The public `/api/uploads/{upload_id}` route retrieves bytes from Dropbox by ID, so article rows never contain expiring temporary links or access tokens. Original local uploads continue to work until migrated. Saving an attachment removal or banner replacement deletes the unused file from Dropbox and removes its upload record and any local migration backup. Deleting an article also cleans up its uploaded files. Files referenced by another article are retained.
Removal intent is stored in the private `article_media_deletions` table before the article write. Upload metadata and removal-queue upserts retry temporary Supabase failures up to three times, using the same upload IDs; after a timeout or incomplete response, the server reads back the exact records to confirm whether the write already succeeded. Cleanup runs after a successful save/delete and retries pending work at backend startup and every 60 seconds; Dropbox outages do not lose deletion requests. Cleanup checks published references before deleting anything. In local mode, the queue lives in `backend/data/media-deletions.json`. The form tracks uploads removed before publishing as well; removals take effect when the form is successfully submitted. Apply the current schema to existing Supabase projects before running this version. Article writes and cleanup are serialized within the backend process; run a single backend worker for this workflow.
For an existing Supabase project, run `bash scripts/setup_supabase.sh --schema-only` to add the nullable `banner` and default-empty `attachments` columns before running the updated backend. Existing articles remain compatible.
Verify article publishing and uploads with `.venv/Scripts/python.exe -m unittest backend.test_articles`.
## Connect the owner's Dropbox account
This website uses its own server-side Dropbox API app, independently of journal admin sign-in or any chat connector. A personal Dropbox account is sufficient; it must authorize the website's developer app once.
1. In the [Dropbox App Console](https://www.dropbox.com/developers/apps), create a **Scoped access** app with **App folder** access. Enable `files.content.write` and `files.content.read` on its Permissions tab and click **Submit** to save. Keep this app's permissions limited to those needed for the website.
2. Set `DROPBOX_APP_KEY` and `DROPBOX_APP_SECRET` in `backend/.env` using the app's Settings tab. Keep these values server-side.
3. Run `.venv/Scripts/python.exe -m backend.connect_dropbox`. The helper opens the authorization URL in your browser (and prints it as a fallback). Approve access using the owner's personal account, and paste the returned code into the terminal. It uses the app's saved permissions and verifies that both required file scopes were granted before writing the refresh token directly into the ignored `backend/.env` file without printing it. Setup gives credentials in this file priority over shell variables.
4. Apply the media table with `bash scripts/setup_supabase.sh --schema-only`, if not already applied, then restart FastAPI with `--env-file backend/.env`.
If an old authorization link shows **No scope requested can be granted for this app**, rerun the updated helper and use its newly opened page. It no longer sends an explicit `scope` parameter. If setup reports missing permissions after approval, compare the App key printed by the helper with the app you edited in App Console; enable the listed permissions on that exact app, save with Submit, and rerun setup. Old links are not changed by editing the helper.
The SDK refreshes access tokens automatically using `DROPBOX_REFRESH_TOKEN`. See the [Dropbox OAuth guide](https://developers.dropbox.com/oauth-guide) for offline access. `DROPBOX_ACCESS_TOKEN` is supported for initial testing, but a short-lived token alone will eventually need replacing. New uploads fail clearly if Dropbox is not connected; they do not silently fall back to local storage.
To move existing published media to Dropbox, preview with `.venv/Scripts/python.exe -m backend.migrate_media_dropbox`, then run it with `--apply`. It uploads referenced files, updates the article rows, and preserves website image URLs and the original local files. Run the migration while article editing is paused. It can resume after a partial failure without re-uploading successfully recorded files.
For offline development only, set `JOURNAL_MEDIA_STORAGE=local`. Local files and legacy uploads use `JOURNAL_UPLOAD_DIR` (default `backend/data/uploads`). Dropbox uploads with Supabase configured do not require local file storage. If running without Supabase, upload metadata remains in that local directory and needs persistent storage.
## Edit experience and skills
Sign in with the existing admin password, then open **Experience** or **Skills** (also linked from the admin account menu). Experience supports adding, editing, and deleting roles, companies, locations, dates, summaries, highlights, technologies, and project links. Entries are displayed newest first by start date. Skills supports category CRUD, adding/removing individual skill labels, card colors, and editing the introduction and “How I work” principles. Press Enter in a label field to add it. Saves update the public website without code edits or Git pushes. Delete actions require confirmation; canceled dialogs leave published content unchanged.
Experience and skills live in the private Supabase `portfolio_content` table. Apply `backend/supabase/schema.sql` to existing projects, then run `.venv/Scripts/python.exe -m backend.seed_portfolio` once to copy the existing JSON content. Rerunning the seeder preserves content already saved in Supabase. All mutation endpoints require the same admin authentication as articles; reads remain public. Writes use version checks to avoid losing concurrent document updates. Configured Supabase failures are reported rather than falling back to outdated JSON. Local development without Supabase writes to the experience/skills JSON files.
Validation: `.venv/Scripts/python.exe -m unittest backend.test_portfolio_content`. After building the frontend, run `.venv/Scripts/python.exe -m scripts.test_portfolio_editors` for isolated browser coverage (requires Playwright and Microsoft Edge), including CRUD, public visibility, mobile forms, and keeping drafts through session recovery.
## Supabase article storage
The runtime backend needs two values from **Supabase Dashboard → Settings → API Keys**:
```dotenv
SUPABASE_URL=https://your-project-ref.supabase.co
SUPABASE_SECRET_KEY=sb_secret_replace_me
SUPABASE_ARTICLES_TABLE=articles
```
Use the new `sb_secret_...` key when available. It bypasses Row Level Security and must stay only in `backend/.env`; never add it to React or commit it. The older `service_role` key is accepted as a compatibility fallback through `SUPABASE_SERVICE_ROLE_KEY`.
To connect a project without creating anything manually in the Supabase console:
1. Add the URL, secret key, project ref, and scoped access token to `backend/.env`.
2. Run `bash scripts/setup_supabase.sh` from the repository root.
3. Restart FastAPI.
The Bash command applies `backend/supabase/schema.sql` through the Management API and imports all starter articles. Use `bash scripts/setup_supabase.sh --schema-only` when you want the table without seed data.
The access token must be project-scoped with **Database: Read-write** permission. Supabase recommends scoped access tokens for agents and automation because their reach can be limited to one project. Do not paste database passwords, access tokens, or secret keys into chat.
## Content API
- `GET /api/profile`
- `GET /api/experience`
- `GET /api/skills`
- `GET /api/posts`
- `GET /api/posts/{slug}`
- `POST /api/auth/login`
- `GET /api/auth/session`
- `POST /api/posts` (authenticated)
- `PUT /api/posts/{slug}` (authenticated)
- `DELETE /api/posts/{slug}` (authenticated)
- `POST /api/uploads` (authenticated)
- `GET /api/uploads/{upload_id}`
- `GET /api/resume`
- `POST /api/contact`
Edit the files in `backend/data` to update profile, career, and skill content. The health endpoint reports `articles: supabase` when the remote journal store is connected and `articles: json-fallback` otherwise.
## Production build
### Vercel: React and FastAPI in one project
Production: **https://alex-herlan-portfolio.vercel.app**
Google Search Console verification uses `frontend/public/google484d40c8dacd0b93.html`
(served at `/google484d40c8dacd0b93.html`) and the verification meta tag in
`frontend/index.html`. Keep both permanently, including after verification succeeds.
Use a URL-prefix property for `https://alex-herlan-portfolio.vercel.app/` and
verify with the HTML file or HTML tag method.
Vercel project: `storm-runners-projects/alex-herlan-portfolio`. Production
Supabase, Dropbox, admin, and cron secrets are configured. SMTP is not yet
configured. Deploy updates from this directory with `npx.cmd vercel --prod`.
Automatic GitHub deployments need a GitHub login connection in Vercel followed
by `npx.cmd vercel git connect` for `StormRunner06106/Alex_Portfolio`.
Deploy from the **repository root**, not `frontend/` or `backend/`. The checked-in
`vercel.json` builds React into `frontend/dist`, serves static files from Vercel's
CDN, routes `/api/*` to `api/index.py`, and handles React deep links with
`index.html`. Python 3.12 and Node.js 24 are selected in the root configuration.
Leave `VITE_API_BASE_URL` unset so browser requests use the same origin.
From a PowerShell terminal:
```powershell
npx.cmd vercel login
npx.cmd vercel link
```
Choose the desired account/team, create or select the portfolio project, and use
`.` as its root directory. Keep the framework preset as **Other**; the build,
install, output, and routing settings are already in `vercel.json`.
Before deployment, add these **server-only** environment variables to the Vercel
project's Production environment (and Preview if preview deployments need them).
Use the configured values from your local `backend/.env`; do not upload that file
or prefix secrets with `VITE_`.
| Variables | Purpose |
| --- | --- |
| `SUPABASE_URL`, `SUPABASE_SECRET_KEY`, `SUPABASE_ARTICLES_TABLE` | Persistent content and media registry |
| `JOURNAL_ADMIN_PASSWORD`, `JOURNAL_TOKEN_SECRET` | Admin login and session signing |
| `JOURNAL_MEDIA_STORAGE=dropbox` | Durable uploaded files |
| `DROPBOX_APP_KEY`, `DROPBOX_APP_SECRET`, `DROPBOX_REFRESH_TOKEN` | Dropbox connection |
| `CRON_SECRET` | A separate random secret of at least 32 characters for scheduled cleanup |
| `SMTP_HOST`, `SMTP_PORT`, `SMTP_USERNAME`, `SMTP_PASSWORD`, `SMTP_FROM_EMAIL`, `SMTP_USE_TLS`, `SMTP_USE_SSL`, `CONTACT_TO_EMAIL` | Contact email delivery; omitted SMTP settings leave the form unavailable |
The CLI also accepts each value interactively, for example
`npx.cmd vercel env add SUPABASE_SECRET_KEY production`. Management credentials
such as `SUPABASE_ACCESS_TOKEN` and `SUPABASE_PROJECT_REF` are not runtime
requirements and should remain local. The Supabase schema and portfolio seed
must already be applied as described above; deployment does not overwrite data.
Use separate storage and credentials for previews if preview edits should not
affect production content.
```powershell
npx.cmd vercel --prod
```
After deployment, check `/`, a direct link such as `/experience`,
`/api/health`, `/api/posts`, and `/api/resume`. Check admin sign-in and upload a
small file before publishing new content. The project retains the selected
`resumes/resume-v25.pdf`; local secrets, upload backups, and draft resumes are
excluded from deployment by `.vercelignore`.
Vercel uploads are limited to **4 MB per file** in both the UI and API, below
[Vercel's 4.5 MB function payload limit](https://vercel.com/docs/functions/limitations#request-body-size).
Previously stored larger Dropbox files download through short-lived redirects.
Local development retains its 8 MB banner and 20 MB attachment limits. Publishing
on Vercel requires Supabase, and uploads require Dropbox; the local filesystem
fallback is for development. Failed media deletions stay in Supabase and are
retried after article writes and by the daily production cron job (10:00 UTC).
Set `CRON_SECRET` before enabling that job. Serverless instances do not start
the continuous cleanup loop used by the local server.
References: [Python functions](https://vercel.com/docs/functions/runtimes/python/api-directory)
and [Vercel configuration](https://vercel.com/docs/project-configuration/vercel-json).
### Conventional server
```powershell
cd frontend
npm run build
cd ..
uvicorn backend.main:app --host 0.0.0.0 --port 8000
```
When `frontend/dist` exists, FastAPI serves the built single-page application and supports direct links such as `/experience` and `/blog/{slug}`.
### ATS resume (version 26)
Version 26 uses ordinary text runs and full profile URLs. Job titles, employers,
locations, and dates occupy separate lines. The current freelance role describes
the three client projects as accomplishment bullets under Self-employed, without
separate employer blocks. Reference contacts appear in a separate References
section. Organization names are italic and dates use smaller dark-gray text.
Its editable source is `resumes/resume-v26.md`.
Generate a new version from that source (existing files are never overwritten):
```powershell
.venv/Scripts/python.exe -m pip install python-docx==1.2.0
.venv/Scripts/python.exe scripts/generate_resume.py resumes/resume-v26.md --layout autofill --docx --browser msedge
```
The Word alternative uses ordinary body paragraphs without headers, text boxes,
or tables. The PDF remains selectable text. Local verification compares the full
source text, in order, against PyMuPDF and pypdf extraction and the Word body:
```powershell
.venv/Scripts/python.exe -m pip install pymupdf pypdf==6.18.1
.venv/Scripts/python.exe -m unittest discover -s scripts -p test_resume_autofill.py
```
These checks verify text extraction and structure, not a particular application's
field mapping. Confirm the populated fields after uploading. Greenhouse documents
[formatting that can interfere with resume parsing](https://support.greenhouse.io/hc/en-us/articles/200989175-Unsuccessful-resume-parse).
-888
View File
@@ -1,888 +0,0 @@
Job Application Questions and Answers
Answers are based on Alexander Herlan Resume 2024.md and repository project
context. Add future questions and answers below.
Full-stack software development role
1. This position requires expertise in managing CI/CD pipelines. Please describe
a CI/CD pipeline you have built or significantly managed, including the tools
used and the automation achieved.
Answer:
At SEAD Software, I implemented Azure DevOps development infrastructure and
worked on development pipelines for healthcare and legal applications. I
maintained a large Git repository supporting multiple clients, trained staff on
Azure DevOps, and managed supporting AWS infrastructure. This work streamlined
team coordination and development workflows. Through my related role at Clarity
Diagnostics, I also managed software quality control, deployment, and training.
Software Engineer - React/TypeScript and Go
1. What is a registered agent and why is it important? (Maximum of two
sentences)
Answer:
A registered agent is a designated person or company that receives legal
documents and official notices on behalf of a business. This provides a reliable
point of contact so the business can respond to important notices and meet legal
deadlines.
2. Please describe your 3+ years of professional experience delivering Go/Golang
software to production
Answer:
Go is part of my programming skill set, supported by extensive professional
backend and production-delivery experience. At Covius, I contributed to the
backend redesign and legacy database adaptation for RealtyBid.com. At SEAD
Software, I developed Python applications, maintained AWS infrastructure, and
improved delivery workflows with Azure DevOps. These roles built transferable
skills in API integration, data handling, deployment, and production support
that I can apply to Go development.
Source for answer 1:
https://www.sba.gov/counseling/launch-your-business/
Bicycle Health
1. What about Bicycle Health's mission resonates most with you?
Answer:
Making treatment easier to access while protecting patients' privacy resonates
most with me. At TriCore, I supported hospital staff with time-sensitive
technology issues, and at SEAD Software, I built applications for healthcare
clients. Those experiences showed me how software reliability and usability
affect the people delivering care. I want to bring that experience to a service
that helps people access ongoing opioid use disorder treatment from wherever
they are.
General questions
1. What's your preferred approach to state management in React and why?
Answer:
I prefer keeping state as close as possible to the components that use it:
useState for simple UI state, useReducer for more complex transitions, and
Context for shared concerns such as authentication. In my portfolio, I use local
state for interactions and Context for the admin session. I keep server data
separate from UI state and avoid storing values that can be derived. I introduce
a dedicated store when shared state becomes difficult to coordinate. This keeps
data flow predictable, reduces synchronization bugs, and makes components easier
to test and maintain.
General questions
1. In 150 characters or fewer, what's a performance or growth challenge you love
tackling, and how do you approach it?
Answer:
I love removing workflow bottlenecks: understand the user's friction, automate
repetitive steps, and refine the solution with feedback.
General questions
1. Tell us about an integration framework or abstraction layer you built that
had to support several different third-party systems. What didn't fit the
pattern cleanly, and how did you handle it without hard-coding a one-off?
Answer:
For my portfolio's publishing system, I built a media integration layer that
coordinates Dropbox file storage and Supabase metadata, with local storage for
development and deployment on Vercel. I used stable upload IDs and a shared
metadata format so the editor could reference files independently of their
storage location.
The difficult mismatch was failure behavior: a database timeout could happen
after a successful write, and deleting a file and its metadata involved separate
systems without a shared transaction. I handled that through reusable registry
and cleanup operations. The registry confirms uncertain writes by reading back
the expected records and limits retries to identical upserts keyed by upload
ID. Cleanup persists deletion intent, checks that files are no longer
referenced, and retains failed work for retry; the Dropbox adapter treats an
already-missing file as a successful deletion.
That kept recovery rules in shared operations used by both the media registry
and deletion queue, while provider-specific behavior stayed at the integration
boundary instead of spreading through individual editor workflows.
General questions
1. What is your desired monthly salary range (in USD) at your next role?
(Note: If you ask too high relative to your experience, you might be less
likely to get an interview.)
Answer:
I'm targeting $9,000-$11,000 USD per month before taxes, with flexibility based
on the role's responsibilities, benefits, and whether it's an employee or
contractor position.
Acuity
1. In your own words, briefly describe what makes you the ideal candidate for
this position.
Answer:
I bring a combination of software development, database experience, and
production support that fits Acuity's focus on reliable business applications.
At Covius, I helped modernize RealtyBid and its legacy database, working with QA
testers and business partners through iterative development. My experience with
Python, JavaScript, Java, and relational databases gives me a strong foundation
for building and maintaining applications. At TriCore, I independently supported
critical healthcare systems overnight, troubleshooting issues and handling
escalations. I've also trained colleagues on Azure DevOps and owned client
projects from requirements through deployment and ongoing support. I'd bring
that same accountability, practical problem-solving, and collaborative approach
to Acuity's engineering team.
General questions
1. Describe a concrete example from the last month where AI meaningfully
improved your work (tool used + impact)
Answer:
This month, I used Codex to streamline my job-application workflow. I had it
read my resume, project history, and job descriptions to draft tailored answers
grounded in my actual experience. It also saved each response in a
version-controlled answer library and checked formatting before committing
changes. This reduced repetitive writing and manual organization, making it
easier to reuse accurate examples and focus on tailoring the content to each
role.
YipitData
1. Why are you interested in this role at YipitData? What about this job
opportunity compels you?
Answer:
I am drawn to the opportunity to build shared infrastructure that helps
application and data engineers deliver dependable products. At SEAD, I enjoyed
improving development workflows and training colleagues on Azure DevOps; at
TriCore, supporting critical healthcare systems overnight taught me the
importance of reliable operations and clear escalation. This role brings those
interests together through automation, developer tooling, and production
reliability. YipitData also connects with my experience in data-driven
applications, including Python-based document processing and NLP. The
combination of hands-on ownership, a small infrastructure team, and systems
supporting meaningful analytical work is especially compelling.
SundaySky
1. What are you best at? (Add up to 5 specialities)
Answer:
My strongest specialties are:
- Full-stack web development with JavaScript, TypeScript, and Python
- End-to-end application architecture and product delivery
- API integrations, real-time updates, and workflow automation
- Relational database design and legacy platform modernization
- Cloud deployment, DevOps, and production troubleshooting
General questions
1. Describe your experience working for an early-stage startup.
Answer:
I was Lead Developer at MyTap, also known as Which Craft, a craft beer
recommendation startup, from 2016 to 2020. I worked with designers to turn the
product concept into a responsive web application. I built a Python/Scrapy
pipeline to collect online beer reviews, developed custom NLP logic to generate
flavor profiles from descriptive language, and maintained the Django/PostgreSQL
backend. My responsibilities crossed data collection, recommendation logic,
backend development, and the mobile web interface. That experience taught me to
work through evolving requirements, make practical technical choices, and take
ownership across the product. I've continued that approach in freelance
projects, handling discovery, architecture, implementation, deployment, and
client feedback.
Pilot
1. What aspects of this role and Pilot appeal to you?
Answer:
Pilot appeals to me because it combines software with financial expertise to
give small businesses more time and better information to run their companies.
Through freelance work, I've enjoyed replacing manual processes with reliable
tools, so that practical impact resonates with me.
The Infrastructure role is especially appealing because the team's work improves
how everyone else builds and ships. At SEAD Software, I developed Python
applications, maintained AWS infrastructure, and introduced Azure DevOps and
development pipelines while training colleagues on the platform. I enjoyed
making development easier for the team as well as delivering features. My
full-stack background helps me understand what product engineers need, and
supporting critical healthcare systems at TriCore taught me to take reliability
and operational ownership seriously. I'd welcome the chance to bring those
experiences together, build useful shared services, and help teammates grow.
General questions
1. Describe your experience working for an early-stage startup.
Answer:
I was Lead Developer at MyTap, also known as Which Craft, a craft beer
recommendation startup, from 2016 to 2020. Working with designers, I helped turn
the product concept into a responsive web application. I built a Python/Scrapy
pipeline to collect beer reviews, developed custom NLP logic to generate flavor
profiles, and maintained the Django/PostgreSQL backend. I worked across data
collection, recommendation logic, and the mobile web interface. That breadth
taught me to make practical technical decisions, adapt as requirements evolved,
and take ownership beyond a single part of the stack. I've continued working
that way as a freelancer, owning projects from discovery through deployment and
client feedback.
Raise - donor-facing product engineer
1. This role is for Raise, our donor-facing product, where visual polish and
design sensibility really matter. Share an example of a feature you owned end to
end (front to back) where the design/UI quality was just as important as the
functionality
Answer:
I owned the journal publishing experience on my portfolio, from the React
interface and rich-text editor to FastAPI endpoints, authentication, Supabase
persistence, and media handling. The goal was to make both writing and reading
feel polished. I built banner previews that show the article title and subtitle,
consistent section styling, and readable text over images. I also treated
interaction details as part of the design: uploads show progress and offer retry
controls, attachments can be reordered with a mouse, touch, or keyboard, and
replacing a banner preserves the existing image until the upload succeeds. I
verified publishing behavior and mobile layouts. The result is a live workflow
where authors can create visually consistent pages without editing code. I'd
bring that same attention to clarity, feedback, and visual consistency to
Raise's donor experience.
General questions
1. Describe a production bug you root-caused and fixed.
Answer:
In my portfolio's journal publisher, removing uploaded files could fail during
intermittent Supabase errors. I traced the issue to the metadata and
deletion-queue writes: the code treated a timeout or empty response as a failed
write, even when the database might already have committed it. I introduced
safely repeatable writes keyed by upload ID, read-back verification, and bounded
retries for transient failures. Permanent errors still surfaced immediately, and
article changes remained blocked if cleanup intent couldn't be confirmed. I
added regression tests for timeouts after commit, partial confirmations,
exhausted retries, and permission errors. The fix allowed temporary failures to
recover while preserving the safeguards that prevent deleting media still
referenced by an article.
General questions
1. Briefly describe a backend service or system you developed or made
significant contributions to using Python. What did you personally own, and what
technologies did you use?
Answer:
At MyTap/Which Craft, I was Lead Developer on a craft beer recommendation
platform built with Python, Django, PostgreSQL, and Scrapy. I personally built
the review-collection pipeline, wrote custom NLP logic that generated flavor
profiles from adjective frequency in reviews, and maintained the Django backend
serving data to the web application. My ownership covered data ingestion, the
core text-processing logic, and backend/database integration.
EverCommerce / SalonBiz
1. List out at least two of our company values and describe how you would
incorporate these into future positions.
Answer:
Teamwork: I would involve Product, Design, and QA early, communicate tradeoffs
clearly, and take shared responsibility for the outcome. At Covius, I refined
the RealtyBid experience with QA testers and business partners through iterative
sprints; I'd bring that same collaborative approach to SalonBiz.
Continuous learning: I would use code reviews, pairing, and retrospectives to
improve my own work and share what I learn. At SEAD Software, I introduced Azure
DevOps and trained colleagues to use it. In future roles, I'd continue improving
delivery practices, addressing recurring technical problems, and helping
teammates grow. Both reflect [EverCommerce's
values](https://www.evercommerce.com/about-us/).
2. What is your definition of success in this role?
Answer:
Success means making SalonBiz easier and more dependable for salon teams while
helping engineering deliver improvements consistently. I'd apply my Angular and
RxJS experience to build responsive, maintainable interfaces, work with Product,
Design, and QA to validate solutions, and ship in small, well-tested releases.
I'd agree on measures such as task completion time, frontend errors, feature
adoption, and related support requests, then use those results to guide further
improvements. Success also includes owning production issues, reducing technical
debt that slows delivery, and sharing knowledge so the team becomes more
effective over time.
Evolve
1. Which one of Evolve's 6 values do you connect with the most? Why?
Answer:
[Care](https://evolve.com/careers) resonates with me most because good
engineering includes responsibility for the people depending on the system. At
TriCore, I handled overnight production monitoring and support on my own,
helping medical staff resolve time-sensitive problems affecting patient care.
That experience taught me to stay calm, communicate clearly, and take ownership
of issues through resolution or escalation. At Evolve, I'd bring that same care
to reliable owner and guest experiences and to helping teammates work through
difficult problems.
Bitwarden
1. Tell us a little bit about why you want to work at Bitwarden.
Answer:
I want to work at Bitwarden because it makes strong security practical for
everyday users, and its open-source approach puts transparency at the center of
that work. Autofill and form detection particularly interest me because small
browser interactions can have a big impact on usability and trust. At Covius, I
built Angular/RxJS interfaces and worked with QA to refine desktop and mobile
experiences. In my own projects, I've used Playwright to check keyboard
interactions, persistence, and browser edge cases. I'd enjoy bringing that
debugging and testing mindset to Bitwarden, learning the extension's internals,
and collaborating with the community to make secure habits easier to maintain.
General questions
1. Tell us about a specific time you reduced cloud data processing costs. What
levers did you pull, what didn't work, and what was the actual measured result?
Answer:
My closest example is reducing data handling in my portfolio's Vercel
deployment. Proxying large Dropbox files through the application ran into the
function's payload limit, so I redirected existing files larger than 4 MB to
temporary download URLs. Smaller downloads retained cache headers. A regression
test checks that a 5 MB download returns a redirect without fetching the file
through the backend. The concrete improvement was removing that file transfer
from the application's processing path; I did not measure a before-and-after
cloud bill.
2. Describe a project where you owned the architecture end-to-end. What is the
single decision you're least proud of in hindsight, and what would you do
differently?
Answer:
I owned my portfolio's architecture across React, FastAPI, authentication,
publishing, storage integrations, and deployment. The decision I'd revisit is
starting mutable content and uploads with local filesystem storage before
settling the deployment model. That worked locally, but the Vercel deployment
needed durable external storage. I moved content and metadata to Supabase, files
to Dropbox, and added guards that prevent publishing without the required
storage. I'd define persistence and deployment requirements first and test the
complete write path in a deployment-like environment much earlier.
3. Describe a specific latency or throughput problem you personally debugged in
a production system. Walk us through your hypothesis process - and importantly,
what you got wrong before you got it right.
Answer:
In my portfolio's publishing system, Supabase timeouts caused media-removal
saves to fail. The initial implementation treated a timeout or empty response as
evidence that the write had failed. The key correction was recognizing that the
database could commit successfully before its response was lost. I added
exact-record read-back verification and bounded retries of identical upserts
keyed by upload ID. Tests cover a committed write followed by a timeout, partial
confirmation, and exhausted retries. A confirmed write now completes without
another write; genuinely unconfirmed cleanup still blocks the article mutation.
4. What is the highest-scale system you've worked on? Give us a rough sense of
throughput or data volume, and describe the hardest constraint you personally
had to solve for.
Answer:
TriCore was the broadest production environment I supported: healthcare systems
serving multiple regional hospitals, with a daytime support team of about 60
staff and me handling overnight monitoring, troubleshooting, and escalation.
That describes operational scope; I don't have a verified transaction-rate or
storage-volume figure to quote. My hardest constraint was maintaining effective
coverage alone while issues could affect patient care. I monitored record
transfers between different hospital systems, helped medical staff resolve
urgent problems, and escalated issues that required additional expertise.
Greenlight
1. Have you built production systems using Python/Django & React?
Answer:
Yes, across separate projects. At MyTap, I maintained the Python/Django and
PostgreSQL backend for a recommendation platform. My deployed portfolio uses
React with a Python/FastAPI backend for content publishing, authentication, and
file management. My Django and React experience comes from different
applications.
General questions
1. What are some of your personal interests/hobbies? We'd love to get to know
more about yourself
Answer:
Outside of work, I enjoy listening to music, occasional PC gaming, and tinkering
with personal tech projects. I'm interested in AI and web design, and I like
learning by building things and trying out new ideas. My portfolio website gives
me a fun way to explore both the technical and creative sides of development.
Raise
1. This role is for Raise, our donor-facing product, where visual polish and
design sensibility really matter. Share an example of a feature you owned end to
end (front to back) where the design/UI quality was just as important as the
functionality.
Answer:
I owned the journal publishing experience on my portfolio end to end, from the
React editor and custom CSS to FastAPI endpoints, authentication, Supabase, and
file storage. Because the published articles represent my work, visual
consistency mattered as much as saving content correctly. I built live banner
previews, readable text overlays, and consistent typography and section styling.
I also made uploads show progress and offer retries, preserved the existing
banner until its replacement uploaded successfully, and supported attachment
reordering by mouse, touch, or keyboard. The result is a live publishing
workflow that produces polished pages without editing code. I'd bring that same
attention to visual hierarchy, clear feedback, and dependable interactions to
Raise's donor experience.
Raise
1. In two or three sentences, tell us exactly what to inspect and what you
personally contributed.
Answer:
Inspect the journal at https://alex-herlan-portfolio.vercel.app/blog and open an
article on desktop and mobile to review the typography, visual hierarchy, and
responsive layout. I designed and built the React interface and custom CSS, plus
the FastAPI backend, authentication, Supabase persistence, and media-upload
workflow.
ElevenLabs
1. Have you used ElevenLabs - even in a personal or side project? What did you
build or explore?
Answer:
I haven't used ElevenLabs in a project yet. My closest relevant experience is
integrating Twilio into customer messaging and a safety-alert call workflow.
A first project I'd like to explore is audio narration for my portfolio's
journal, with a simple playback experience and controls for reviewing generated
speech before publishing.
Nourish
1. Why are you interested in working at Nourish?
Answer:
I'm interested in Nourish because making nutrition care easier to access
connects directly to the healthcare work I've done. At TriCore, I supported
hospital systems and patient-record transfers, and at SEAD I built software to
digitize laboratory documents. Those roles showed me how much dependable
software matters to the people delivering care. I'd like to bring that
experience, along with my backend, PostgreSQL, and AWS work, to Nourish's
patient and operational workflows. The opportunity to own services from product
decisions through deployment is especially appealing.
AZX
1. Describe a time you significantly improved the reliability, performance, or
maintainability of an existing system. (1-2 sentences)
Answer:
I improved my FastAPI journal's media cleanup by adding a durable queue in
Supabase, automatic retries, and checks protecting files still referenced by
published articles. Failed Dropbox deletions now remain pending for later
processing, with regression tests covering recovery and preservation of shared
media.
2. In a high-throughput FastAPI application using PostgreSQL, you need to
implement a feature that involves writing data to the database, but also
performing a relatively slow, external API call (e.g., to a third-party service
for enrichment or notification) that doesn't need to block the primary database
write operation. Describe your approach to integrating this external API call.
Specifically, discuss the technical patterns you would use within the FastAPI
application and any considerations for ensuring data consistency or handling
failures in the external call.
Answer:
I'd use an async PostgreSQL driver and commit the primary record plus an outbox
job in one transaction, then return the record ID with the external work marked
pending. A dispatcher would publish committed jobs to a durable queue for
separate workers, closing the failure window between saving data and scheduling
the call. FastAPI's BackgroundTasks can handle small, best-effort work after the
response, but I'd choose durable execution here because in-process tasks can be
lost on restart.
The worker would reuse an httpx.AsyncClient with explicit timeouts, bounded
concurrency, and provider rate limits. It would receive record IDs and open its
own database sessions, holding no database transaction or connection during the
external call. I'd save results and job status in a short transaction, checking
record versions so delayed enrichment cannot overwrite newer data.
I'd assume at-least-once delivery, use stable provider idempotency keys and
idempotent database updates, and reconcile uncertain outcomes when the provider
lacks idempotency support. Transient failures would get capped exponential
backoff with jitter, honoring Retry-After; permanent or exhausted failures would
remain visible for review and replay. The primary write would stay committed if
the external call failed. I'd expose pending/succeeded/failed status, monitor
queue age and failure rates, and test crashes around commit, dispatch, and
completion.
GameChanger
1. Why do you want to work at GameChanger?
Answer:
I'm drawn to GameChanger because it helps families stay connected to moments
that matter and gives coaches useful tools to support young players. The
Basketball team's mix of live updates, reliable backend services, and clear web
experiences fits the work I enjoy. At Covius, I contributed to RealtyBid's
frontend and backend redesign, including a responsive interface with real-time
auction updates. I'd like to bring that experience to a product where getting
the details right helps a coach teach or a family follow a game they can't
attend.
Resend
1. Why do you want to join us?
Answer:
I want to join Resend because I enjoy making other developers' work easier, and
email is a place where reliable infrastructure and a clear interface both
matter. I've built integrations with Twilio and Google Cloud Vision, and at SEAD
I improved development pipelines and trained colleagues on Azure DevOps. That
work made me appreciate how much time thoughtful tools can save a team. I'd
enjoy bringing that perspective to Resend's SDKs and integrations, staying close
to developers' feedback and owning improvements through release and ongoing
support.
2. Tell us a little bit about your favorite Open Source project!
Answer:
I'd pick FastAPI. I use it for my portfolio's backend, including authenticated
publishing, uploads, and Supabase integration. I especially like how Python
types and Pydantic models feed into request validation and generated OpenAPI
documentation. That keeps the API contract close to the implementation and makes
it easier to explore endpoints and understand expected inputs. It's a good
example of developer tooling that removes repetitive work while keeping the
underlying behavior understandable.
General questions
1. Have you previously worked at a B2B SaaS company? If so, please list the
company names.
Answer:
Yes. SEAD Software and Covius, LLC.
General questions
1. Describe your experience building your own agents, automations, or tooling to
make yourself or your team faster (such as custom agent workflows, MCP servers
or scripts).
Answer:
My custom tooling includes a Python/Playwright resume generator that produces
versioned documents from Markdown, with tests checking PDF and Word text
extraction. I've also built Supabase setup scripts and a resumable
media-migration tool that preserves existing URLs and original files. At SEAD, I
improved development pipelines and trained colleagues on Azure DevOps. For
agent-assisted work, I maintain repository instructions covering project
conventions, relevant checks, and focused commits. These tools make repeated
work easier to reproduce and reduce manual setup, formatting, and verification.
2. Describe your awareness of AI security and data-handling risks.
Answer:
I'm aware that prompt injection in retrieved content or tool output can redirect
an agent, expose data, or trigger unintended actions. Permissions need to be
enforced outside the model, with narrowly scoped credentials and human review
for destructive actions. Before sharing private code or customer data, I'd
confirm permitted use and the provider's retention and training policies, then
minimize or redact the context. I also review generated code for authorization
gaps and unsafe dependencies. In my own tooling, credentials stay server-side,
and my Dropbox setup helper saves tokens without printing them.
General questions
1. Describe a production bug you root-caused and fixed.
Answer:
In my portfolio's journal publisher, removing uploaded files could fail during
intermittent Supabase errors. I traced the problem to metadata and
deletion-queue writes: a timeout or empty response was treated as failure even
when the database might have committed the write. I added idempotent upserts
keyed by upload ID, read-back verification of every record, and bounded retries
for transient failures. Permanent errors still surfaced, and article changes
stayed blocked if cleanup intent couldn't be confirmed. Regression tests cover
timeouts after commit, partial confirmations, exhausted retries, and permission
failures. This allowed transient failures to recover without weakening the
protections around article changes.
Evolve
1. Which one of Evolve's 6 values do you connect with the most? Why?
Answer:
[Care](https://evolve.com/careers) is the value I connect with most. At TriCore,
I independently supported healthcare systems overnight, helping medical staff
resolve time-sensitive problems affecting patient care. That taught me to stay
calm, communicate clearly, and take responsibility for resolving an issue or
getting the right help. I bring that same mindset to software development: think
about the person affected by a bug, make failure states understandable, and
follow through on the fix. At Evolve, I'd apply it to both owner and guest
experiences and to supporting my teammates.
General questions
1. Tell us about your professional PHP development experience, including any
experience with Laravel and MVC frameworks.
Answer:
My professional PHP experience includes building James & James Furniture's
original WordPress/WooCommerce store in 2017 and providing occasional
maintenance. I customized themes and implemented catalogs, payment integrations,
checkout, inventory management, discounts, and shipping calculations. My broader
framework experience includes maintaining a Django/PostgreSQL backend at MyTap,
with separation between data models, request handling, and presentation. For a
Laravel role, I'd bring that PHP, database, and MVC-style development foundation
while learning Laravel's specific conventions.
2. Tell us about your experience with event-sourced or event-driven
architecture.
Answer:
My experience centers on event-driven workflows and asynchronous processing. At
Covius, I developed Angular and RxJS functionality for RealtyBid, where
asynchronous updates kept users informed of auction status. In my portfolio's
FastAPI backend, I built a persistent media-cleanup queue coordinating Supabase
and Dropbox. It records deletion intent, protects files still in use, and
retries failed operations safely. That work has made me attentive to
idempotency, partial failures, and recovery when operations span multiple
systems.
3. Share a little bit about your experience mentoring others on your team and
helped push the team forward.
Answer:
At SEAD Software, I implemented Azure DevOps infrastructure and trained
colleagues to use it, helping improve team coordination and development
workflows. As Director of IT at Clarity Diagnostics, I guided IT staff and
managed software quality control, deployment, and training. I also trained new
help desk employees at TriCore. My approach is practical: explain the reasoning,
work through real problems, and help people become more independent while
improving the processes the whole team relies on.
General questions
1. Tell us about one production LLM feature you've shipped - what it did, what
was tricky, what you'd do differently.
Answer:
My closest shipped example is HeroEyez's computer-vision workflow, using
TensorFlow Lite. I built two Android apps that connected firearm detection from
device and IP-camera feeds to evidence capture, alerts, and Twilio calls through
an existing .NET portal. The challenge was making detection work within mobile
hardware constraints; I evaluated models and trained and tested with more than
10,000 images. I deployed the complete workflow in June 2025, although broader
commercial rollout was later paused. If I built it again, I'd establish a
repeatable on-device evaluation suite earlier, measuring latency, false alarms,
and missed detections across devices and lighting conditions.
2. Share a few sentences on a data architecture decision you made that you're
proud of that shows off your design thinking skills in complex PostgreSQL
schema or multi-tenant architecture design.
Answer:
In my portfolio's PostgreSQL/Supabase backend, I separated articles, upload
metadata, and pending media deletions because each has a different lifecycle.
Articles combine constrained relational fields with JSONB content, while upload
IDs provide stable keys for retryable metadata writes. For Dropbox cleanup, I
persist removal intent before changing an article, verify the write, and
recheck references before deleting files. That accepts temporary leftover files
during outages while protecting published content and preserving the work
needed to recover.
3. Optional: a link to a project, repo, or piece of writing that shows how you
think.
Answer:
https://alex-herlan-portfolio.vercel.app/
I built its React/FastAPI publishing workflow, including Supabase persistence
and recoverable media cleanup. It shows how I connect interface design with
reliable backend behavior.
General questions
1. How have AI tools changed the way you work as an engineer, and what part of
the job do you see as yours? Ground your answer in a recent, specific example.
If you've chosen not to use them much, tell us why.
Answer:
AI tools help me move faster through code exploration, implementation, and test
drafting. I spend more of my attention on defining the behavior I want and
checking that the result actually delivers it.
Recently, I worked with AI assistance on media cleanup in my portfolio's FastAPI
backend. A Supabase timeout could occur after a database write had committed,
leaving the application unsure whether cleanup had been recorded. The fix
combined idempotent writes, read-back verification, and bounded retries, with
regression tests for committed timeouts, partial results, and permanent errors.
My responsibility was deciding what safe recovery meant: article changes must
stay blocked if cleanup intent cannot be confirmed, and files still in use must
remain protected. AI helps produce and examine the implementation; I own the
requirements, review the evidence, and remain accountable for what ships.
General questions
1. In 5-6 sentences, describe a time you had to scale a software application
that wasn't built to scale. What broke first, and how did you fix it?
Answer:
I ran into this while adapting my React/FastAPI publishing application,
originally built around local storage and backend-proxied downloads, for
deployment on Vercel. The first hard limit was media delivery: routing larger
attachments through the backend exceeded the serverless function's response-size
limit. I changed downloads for existing files over 4 MB to redirect to short-
lived Dropbox URLs, taking the file transfer out of the application process. I
also moved persistent content and upload metadata to Supabase, kept files in
Dropbox, and enforced upload limits in both the interface and API. A regression
test verifies that a 5 MB attachment returns a redirect without the backend
fetching its contents. That removed the oversized-download bottleneck and
reinforced my approach to scaling: identify the constrained resource, move work
to the right layer, and verify the behavior before adding capacity.
Foundant
1. What motivates you to work at Foundant, and how do you think this role aligns
with your career goals?
Answer:
What attracts me to Foundant is the chance to turn ideas into useful tools for
organizations doing social good. At MyTap, I worked across Python data
collection, NLP, a Django/PostgreSQL backend, and a mobile web interface,
collaborating with designers to build a recommendation product. I enjoy that
breadth and the opportunity to learn from people using what I build. This role
fits my goal of taking more ownership of product discovery, using my engineering
experience and AI-assisted development to test ideas quickly and refine them
around user feedback.
2. If we asked your closest colleagues to describe you in three words, what
would they say?
Answer:
I think they'd say curious, dependable, and collaborative. I've explored NLP at
MyTap, handled overnight production support at TriCore, and helped colleagues
adopt Azure DevOps at SEAD.
3. Which of Foundant's values or initiatives resonates most with you, and why?
Our values include collaboration, innovation, and community impact.
Answer:
Community impact resonates most with me. Supporting hospital staff at TriCore
and managing IT at Clarity showed me how much people's work depends on
technology they can trust and use confidently. At Foundant, I'd like to apply
that perspective to reducing administrative friction for grantmakers and
nonprofits, so they can spend more time supporting the communities they serve.
Spade
1. What sparked your interest in Spade? Just a sentence or two is fine - note
that we want to hear from the authentic you, so we ask that you please refrain
from using AI here. Thank you.
Answer:
Spade's work with messy transaction data caught my attention because I tackled a
related problem at MyTap, using Python and NLP to extract flavor profiles from
beer reviews. I like the combination of practical data problems and owning
backend systems on a small team.
-4
View File
@@ -1,4 +0,0 @@
"""Vercel ASGI entrypoint; the React build is served separately by the CDN."""
from backend.main import app
__all__ = ["app"]
-43
View File
@@ -1,43 +0,0 @@
# Where contact-form messages should be delivered.
CONTACT_TO_EMAIL=alexwherlan@gmail.com
# SMTP connection used by POST /api/contact.
SMTP_HOST=smtp.example.com
SMTP_PORT=587
SMTP_USERNAME=your-smtp-username
SMTP_PASSWORD=your-smtp-password
SMTP_FROM_EMAIL=portfolio@example.com
SMTP_USE_TLS=true
SMTP_USE_SSL=false
# Comma-separated origins allowed to call the API during development.
FRONTEND_ORIGINS=http://localhost:5173
# Lightweight journal publisher authentication. Use long, unique values in production.
JOURNAL_ADMIN_PASSWORD=replace-with-a-strong-password
JOURNAL_TOKEN_SECRET=replace-with-a-long-random-secret
# Vercel's daily media cleanup job authenticates with this server-only secret.
# Generate a unique random value of at least 32 characters for production.
CRON_SECRET=
# Persistent upload directory; defaults to backend/data/uploads.
# Mount durable storage here when deploying to a host with an ephemeral filesystem.
# JOURNAL_UPLOAD_DIR=/var/lib/portfolio/uploads
# Article uploads go to Dropbox; use local only for offline development.
JOURNAL_MEDIA_STORAGE=dropbox
DROPBOX_APP_KEY=
DROPBOX_APP_SECRET=
DROPBOX_REFRESH_TOKEN=
# Optional short-lived token for initial testing; refresh tokens are preferred.
DROPBOX_ACCESS_TOKEN=
# Server-only Supabase article storage. Prefer the new sb_secret_ key.
SUPABASE_URL=https://your-project-ref.supabase.co
SUPABASE_SECRET_KEY=sb_secret_replace_me
SUPABASE_ARTICLES_TABLE=articles
# Optional: only needed to apply schema changes through the Management API.
SUPABASE_PROJECT_REF=your-project-ref
SUPABASE_ACCESS_TOKEN=sbp_your_scoped_personal_access_token
-2
View File
@@ -1,2 +0,0 @@
"""Alex Herlan portfolio API package."""
-64
View File
@@ -1,64 +0,0 @@
"""Run python -m backend.connect_dropbox to authorize the owner's Dropbox once."""
import getpass
import os
import webbrowser
from pathlib import Path
from dotenv import dotenv_values, set_key
from dropbox import DropboxOAuth2FlowNoRedirect
REQUIRED_SCOPES = frozenset({"files.content.write", "files.content.read"})
def main():
env_path = Path(__file__).with_name(".env")
# Setup edits this file, so a stale shell variable must not select another app.
settings = {**os.environ, **dotenv_values(env_path)}
key = (settings.get("DROPBOX_APP_KEY") or "").strip()
secret = (settings.get("DROPBOX_APP_SECRET") or "").strip()
if not key or not secret:
raise SystemExit("Add DROPBOX_APP_KEY and DROPBOX_APP_SECRET to backend/.env first. Create the app at https://www.dropbox.com/developers/apps (App Folder access).")
flow = DropboxOAuth2FlowNoRedirect(
key, secret, token_access_type="offline",
# Omitting scope asks Dropbox for the permissions saved in App Console.
# Check the actual grant below before persisting credentials.
timeout=30,
)
url = flow.start()
print(f"Using App key: {key} (compare with your Dropbox app's Settings tab).")
print("Requesting the permissions saved in that app's Permissions tab.")
print("Enable files.content.read and files.content.write there, then click Submit.")
print("Opening Dropbox. Review the permissions and approve using the owner's account.")
print("If the browser does not open, copy this entire URL:")
print(url)
try:
webbrowser.open(url)
except webbrowser.Error:
pass # The printed URL also works on servers without a browser.
code = getpass.getpass("Paste the authorization code here (hidden): ").strip()
if not code:
raise SystemExit("No authorization code entered; no credentials were saved.")
try:
result = flow.finish(code)
except Exception as exc:
raise SystemExit(f"Dropbox authorization failed ({type(exc).__name__}). Try again; no credentials were saved.") from None
if not result.refresh_token:
raise SystemExit("Dropbox did not issue a refresh token. Run setup again.")
granted_scopes = result.scope or []
if isinstance(granted_scopes, str):
granted_scopes = granted_scopes.split()
missing = REQUIRED_SCOPES - set(granted_scopes)
if missing:
raise SystemExit(
"Dropbox authorization succeeded, but the app did not grant: "
+ ", ".join(sorted(missing))
+ f". In App Console, select the app with App key {key}, enable these "
"permissions, click Submit, and rerun setup. No credentials were saved."
)
set_key(str(env_path), "DROPBOX_REFRESH_TOKEN", result.refresh_token)
set_key(str(env_path), "JOURNAL_MEDIA_STORAGE", "dropbox")
print("Dropbox connected. Refresh token saved in backend/.env. Restart FastAPI, then migrate existing article media if needed.")
if __name__ == "__main__":
main()
-167
View File
@@ -1,167 +0,0 @@
[
{
"id": "independent",
"company": "Self-employed",
"role": "Software Developer / Freelancer",
"location": "Remote",
"start": "2017-06",
"end": null,
"summary": "I develop and support web and Android applications for freelance clients, translating business requirements into working software. My work covers membership administration, e-commerce, automated document workflows, mobile object detection, and integrations with existing systems, from implementation through deployment, client feedback, and ongoing maintenance.",
"highlights": [
"Irish Pension Management: Expanded WordPress landing pages into a PHP/PostgreSQL membership platform with an agency partner, supporting individual and organisational applications, qualifications, annual payments, and course-progress reviews. Built administrative dashboards and automated programme timelines, approved-leave handling, and PDF certificate issuance to replace manual documentation workflows.",
"HeroEyez: Built two Java/Kotlin Android applications integrated with the existing .NET portal, connecting TensorFlow Lite detection from device and IP-camera feeds to screenshots, video evidence, alerts, and a Twilio call workflow. Evaluated detection models and trained and tested with more than 10,000 images to address mobile hardware constraints. Deployed the complete workflow in June 2025; broader commercial rollout was later paused.",
"James & James Furniture: Designed and developed the original WordPress/WooCommerce store in 2017, with a branded responsive theme, product catalogs and galleries, customer reviews, inventory management, discounts, shipping calculators, payment integrations, and checkout. Improved page loading through caching and image compression, and continue to provide occasional website maintenance and updates."
],
"technologies": [
"PHP",
"PostgreSQL",
"WordPress",
"WooCommerce",
"Android",
"Java",
"Kotlin",
"TensorFlow Lite",
"Twilio",
".NET integration"
],
"projects": [
{
"name": "HeroEyez",
"period": "Jun 2024 - Jun 2025",
"href": "https://heroeyez.com"
},
{
"name": "James & James Furniture",
"period": "Original build: 2017; maintenance ongoing",
"href": "https://jamesandjamesfurniture.com/"
}
]
},
{
"id": "covius",
"company": "Covius, LLC",
"role": "Senior Software Engineer",
"location": "Pompano Beach, FL",
"start": "2022-01",
"end": "2024-04",
"summary": "At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.",
"highlights": [
"Contributed to the complete redesign of a major legacy website containing extensive historical data.",
"Helped manage and adapt a legacy database to support the redesigned platform.",
"Built a responsive web application frontend for desktop and mobile browsers.",
"Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.",
"Developed frontend functionality using Angular and RxJS."
],
"technologies": [
"Angular",
"RxJS",
"REST APIs",
"JavaScript",
"SQL"
]
},
{
"id": "sead",
"company": "SEAD Software",
"role": "Software Engineer",
"location": "Delray Beach, FL",
"start": "2021-04",
"end": "2022-07",
"summary": "At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.",
"highlights": [
"Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.",
"Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.",
"Maintained and implemented Amazon Web Services infrastructure to support multiple projects.",
"Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure.",
"Maintained a large Git code repository for multiple clients."
],
"technologies": [
"Python",
"Google Cloud Vision",
"Twilio",
"AWS",
"Azure DevOps"
]
},
{
"id": "clarity",
"company": "Clarity Diagnostics & Lab Solutions",
"role": "Director of IT",
"location": "Boca Raton, FL",
"start": "2020-09",
"end": "2022-01",
"summary": "Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.",
"highlights": [
"Implemented a physical keycard/badge access security system for the entire laboratory facility.",
"Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365.",
"Maintained client-facing websites.",
"Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment.",
"Managed and instructed other IT staff in their daily responsibilities."
],
"technologies": [
"IT Leadership",
"Google Workspace",
"Microsoft 365",
"Security",
"QA"
]
},
{
"id": "mytap",
"company": "MyTap / Which Craft",
"role": "Lead Developer",
"location": "Albuquerque, NM",
"start": "2016-01",
"end": "2020-04",
"summary": "At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.",
"highlights": [
"Implemented a robust web scraper in Python using the Scrapy Python library.",
"Created a responsive web application frontend for mobile browsers.",
"Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.",
"Maintained a Django backend serving data from a PostgreSQL database."
],
"technologies": [
"Python",
"Scrapy",
"NLP",
"Django",
"PostgreSQL"
]
},
{
"id": "tricore",
"company": "TriCore Reference Laboratories",
"role": "Production Support Specialist",
"location": "Albuquerque, NM",
"start": "2013-04",
"end": "2017-01",
"summary": "Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.",
"highlights": [
"Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.",
"Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.",
"Guided medical staff through time-sensitive IT troubleshooting affecting patient care.",
"Monitored critical hospital infrastructure for performance and errors, correcting them promptly.",
"Trained new help desk employees on their daily tasks and responsibilities.",
"Remained on-call off hours for emergency assistance."
],
"technologies": [
"Production Support",
"Healthcare IT",
"Monitoring",
"Incident Response",
"Training"
]
},
{
"id": "desert-digital-consulting",
"company": "Desert Digital Consulting",
"role": "Software Engineer, Web Application Developer, IT Consultant",
"location": "Remote",
"start": "2010-10",
"end": "2021-01",
"summary": "Provided freelance services in software development, web design, information technology, and computer hardware design.",
"highlights": [],
"technologies": [],
"projects": []
}
]
-177
View File
@@ -1,177 +0,0 @@
[
{
"slug": "calm-systems-in-critical-environments",
"title": "Calm Systems in Critical Environments",
"excerpt": "What overnight healthcare support taught me about observability, escalation, and designing for the person under pressure.",
"published_at": "2013-10-16",
"read_time": 5,
"tags": ["Healthcare IT", "Operations", "Reliability"],
"accent": "mint",
"content": [
{
"heading": "The interface is part of the incident response",
"paragraphs": [
"In a critical environment, the best interface is rarely the one with the most information. It is the one that helps a tired person identify the next useful action. Clear severity, an obvious owner, and a short trail of recent events matter more than a decorative dashboard.",
"Production support made this tangible for me. When a patient-facing workflow is interrupted, uncertainty grows faster than the technical problem. Good systems reduce that uncertainty by making state visible and escalation paths explicit."
]
},
{
"heading": "Design for the handoff",
"paragraphs": [
"A fix is only half of an incident. The other half is leaving a useful record for the next person: what happened, what was checked, what changed, and what still needs attention. That small discipline compounds into organizational memory.",
"I now carry the same principle into software engineering. Logs should explain behavior, alerts should point toward decisions, and runbooks should be written for the moment when context is scarce. Reliability is a product experience for the people operating the product."
]
}
]
},
{
"slug": "turning-beer-reviews-into-flavor-maps",
"title": "Turning Beer Reviews into Flavor Maps",
"excerpt": "A practical early NLP experiment: translating messy, enthusiastic review text into a useful recommendation signal.",
"published_at": "2016-06-09",
"read_time": 6,
"tags": ["Python", "NLP", "Scrapy"],
"accent": "peach",
"content": [
{
"heading": "Start with the language people already use",
"paragraphs": [
"Beer reviews are expressive, inconsistent, and full of useful sensory language. That made them an interesting source for a recommendation engine. Instead of asking users to learn a rigid flavor taxonomy, we could learn from the adjectives reviewers naturally repeated.",
"The first challenge was collection. A Scrapy pipeline gathered public review text, normalized obvious variations, and retained enough source context to investigate outliers later. Clean provenance mattered because a mysterious score is difficult to improve."
]
},
{
"heading": "Simple models can create real value",
"paragraphs": [
"The flavor profiles began with frequency, weighting, and domain-specific synonym groups. It was not a giant language model; it was a focused tool with a clear job. That constraint made the output easier to explain and tune with the product team.",
"The lesson has aged well: use the smallest model that reliably improves the experience. Sophistication is valuable when it earns its place through better outcomes, not when it merely makes the architecture sound impressive."
]
}
]
},
{
"slug": "scrapy-pipelines-that-age-well",
"title": "Scrapy Pipelines That Age Well",
"excerpt": "Patterns for keeping a web-scraping system observable, respectful, and maintainable as source sites evolve.",
"published_at": "2018-03-22",
"read_time": 7,
"tags": ["Python", "Scrapy", "Data Engineering"],
"accent": "blue",
"content": [
{
"heading": "Assume the source will change",
"paragraphs": [
"A scraper is an agreement with a document you do not control. Selectors change, fields disappear, and a page that looked uniform reveals a decade of edge cases. The maintainable response is to isolate extraction rules, validate every record, and make failures visible before they quietly poison downstream data.",
"I prefer small spiders with explicit responsibilities and item pipelines that handle normalization. Fixtures from real pages make regression tests useful, while per-source metrics reveal whether a deployment changed yield or quality."
]
},
{
"heading": "Politeness is architecture",
"paragraphs": [
"Rate limits, caching, retries, and clear identification are not optional finishing touches. They shape the system. A respectful crawler is less likely to create operational trouble and usually produces more consistent data as a side effect.",
"The best scraping pipeline is boring to operate. It resumes safely, explains skipped records, and lets a developer update one source without fearing a cascade of unrelated changes."
]
}
]
},
{
"slug": "growing-it-without-growing-chaos",
"title": "Growing IT Without Growing Chaos",
"excerpt": "A field guide to scaling a small organization’s technology through standards, documentation, and sensible defaults.",
"published_at": "2020-11-12",
"read_time": 5,
"tags": ["IT Leadership", "Security", "Operations"],
"accent": "yellow",
"content": [
{
"heading": "Consistency is a form of leverage",
"paragraphs": [
"Small organizations often grow through a series of urgent, reasonable exceptions. Soon every laptop, account, and workflow has its own history. The first step toward scale is not buying a larger platform—it is agreeing on a small number of defaults.",
"Identity, device setup, shared storage, physical access, and offboarding deserve documented paths. A consistent baseline makes support faster and security easier to reason about."
]
},
{
"heading": "Meet people where the work happens",
"paragraphs": [
"Policies fail when they ignore daily constraints. In a laboratory, uptime, traceability, and physical workflow are connected. Technology decisions have to account for gloves, shared stations, regulated data, and the cost of interrupting a test process.",
"Good IT leadership combines standards with observation. Spend time with the people doing the work, remove the friction that creates workarounds, and make the secure path the natural path."
]
}
]
},
{
"slug": "from-paper-to-structured-data-with-vision-ai",
"title": "From Paper to Structured Data with Vision AI",
"excerpt": "Lessons from using cloud computer vision to categorize laboratory documents without hiding uncertainty from operators.",
"published_at": "2021-07-08",
"read_time": 7,
"tags": ["AI", "Computer Vision", "Python"],
"accent": "lavender",
"content": [
{
"heading": "Recognition is only the first step",
"paragraphs": [
"An OCR or vision service can return impressive output while still leaving the product team with the difficult work: deciding which text matters, how confident the system should be, and when a person needs to review the result.",
"For laboratory documents, I treated extraction as a pipeline. Image quality checks came first, recognition second, domain validation third, and classification last. Keeping those stages separate made errors explainable."
]
},
{
"heading": "Build uncertainty into the workflow",
"paragraphs": [
"The safest automation does not pretend every prediction is equal. Confidence thresholds, structured validation, and a review queue allow a system to move quickly on clear cases while giving ambiguous documents the attention they deserve.",
"That human review is not a failure of AI. It is part of a complete product. Each correction can improve rules, training data, and monitoring, creating a feedback loop grounded in real operations."
]
}
]
},
{
"slug": "real-time-angular-without-the-tangle",
"title": "Real-Time Angular Without the Tangle",
"excerpt": "How to use RxJS as a clear model for changing state instead of letting streams spread complexity through an application.",
"published_at": "2022-05-19",
"read_time": 8,
"tags": ["Angular", "RxJS", "Frontend"],
"accent": "blue",
"content": [
{
"heading": "Name the events that matter",
"paragraphs": [
"A real-time auction interface has several clocks running at once: the server’s state, the user’s intent, network latency, and the visible countdown. RxJS is useful because it gives those changes a vocabulary, but only if streams correspond to meaningful product events.",
"I start by naming the sources and defining which one is authoritative. Server events update the canonical auction state. Local actions can create an optimistic state, but they remain distinguishable until acknowledged."
]
},
{
"heading": "Keep the view boring",
"paragraphs": [
"The component should receive a coherent view model rather than coordinate half a dozen subscriptions. Combining streams at a boundary keeps templates predictable and makes loading, reconnecting, and error states testable.",
"Reactive code is clearest when it reads like a timeline. Explicit cancellation, narrow side effects, and descriptive operators help the next engineer understand not just what updates, but why."
]
}
]
},
{
"slug": "modern-apis-over-legacy-data",
"title": "Modern APIs Over Legacy Data",
"excerpt": "A careful approach to modernizing the experience around a mature database while protecting the history inside it.",
"published_at": "2023-09-14",
"read_time": 7,
"tags": ["REST APIs", "Databases", "Architecture"],
"accent": "mint",
"content": [
{
"heading": "History is part of the domain",
"paragraphs": [
"A legacy database is often described as a technical obstacle, but its irregularities usually encode years of business decisions. Replacing it without understanding that history can produce a cleaner schema and a less correct product.",
"A modern API can act as a translation boundary. It gives new clients consistent resources and validation while isolating the rules required to work safely with older records."
]
},
{
"heading": "Migrate in observable steps",
"paragraphs": [
"I favor small, measurable transitions: introduce the boundary, compare old and new behavior, backfill with reconciliation reports, and only then retire a legacy path. Every stage should have a way to answer whether data was lost or behavior changed.",
"Modernization succeeds when users experience steady improvement and operators retain confidence. The architecture matters, but trust is the real migration target."
]
}
]
}
]
-52
View File
@@ -1,52 +0,0 @@
{
"name": "Alexander Herlan",
"display_name": "Alex Herlan",
"title": "Senior Software Engineer · DevOps & IT Manager",
"eyebrow": "Full-stack engineer · AI builder · systems thinker",
"headline": "I build dependable software for ideas that need to work in the real world.",
"summary": "I’m a hands-on software engineer with more than 27 years across full-stack development, cloud infrastructure, IT leadership, and user experience. I turn complex requirements into calm, useful products—from responsive web platforms and legacy-system modernization to data processing and real-time operational tools.",
"availability": "Open to thoughtful product and engineering work",
"portrait": "/alexander-herlan.png",
"resume_url": "/api/resume",
"socials": [
{
"label": "Email",
"value": "alexherlandev@gmail.com",
"href": "mailto:alexherlandev@gmail.com",
"kind": "email"
},
{
"label": "LinkedIn",
"value": "alexander-herlan",
"href": "https://linkedin.com/in/alexander-herlan",
"kind": "linkedin"
},
{
"label": "GitHub",
"value": "AlexanderHerlan",
"href": "https://github.com/AlexanderHerlan",
"kind": "github"
}
],
"interests": [
{
"label": "Go to Spotify",
"note": "Often playing",
"href": "https://open.spotify.com/user/orbitrix",
"kind": "spotify"
},
{
"label": "Open Instagram",
"note": "Life outside code",
"href": "https://www.instagram.com/alexanderherlan2/",
"kind": "instagram"
},
{
"label": "Find me on Steam",
"note": "Occasionally gaming",
"href": "https://steamcommunity.com/profiles/76561197961799136",
"kind": "steam"
}
],
"focus": ["Product engineering", "Applied AI", "Cloud systems"]
}
-41
View File
@@ -1,41 +0,0 @@
{
"intro": "A broad toolkit shaped by shipping products, supporting critical systems, and learning whatever the work requires.",
"principles": [
"Solve the operational problem, not just the ticket",
"Make complex systems feel understandable",
"Leave the codebase easier to change"
],
"categories": [
{
"name": "Languages & Web",
"description": "From service layers to responsive interfaces.",
"accent": "blue",
"items": ["Python", "JavaScript", "TypeScript", "Go", "PHP", "Java", "Kotlin", "C / C++", "HTML5", "CSS3", "Sass"]
},
{
"name": "Frameworks & Runtime",
"description": "Tools for building focused, maintainable products.",
"accent": "lavender",
"items": ["FastAPI", "Django", "Flask", "React", "Angular", "RxJS", "Node.js", "WordPress", "WooCommerce"]
},
{
"name": "AI & Data",
"description": "Practical machine intelligence and reliable data layers.",
"accent": "peach",
"items": ["TensorFlow Lite", "Computer Vision", "Natural Language Processing", "Scrapy", "PostgreSQL", "SQL Server", "MySQL", "MongoDB", "Redis"]
},
{
"name": "Cloud & Delivery",
"description": "Infrastructure that supports the product without stealing the show.",
"accent": "mint",
"items": ["AWS", "Azure DevOps", "Docker", "Kubernetes", "Linux", "Git", "CI/CD"]
},
{
"name": "Product & Operations",
"description": "The connective work that turns software into an outcome.",
"accent": "yellow",
"items": ["System Architecture", "REST APIs", "Responsive Design", "UX Collaboration", "Technical Support", "IT Leadership", "Jira", "Google Workspace", "Microsoft 365"]
}
]
}
-84
View File
@@ -1,84 +0,0 @@
"""Server-only Dropbox access. Browser clients only receive media identifiers."""
import os
import re
from functools import lru_cache
import dropbox
from dropbox.exceptions import ApiError, AuthError, DropboxException
from fastapi import HTTPException
from requests.exceptions import RequestException
@lru_cache(maxsize=1)
def get_dropbox():
refresh = os.getenv("DROPBOX_REFRESH_TOKEN", "").strip()
access = os.getenv("DROPBOX_ACCESS_TOKEN", "").strip()
key = os.getenv("DROPBOX_APP_KEY", "").strip()
secret = os.getenv("DROPBOX_APP_SECRET", "").strip()
if not (refresh and key) and not access:
raise HTTPException(503, "Dropbox uploads are not connected. Configure the server's Dropbox app credentials.")
return dropbox.Dropbox(
oauth2_refresh_token=refresh or None, oauth2_access_token=access or None,
app_key=key or None, app_secret=secret or None,
timeout=30, max_retries_on_error=0, max_retries_on_rate_limit=0,
)
def upload(data: bytes, upload_id: str, name: str) -> str:
# A UUID prevents clashes. With App Folder access this path is inside the app's folder.
safe_name = re.sub(r'[\\/:*?"<>|\x00-\x1f]', "_", name)[:120]
try:
result = get_dropbox().files_upload(
data, f"/article-{upload_id}-{safe_name}",
mode=dropbox.files.WriteMode.add, autorename=False, mute=True,
)
return result.id
except AuthError as exc:
# Never return 401 here: Dropbox authorization is separate from journal sign-in.
raise HTTPException(503, "Dropbox needs to be reconnected by the site owner.") from exc
except (DropboxException, RequestException) as exc:
raise HTTPException(502, "Dropbox could not store this file. Please retry.") from exc
def temporary_link(file_id: str) -> str:
"""Serve existing large files directly, outside the function payload limit."""
try:
return get_dropbox().files_get_temporary_link(file_id).link
except AuthError as exc:
raise HTTPException(503, "Dropbox needs to be reconnected by the site owner.") from exc
except (DropboxException, RequestException) as exc:
raise HTTPException(502, "This file is temporarily unavailable from Dropbox. Please retry.") from exc
def download(file_id: str, limit: int) -> bytes:
try:
metadata, response = get_dropbox().files_download(file_id)
try:
if metadata.size > limit:
raise HTTPException(502, "The stored file exceeds the upload limit.")
data = bytearray()
for chunk in response.iter_content(64 * 1024):
data.extend(chunk)
if len(data) > limit:
raise HTTPException(502, "The stored file exceeds the upload limit.")
return bytes(data)
finally:
response.close()
except AuthError as exc:
raise HTTPException(503, "Dropbox needs to be reconnected by the site owner.") from exc
except (DropboxException, RequestException) as exc:
raise HTTPException(502, "This file is temporarily unavailable from Dropbox. Please retry.") from exc
def delete(file_id: str) -> None:
try:
get_dropbox().files_delete_v2(file_id)
except AuthError as exc:
raise HTTPException(503, "Dropbox needs to be reconnected by the site owner.") from exc
except ApiError as exc:
# A retry may follow a successful Dropbox delete and failed database cleanup.
if exc.error.is_path_lookup() and exc.error.get_path_lookup().is_not_found():
return
raise HTTPException(502, "Dropbox could not delete this file. Deletion will be retried.") from exc
except (DropboxException, RequestException) as exc:
raise HTTPException(502, "Dropbox could not delete this file. Deletion will be retried.") from exc
-713
View File
@@ -1,713 +0,0 @@
from __future__ import annotations
import hashlib
import hmac
import json
import logging
import os
import re
import smtplib
import ssl
import threading
import time
import io
from uuid import uuid4
from urllib.parse import quote
from datetime import date
from email.message import EmailMessage
from functools import lru_cache
from pathlib import Path
from typing import Any, Literal
from fastapi import Depends, FastAPI, Header, HTTPException, Query, Request, status
from PIL import Image, UnidentifiedImageError
from fastapi.middleware.cors import CORSMiddleware
from fastapi.responses import FileResponse, RedirectResponse, Response
from pydantic import BaseModel, EmailStr, Field
from starlette.concurrency import run_in_threadpool
from httpx import TransportError
from supabase import Client, ClientOptions, PostgrestAPIError, create_client
from backend import dropbox_storage, media_cleanup, media_registry, portfolio_content
BASE_DIR = Path(__file__).resolve().parent
PROJECT_DIR = BASE_DIR.parent
DATA_DIR = BASE_DIR / "data"
FRONTEND_DIST = PROJECT_DIR / "frontend" / "dist"
# Pin the website to the selected resume; generating a draft must not publish it.
RESUME_PATH = PROJECT_DIR / "resumes" / "resume-v25.pdf"
POSTS_PATH = DATA_DIR / "posts.json"
POSTS_LOCK = threading.Lock()
ADMIN_TOKEN_TTL = 60 * 60 * 4
UPLOAD_DIR = Path(os.getenv("JOURNAL_UPLOAD_DIR", str(DATA_DIR / "uploads"))).resolve()
MAX_UPLOAD_BYTES = 20 * 1024 * 1024
logger = logging.getLogger("uvicorn.error")
def on_vercel() -> bool:
return os.getenv("VERCEL") == "1"
class ArticleMedia(BaseModel):
url: str = Field(pattern=r"^/api/uploads/[a-f0-9]{32}$")
name: str = Field(min_length=1, max_length=200)
media_type: str = Field(max_length=100)
size: int = Field(gt=0, le=MAX_UPLOAD_BYTES)
storage: Literal["dropbox"] | None = None
dropbox_file_id: str | None = Field(default=None, pattern=r"^id:[A-Za-z0-9_-]+$", max_length=200)
app = FastAPI(
title="Alex Herlan Portfolio API",
description="Supabase-ready content and contact delivery for Alex Herlan's portfolio.",
version="1.1.0",
# The website is offline; do not start background storage cleanup.
docs_url=None,
redoc_url=None,
openapi_url=None,
)
origins = [
origin.strip()
for origin in os.getenv("FRONTEND_ORIGINS", "http://localhost:5173").split(",")
if origin.strip()
]
app.add_middleware(
CORSMiddleware,
allow_origins=origins,
allow_credentials=True,
allow_methods=["GET", "POST", "PUT", "DELETE"],
allow_headers=["*"],
)
@app.middleware("http")
async def site_offline(request: Request, call_next) -> Response:
"""Keep every page, API, and file unavailable without deleting stored data."""
return Response(
# A minimal document avoids the browser's built-in error screen.
content="<!doctype html><html><head><title></title></head><body></body></html>",
status_code=410,
media_type="text/html",
headers={"Cache-Control": "no-store", "X-Robots-Tag": "noindex, nofollow"},
)
class ContactPayload(BaseModel):
name: str = Field(min_length=2, max_length=100)
email: EmailStr
subject: str = Field(min_length=3, max_length=160)
message: str = Field(min_length=20, max_length=5000)
company: str = Field(default="", max_length=200)
class LoginPayload(BaseModel):
password: str = Field(min_length=1, max_length=200)
class NewPostPayload(BaseModel):
title: str = Field(min_length=5, max_length=160)
excerpt: str = Field(min_length=20, max_length=360)
published_at: date
read_time: int = Field(ge=1, le=60)
tags: list[str] = Field(min_length=1, max_length=6)
accent: Literal["blue", "lavender", "peach", "yellow", "mint"] = "mint"
content: dict[str, Any]
banner: ArticleMedia | None = None
attachments: list[ArticleMedia] = Field(default_factory=list, max_length=10)
discarded_uploads: list[str] = Field(default_factory=list, max_length=100, exclude=True)
@lru_cache(maxsize=8)
def read_data(filename: str) -> Any:
path = DATA_DIR / filename
if not path.is_file():
raise HTTPException(status_code=500, detail=f"Missing data file: {filename}")
return json.loads(path.read_text(encoding="utf-8"))
@lru_cache(maxsize=1)
def get_supabase() -> Client | None:
url = os.getenv("SUPABASE_URL", "").strip()
key = (
os.getenv("SUPABASE_SECRET_KEY", "").strip()
or os.getenv("SUPABASE_SERVICE_ROLE_KEY", "").strip()
)
if not url and not key:
return None
if not url or not key:
raise HTTPException(
status_code=500,
detail="Supabase configuration is incomplete.",
)
return create_client(url, key, options=ClientOptions(
postgrest_client_timeout=8,
auto_refresh_token=False,
persist_session=False,
))
def articles_table() -> str:
table = os.getenv("SUPABASE_ARTICLES_TABLE", "articles").strip()
if not re.fullmatch(r"[a-z][a-z0-9_]*", table):
raise HTTPException(status_code=500, detail="Invalid Supabase table name.")
return table
def read_article_query(query: Any) -> Any:
# Bound reads to two attempts, including SDK retries. Never retry mutations.
for attempt in range(2):
try:
return query.retry(False).execute()
except Exception as exc:
code = str(getattr(exc, "code", ""))
transient = isinstance(exc, TransportError) or (
isinstance(exc, PostgrestAPIError) and code in {"500", "502", "503", "504", "520", "522", "524"}
)
# Log the error type and code, not credentials, article data, or response bodies.
safe_code = code if re.fullmatch(r"[A-Za-z0-9_]{1,20}", code) else "unknown"
logger.warning("Journal read failed: type=%s code=%s attempt=%s", type(exc).__name__, safe_code, attempt + 1)
if transient and attempt == 0:
time.sleep(0.2)
continue
raise HTTPException(status_code=502, detail="The journal store is temporarily unavailable. Please try again.") from exc
def article_records(include_content: bool = True) -> list[dict[str, Any]]:
client = get_supabase()
if client is None:
records = read_data("posts.json")
if include_content:
return records
return [
{key: value for key, value in post.items() if key != "content"}
for post in records
]
columns = "slug,title,excerpt,published_at,read_time,tags,accent,banner,attachments"
if include_content:
columns += ",content"
response = read_article_query(
client.table(articles_table()).select(columns).order("published_at", desc=True)
)
return response.data or []
def tiptap_plain_text(document: dict[str, Any]) -> str:
fragments: list[str] = []
def walk(node: Any) -> None:
if isinstance(node, dict):
text = node.get("text")
if isinstance(text, str):
fragments.append(text)
for child in node.get("content", []):
walk(child)
elif isinstance(node, list):
for child in node:
walk(child)
walk(document)
return " ".join(fragments).strip()
def journal_credentials() -> tuple[str, str]:
if on_vercel() and get_supabase() is None:
raise HTTPException(503, "Configure Supabase before publishing on Vercel.")
password = os.getenv("JOURNAL_ADMIN_PASSWORD", "")
token_secret = os.getenv("JOURNAL_TOKEN_SECRET", "")
if not password or not token_secret:
raise HTTPException(
status_code=status.HTTP_503_SERVICE_UNAVAILABLE,
detail="Journal publishing is not configured.",
)
return password, token_secret
def issue_admin_token() -> tuple[str, int]:
_, token_secret = journal_credentials()
expires_at = int(time.time()) + ADMIN_TOKEN_TTL
payload = str(expires_at)
signature = hmac.new(
token_secret.encode("utf-8"), payload.encode("utf-8"), hashlib.sha256
).hexdigest()
return f"{payload}.{signature}", expires_at
def require_admin(authorization: str | None = Header(default=None)) -> None:
if not authorization or not authorization.startswith("Bearer "):
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Admin sign-in required.",
)
token = authorization.removeprefix("Bearer ").strip()
try:
expires, supplied_signature = token.split(".", maxsplit=1)
expires_at = int(expires)
except (TypeError, ValueError):
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Invalid admin session.",
)
_, token_secret = journal_credentials()
expected_signature = hmac.new(
token_secret.encode("utf-8"), expires.encode("utf-8"), hashlib.sha256
).hexdigest()
if expires_at <= int(time.time()) or not hmac.compare_digest(
supplied_signature, expected_signature
):
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="Your admin session has expired. Please sign in again.",
)
def post_slug(title: str) -> str:
slug = re.sub(r"[^a-z0-9]+", "-", title.casefold()).strip("-")
if not slug:
raise HTTPException(status_code=422, detail="The title needs letters or numbers.")
return slug
@app.get("/api/health")
def health() -> dict[str, str]:
return {
"status": "ok",
"articles": "supabase" if get_supabase() is not None else "json-fallback",
}
@app.get("/api/cron/media-cleanup", include_in_schema=False)
def scheduled_media_cleanup(authorization: str | None = Header(default=None)):
secret = os.getenv("CRON_SECRET", "")
if not secret or not hmac.compare_digest(authorization or "", f"Bearer {secret}"):
raise HTTPException(401, "Unauthorized")
media_cleanup.cleanup_pending()
return {"status": "completed"}
@app.get("/api/profile")
def profile() -> dict[str, Any]:
# A new selection must bypass PDFs cached under the previous download URL.
return {
**read_data("profile.json"),
"resume_url": f"/api/resume?v={RESUME_PATH.stem}",
}
portfolio_content.register_routes(app, require_admin)
@app.post("/api/auth/login")
def admin_login(payload: LoginPayload) -> dict[str, Any]:
password, _ = journal_credentials()
if not hmac.compare_digest(payload.password, password):
raise HTTPException(
status_code=status.HTTP_401_UNAUTHORIZED,
detail="That password is not correct.",
)
token, expires_at = issue_admin_token()
return {
"access_token": token,
"token_type": "bearer",
"expires_at": expires_at,
"expires_in": ADMIN_TOKEN_TTL,
"role": "admin",
}
@app.get("/api/auth/session")
def admin_session(_: None = Depends(require_admin)) -> dict[str, Any]:
return {"authenticated": True, "role": "admin"}
@app.get("/api/posts")
def posts(
q: str | None = Query(default=None, max_length=100),
tag: str | None = Query(default=None, max_length=50),
) -> list[dict[str, Any]]:
all_posts = article_records(include_content=False)
query = q.casefold().strip() if q else None
requested_tag = tag.casefold().strip() if tag else None
filtered: list[dict[str, Any]] = []
for post in all_posts:
searchable = " ".join(
[post["title"], post["excerpt"], " ".join(post["tags"])]
).casefold()
if query and query not in searchable:
continue
if requested_tag and requested_tag not in {
post_tag.casefold() for post_tag in post["tags"]
}:
continue
filtered.append({key: value for key, value in post.items() if key != "content"})
return sorted(filtered, key=lambda item: item["published_at"], reverse=True)
def uploaded_media(upload_id: str) -> dict[str, Any]:
if not re.fullmatch(r"[a-f0-9]{32}", upload_id):
raise HTTPException(status_code=404, detail="File not found.")
metadata = UPLOAD_DIR / f"{upload_id}.json"
if metadata.is_file():
local = json.loads(metadata.read_text(encoding="utf-8"))
if local.get("storage") == "dropbox" or (UPLOAD_DIR / upload_id).is_file():
return local
client = get_supabase()
if client is not None:
result = read_article_query(client.table("article_media").select("metadata").eq("upload_id", upload_id).limit(1))
if result.data:
return result.data[0]["metadata"]
raise HTTPException(status_code=404, detail="File not found.")
def save_media_metadata(upload_id: str, metadata: dict[str, Any]) -> None:
client = get_supabase()
if client is not None:
try:
media_registry.upsert(client, "article_media", [{"upload_id": upload_id, "metadata": metadata}])
except Exception as exc:
raise HTTPException(502, "The file uploaded, but its record could not be saved. Please retry.") from exc
else:
UPLOAD_DIR.mkdir(parents=True, exist_ok=True)
(UPLOAD_DIR / f"{upload_id}.json").write_text(json.dumps(metadata), encoding="utf-8")
def store_upload(data: bytes, upload_id: str, metadata: dict[str, Any]) -> dict[str, Any]:
storage = os.getenv("JOURNAL_MEDIA_STORAGE", "dropbox").strip().lower()
if on_vercel() and (storage != "dropbox" or get_supabase() is None):
raise HTTPException(503, "Vercel uploads require Dropbox and Supabase storage.")
if storage == "dropbox":
metadata = {**metadata, "storage": "dropbox", "dropbox_file_id": dropbox_storage.upload(data, upload_id, metadata["name"])}
save_media_metadata(upload_id, metadata)
elif storage == "local":
UPLOAD_DIR.mkdir(parents=True, exist_ok=True)
(UPLOAD_DIR / upload_id).write_bytes(data)
(UPLOAD_DIR / f"{upload_id}.json").write_text(json.dumps(metadata), encoding="utf-8")
else:
raise HTTPException(500, "Invalid journal media storage setting.")
return metadata
@app.post("/api/uploads", status_code=201)
async def upload_media(
request: Request,
name: str = Query(min_length=1, max_length=200),
purpose: Literal["banner", "attachment"] = "attachment",
_: None = Depends(require_admin),
) -> dict[str, Any]:
limit = 8 * 1024 * 1024 if purpose == "banner" else MAX_UPLOAD_BYTES
if on_vercel():
limit = min(limit, 4 * 1024 * 1024)
data = bytearray()
async for chunk in request.stream():
data.extend(chunk)
if len(data) > limit:
raise HTTPException(status_code=413, detail=f"Choose a file smaller than {limit // (1024 * 1024)} MB.")
if not data:
raise HTTPException(status_code=422, detail="The selected file is empty.")
media_type = "application/octet-stream"
try:
with Image.open(io.BytesIO(data)) as photo:
photo.verify()
media_type = {"JPEG": "image/jpeg", "PNG": "image/png", "WEBP": "image/webp", "GIF": "image/gif"}.get(photo.format, media_type)
except (UnidentifiedImageError, OSError, ValueError, Image.DecompressionBombError):
pass
if purpose == "banner" and not media_type.startswith("image/"):
raise HTTPException(status_code=422, detail="Choose a valid JPEG, PNG, WebP, or GIF banner.")
upload_id = uuid4().hex
metadata = {"url": f"/api/uploads/{upload_id}", "name": name.replace("\\", "/").split("/")[-1] or "attachment", "media_type": media_type, "size": len(data)}
return await run_in_threadpool(store_upload, bytes(data), upload_id, metadata)
@app.get("/api/uploads/{upload_id}", response_model=None)
def download_media(upload_id: str):
media = uploaded_media(upload_id)
if media.get("storage") == "dropbox":
if on_vercel() and media["size"] > 4 * 1024 * 1024:
return RedirectResponse(dropbox_storage.temporary_link(media["dropbox_file_id"]),
status_code=307, headers={"Cache-Control": "no-store"})
data = dropbox_storage.download(media["dropbox_file_id"], MAX_UPLOAD_BYTES)
disposition = "inline" if media["media_type"].startswith("image/") else "attachment"
return Response(data, media_type=media["media_type"], headers={
"Content-Disposition": f"{disposition}; filename*=UTF-8''{quote(media['name'], safe='')}",
"X-Content-Type-Options": "nosniff",
"Cache-Control": "public, max-age=3600",
})
return FileResponse(
UPLOAD_DIR / upload_id,
media_type=media["media_type"],
filename=media["name"],
content_disposition_type="inline" if media["media_type"].startswith("image/") else "attachment",
headers={"X-Content-Type-Options": "nosniff"},
)
def validated_article(payload: NewPostPayload, slug: str) -> dict[str, Any]:
clean_tags = list(dict.fromkeys(tag.strip() for tag in payload.tags if tag.strip()))
if not clean_tags:
raise HTTPException(status_code=422, detail="Add at least one topic tag.")
if any(len(tag) > 40 for tag in clean_tags):
raise HTTPException(status_code=422, detail="Topic tags must be 40 characters or fewer.")
article = payload.model_dump(mode="json")
article["slug"] = slug
article["tags"] = clean_tags
def canonical_media(media):
if media is None:
return None
stored = uploaded_media(media["url"].rsplit("/", 1)[-1])
canonical = ArticleMedia.model_validate(stored).model_dump()
# An editor can remain open while its local files are migrated to Dropbox.
# The upload URL and file details are unchanged; resolve the new storage
# fields from the server without trusting a client-supplied Dropbox ID.
if (media["storage"] is None and media["dropbox_file_id"] is None
and canonical["storage"] == "dropbox" and canonical["dropbox_file_id"]):
media = {**media, "storage": canonical["storage"],
"dropbox_file_id": canonical["dropbox_file_id"]}
if canonical != media:
raise HTTPException(status_code=422, detail="An attachment is invalid. Please upload it again.")
return stored
article["banner"] = canonical_media(article["banner"])
article["attachments"] = [canonical_media(media) for media in article["attachments"]]
if article["banner"] and not article["banner"]["media_type"].startswith("image/"):
raise HTTPException(status_code=422, detail="The banner must be an image.")
if article["content"].get("type") != "doc" or len(tiptap_plain_text(article["content"])) < 40:
raise HTTPException(status_code=422, detail="The article body is too short.")
if len(json.dumps(article["content"], ensure_ascii=False)) > 250_000:
raise HTTPException(status_code=422, detail="The formatted article is too large.")
return article
def save_local_posts(records: list[dict[str, Any]]) -> None:
# Call while holding POSTS_LOCK so readers only see a complete replacement.
temporary_path = POSTS_PATH.with_suffix(".json.tmp")
temporary_path.write_text(
json.dumps(records, indent=2, ensure_ascii=False) + "\n", encoding="utf-8"
)
temporary_path.replace(POSTS_PATH)
read_data.cache_clear()
@app.post("/api/posts", status_code=status.HTTP_201_CREATED)
@media_cleanup.serialized
def create_post(
payload: NewPostPayload, _: None = Depends(require_admin)
) -> dict[str, Any]:
slug = post_slug(payload.title)
article = validated_article(payload, slug)
media_cleanup.enqueue_urls(payload.discarded_uploads)
client = get_supabase()
if client is not None:
try:
existing = (
client.table(articles_table())
.select("slug")
.eq("slug", slug)
.limit(1)
.execute()
)
if existing.data:
raise HTTPException(
status_code=status.HTTP_409_CONFLICT,
detail="A journal post with this title already exists.",
)
created = client.table(articles_table()).insert(article).execute()
except HTTPException:
raise
except Exception as exc:
raise HTTPException(
status_code=status.HTTP_502_BAD_GATEWAY,
detail="The article could not be saved to Supabase.",
) from exc
if not created.data:
raise HTTPException(status_code=502, detail="Supabase did not return the new article.")
media_cleanup.cleanup_pending()
return created.data[0]
with POSTS_LOCK:
current_posts = json.loads(POSTS_PATH.read_text(encoding="utf-8"))
if any(post["slug"] == slug for post in current_posts):
raise HTTPException(
status_code=status.HTTP_409_CONFLICT,
detail="A journal post with this title already exists.",
)
current_posts.append(article)
save_local_posts(current_posts)
media_cleanup.cleanup_pending()
return article
@app.put("/api/posts/{slug}")
@media_cleanup.serialized
def update_post(
slug: str, payload: NewPostPayload, _: None = Depends(require_admin)
) -> dict[str, Any]:
if not re.fullmatch(r"[a-z0-9-]+", slug):
raise HTTPException(status_code=404, detail="Post not found")
# Keep published URLs stable when an admin changes the title.
article = validated_article(payload, slug)
previous = post_by_slug(slug)
media_cleanup.enqueue_urls(payload.discarded_uploads)
retained = {m["url"] for m in media_cleanup.media_items(article)}
media_cleanup.enqueue([m for m in media_cleanup.media_items(previous) if m["url"] not in retained])
client = get_supabase()
if client is not None:
try:
response = client.table(articles_table()).update(article).eq("slug", slug).execute()
except Exception as exc:
raise HTTPException(status_code=502, detail="The article could not be updated. Please try again.") from exc
if not response.data:
raise HTTPException(status_code=404, detail="Post not found")
media_cleanup.cleanup_pending()
return response.data[0]
with POSTS_LOCK:
records = json.loads(POSTS_PATH.read_text(encoding="utf-8"))
for index, existing in enumerate(records):
if existing["slug"] == slug:
records[index] = {**existing, **article}
save_local_posts(records)
saved = records[index]
break
else:
raise HTTPException(status_code=404, detail="Post not found")
media_cleanup.cleanup_pending()
return saved
@app.delete("/api/posts/{slug}")
@media_cleanup.serialized
def delete_post(slug: str, _: None = Depends(require_admin)) -> dict[str, bool]:
if not re.fullmatch(r"[a-z0-9-]+", slug):
raise HTTPException(status_code=404, detail="Post not found")
previous = post_by_slug(slug)
media_cleanup.enqueue(media_cleanup.media_items(previous))
client = get_supabase()
if client is not None:
try:
response = client.table(articles_table()).delete().eq("slug", slug).execute()
except Exception as exc:
raise HTTPException(status_code=502, detail="The article could not be deleted. Please try again.") from exc
if not response.data:
raise HTTPException(status_code=404, detail="Post not found")
media_cleanup.cleanup_pending()
return {"deleted": True}
with POSTS_LOCK:
records = json.loads(POSTS_PATH.read_text(encoding="utf-8"))
remaining = [post for post in records if post["slug"] != slug]
if len(remaining) == len(records):
raise HTTPException(status_code=404, detail="Post not found")
save_local_posts(remaining)
media_cleanup.cleanup_pending()
return {"deleted": True}
@app.get("/api/posts/{slug}")
def post_by_slug(slug: str) -> dict[str, Any]:
if not re.fullmatch(r"[a-z0-9-]+", slug):
raise HTTPException(status_code=404, detail="Post not found")
client = get_supabase()
if client is not None:
response = read_article_query(
client.table(articles_table())
.select("slug,title,excerpt,published_at,read_time,tags,accent,content,banner,attachments")
.eq("slug", slug).limit(1)
)
if response.data:
return response.data[0]
raise HTTPException(status_code=404, detail="Post not found")
for post in article_records():
if post["slug"] == slug:
return post
raise HTTPException(status_code=404, detail="Post not found")
@app.get("/api/resume")
def resume() -> FileResponse:
if not RESUME_PATH.is_file():
raise HTTPException(status_code=404, detail="Resume file not found")
return FileResponse(
RESUME_PATH,
media_type="application/pdf",
filename="Alexander-Herlan-Resume-v25.pdf",
content_disposition_type="inline",
headers={"Cache-Control": "no-store"},
)
def deliver_contact_email(payload: ContactPayload) -> None:
smtp_host = os.getenv("SMTP_HOST")
smtp_port = int(os.getenv("SMTP_PORT", "587"))
smtp_username = os.getenv("SMTP_USERNAME")
smtp_password = os.getenv("SMTP_PASSWORD")
from_email = os.getenv("SMTP_FROM_EMAIL") or smtp_username
to_email = os.getenv("CONTACT_TO_EMAIL", "alexherlandev@gmail.com")
use_tls = os.getenv("SMTP_USE_TLS", "true").casefold() == "true"
use_ssl = os.getenv("SMTP_USE_SSL", "false").casefold() == "true"
if not smtp_host or not from_email:
raise RuntimeError("SMTP delivery is not configured")
message = EmailMessage()
message["Subject"] = f"Portfolio inquiry: {payload.subject}"
message["From"] = from_email
message["To"] = to_email
message["Reply-To"] = str(payload.email)
message.set_content(
f"New portfolio inquiry\n\n"
f"From: {payload.name} <{payload.email}>\n"
f"Subject: {payload.subject}\n\n"
f"{payload.message}"
)
context = ssl.create_default_context()
smtp_class = smtplib.SMTP_SSL if use_ssl else smtplib.SMTP
with smtp_class(smtp_host, smtp_port, timeout=20) as client:
if use_tls and not use_ssl:
client.starttls(context=context)
if smtp_username and smtp_password:
client.login(smtp_username, smtp_password)
client.send_message(message)
@app.post("/api/contact", status_code=202)
async def contact(payload: ContactPayload) -> dict[str, str]:
# A filled hidden field is almost certainly an automated submission. Respond
# normally so bots do not learn how the trap works.
if payload.company:
return {"status": "accepted", "message": "Thanks — your note is on its way."}
try:
await run_in_threadpool(deliver_contact_email, payload)
except (OSError, RuntimeError, smtplib.SMTPException) as exc:
raise HTTPException(
status_code=503,
detail="Email delivery is temporarily unavailable. Please email Alex directly.",
) from exc
return {"status": "accepted", "message": "Thanks — your note is on its way."}
if FRONTEND_DIST.is_dir() and not on_vercel():
@app.get("/{path:path}", include_in_schema=False)
def frontend(path: str) -> FileResponse:
requested_file = (FRONTEND_DIST / path).resolve()
try:
requested_file.relative_to(FRONTEND_DIST.resolve())
except ValueError:
raise HTTPException(status_code=404, detail="Not found")
if requested_file.is_file():
return FileResponse(requested_file)
return FileResponse(FRONTEND_DIST / "index.html")
-149
View File
@@ -1,149 +0,0 @@
"""Durable cleanup of explicitly removed journal media after article writes."""
import asyncio
from contextlib import asynccontextmanager, suppress
from functools import wraps
import json
import inspect
import re
from threading import RLock
from fastapi import HTTPException
from starlette.concurrency import run_in_threadpool
from backend import media_registry
LOCK = RLock()
TABLE = "article_media_deletions"
def serialized(function):
@wraps(function)
def wrapped(*args, **kwargs):
with LOCK:
return function(*args, **kwargs)
wrapped.__signature__ = inspect.signature(function, eval_str=True)
return wrapped
def media_items(article):
return [m for m in [article.get("banner"), *(article.get("attachments") or [])] if m]
def local_queue_path():
from backend import main
return main.DATA_DIR / "media-deletions.json"
def pending():
from backend import main
client = main.get_supabase()
if client is not None:
return main.read_article_query(client.table(TABLE).select("upload_id,metadata").order("created_at")).data
path = local_queue_path()
return json.loads(path.read_text(encoding="utf-8")) if path.exists() else []
def save_local_queue(records):
path = local_queue_path()
path.parent.mkdir(parents=True, exist_ok=True)
temporary = path.with_suffix(".tmp")
temporary.write_text(json.dumps(records), encoding="utf-8")
temporary.replace(path)
def enqueue(media):
"""Persist intent before changing the article; referenced files stay protected."""
from backend import main
if not media:
return
records = {}
for item in media:
upload_id = item["url"].rsplit("/", 1)[-1]
stored = main.uploaded_media(upload_id)
records[upload_id] = {"upload_id": upload_id, "metadata": stored}
client = main.get_supabase()
try:
if client is not None:
media_registry.upsert(client, TABLE, list(records.values()))
else:
save_local_queue(list({**{r["upload_id"]: r for r in pending()}, **records}.values()))
except Exception as exc:
raise HTTPException(502, "The file removal could not be scheduled. Please save again.") from exc
def enqueue_urls(urls):
from backend import main
media = []
for url in set(urls):
if not re.fullmatch(r"/api/uploads/[a-f0-9]{32}", url):
raise HTTPException(422, "Invalid file removal reference.")
try:
media.append(main.uploaded_media(url.rsplit("/", 1)[-1]))
except HTTPException as exc:
if exc.status_code != 404:
raise
enqueue(media)
def forget(upload_id):
from backend import main
client = main.get_supabase()
if client is not None:
client.table(TABLE).delete().eq("upload_id", upload_id).execute()
else:
save_local_queue([r for r in pending() if r["upload_id"] != upload_id])
@serialized
def cleanup_pending():
from backend import main, dropbox_storage
try:
records = pending()
if not records:
return
referenced = [m for p in main.article_records(include_content=False) for m in media_items(p)]
active_urls = {m["url"] for m in referenced}
active_ids = {m.get("dropbox_file_id") for m in referenced if m.get("dropbox_file_id")}
client = main.get_supabase()
for record in records:
upload_id, media = record["upload_id"], record["metadata"]
if not re.fullmatch(r"[a-f0-9]{32}", upload_id):
continue
if media["url"] in active_urls or media.get("dropbox_file_id") in active_ids:
continue
try:
if media.get("storage") == "dropbox":
dropbox_storage.delete(media["dropbox_file_id"])
# Remove registry and migration backups only after Dropbox succeeds.
if client is not None:
client.table("article_media").delete().eq("upload_id", upload_id).execute()
for suffix in ("", ".json"):
path = main.UPLOAD_DIR / (upload_id + suffix)
if path.resolve().parent != main.UPLOAD_DIR.resolve():
raise ValueError("Invalid upload cleanup path")
path.unlink(missing_ok=True)
forget(upload_id)
except Exception as exc:
main.logger.warning("Journal file cleanup pending: type=%s", type(exc).__name__)
except Exception as exc:
main.logger.warning("Journal cleanup retry pending: type=%s", type(exc).__name__)
@asynccontextmanager
async def lifespan(app):
from backend import main
if main.on_vercel():
# Serverless instances can stop between requests. Cron retries the
# durable queue; article mutations still attempt cleanup immediately.
yield
return
async def retry():
while True:
await run_in_threadpool(cleanup_pending)
await asyncio.sleep(60)
task = asyncio.create_task(retry())
try:
yield
finally:
task.cancel()
with suppress(asyncio.CancelledError):
await task
-54
View File
@@ -1,54 +0,0 @@
"""Confirmed, safely retryable writes for immutable upload-ID metadata."""
import logging
import re
import time
from httpx import TransportError
from supabase import PostgrestAPIError
logger = logging.getLogger("uvicorn.error")
TRANSIENT_CODES = {"500", "502", "503", "504", "520", "522", "524"}
class UnconfirmedMediaWrite(RuntimeError):
pass
def matches(rows, records):
saved = {row["upload_id"]: row["metadata"] for row in (rows or [])}
return all(saved.get(record["upload_id"]) == record["metadata"] for record in records)
def upsert(client, table, records):
"""Retry only identical upserts by primary key, never article inserts/deletes.
A timeout can arrive after commit. Read back the exact batch to confirm it,
including servers/proxies that return no representation of a successful write.
"""
for attempt in range(3):
try:
result = client.table(table).upsert(records, on_conflict="upload_id").retry(False).execute()
if matches(result.data, records):
return
raise UnconfirmedMediaWrite("Media write returned incomplete confirmation")
except Exception as exc:
code = str(getattr(exc, "code", ""))
transient = isinstance(exc, (TransportError, UnconfirmedMediaWrite)) or (
isinstance(exc, PostgrestAPIError) and code in TRANSIENT_CODES
)
safe_code = code if re.fullmatch(r"[A-Za-z0-9_]{1,20}", code) else "unknown"
logger.warning("Media registry write: table=%s type=%s code=%s attempt=%s", table, type(exc).__name__, safe_code, attempt + 1)
if not transient:
raise
try:
confirmed = client.table(table).select("upload_id,metadata").in_(
"upload_id", [record["upload_id"] for record in records],
).retry(False).execute()
if matches(confirmed.data, records):
return
except Exception:
# Preserve the original write failure if neither operation works.
pass
if attempt == 2:
raise
time.sleep(0.25 * (attempt + 1))
-59
View File
@@ -1,59 +0,0 @@
"""Migrate referenced local article media; originals are retained as backups."""
import argparse
import json
from dotenv import load_dotenv
from backend import main, dropbox_storage
def migrate(apply=False):
records = main.article_records()
media = {item["url"]: item for post in records for item in [post.get("banner"), *(post.get("attachments") or [])] if item}
local = [item for item in media.values() if item.get("storage") != "dropbox"]
print(f"{len(local)} local media references across {len(records)} articles.")
if not apply:
print("Preview only. Use --apply to upload files and update article metadata.")
return
dropbox_storage.get_dropbox() # Fail before modifying anything if not configured.
converted = {}
for item in local:
upload_id = item["url"].rsplit("/", 1)[-1]
stored = main.uploaded_media(upload_id)
if stored.get("storage") != "dropbox":
data = (main.UPLOAD_DIR / upload_id).read_bytes()
stored = {**stored, "storage": "dropbox", "dropbox_file_id": dropbox_storage.upload(data, upload_id, stored["name"])}
main.save_media_metadata(upload_id, stored)
# Keep old URLs working on this server too; retain the original bytes.
(main.UPLOAD_DIR / f"{upload_id}.json").write_text(json.dumps(stored), encoding="utf-8")
converted[item["url"]] = stored
client = main.get_supabase()
for post in records:
banner = post.get("banner")
attachments = post.get("attachments") or []
replacement = {
"banner": converted.get(banner["url"], banner) if banner else None,
"attachments": [converted.get(item["url"], item) for item in attachments],
}
if replacement == {"banner": banner, "attachments": attachments}:
continue
if client is not None:
result = client.table(main.articles_table()).update(replacement).eq("slug", post["slug"]).execute()
if not result.data:
raise RuntimeError("An article could not be updated. Retry the migration.")
else:
with main.POSTS_LOCK:
latest = json.loads(main.POSTS_PATH.read_text(encoding="utf-8"))
for current in latest:
if current["slug"] == post["slug"]:
current.update(replacement)
main.save_local_posts(latest)
print(f"Updated {len(converted)} media references. Original local files were retained.")
if __name__ == "__main__":
parser = argparse.ArgumentParser(description=__doc__)
parser.add_argument("--apply", action="store_true")
arguments = parser.parse_args()
load_dotenv(main.BASE_DIR / ".env")
migrate(arguments.apply)
-165
View File
@@ -1,165 +0,0 @@
"""Editable experience and skills, backed by Supabase with local development storage."""
import json
from threading import RLock
from typing import Annotated, Literal
from uuid import uuid4
from fastapi import Depends, HTTPException
from pydantic import BaseModel, ConfigDict, Field, HttpUrl, StringConstraints, model_validator
LOCK = RLock()
TABLE = "portfolio_content"
ShortText = Annotated[str, StringConstraints(strip_whitespace=True, min_length=1, max_length=100)]
LongText = Annotated[str, StringConstraints(strip_whitespace=True, min_length=1, max_length=1000)]
Month = Annotated[str, StringConstraints(pattern=r"^[1-9][0-9]{3}-(0[1-9]|1[0-2])$")]
class ContentModel(BaseModel):
model_config = ConfigDict(str_strip_whitespace=True, extra="forbid")
class Project(ContentModel):
name: ShortText
period: str = Field(default="", max_length=100)
href: HttpUrl
class ExperienceInput(ContentModel):
company: ShortText
role: str = Field(min_length=1, max_length=200)
location: str = Field(min_length=1, max_length=200)
start: Month
end: Month | None = None
summary: str = Field(min_length=1, max_length=4000)
highlights: list[LongText] = Field(default_factory=list, max_length=30)
technologies: list[ShortText] = Field(default_factory=list, max_length=60)
projects: list[Project] = Field(default_factory=list, max_length=20)
@model_validator(mode="after")
def ordered_dates(self):
if self.end and self.end < self.start:
raise ValueError("End date must be on or after the start date.")
return self
class CategoryInput(ContentModel):
name: ShortText
description: str = Field(min_length=1, max_length=1000)
accent: Literal["blue", "lavender", "peach", "yellow", "mint"] = "mint"
items: list[ShortText] = Field(default_factory=list, max_length=100)
class SkillsOverview(ContentModel):
intro: str = Field(min_length=1, max_length=2000)
principles: list[LongText] = Field(default_factory=list, max_length=20)
def load_document(key):
from backend import main
client = main.get_supabase()
if client is None:
# Read the file on each edit; don't mutate objects held in the public cache.
path = main.DATA_DIR / f"{key}.json"
return {"payload": json.loads(path.read_text(encoding="utf-8")), "version": 0}
response = main.read_article_query(client.table(TABLE).select("payload,version").eq("key", key).limit(1))
if not response.data:
raise HTTPException(503, "Portfolio content has not been initialized on the server.")
return response.data[0]
def save_document(key, payload, version):
from backend import main
client = main.get_supabase()
if client is None:
path = main.DATA_DIR / f"{key}.json"
temporary = path.with_suffix(".tmp")
temporary.write_text(json.dumps(payload, ensure_ascii=False, indent=2), encoding="utf-8")
temporary.replace(path)
main.read_data.cache_clear()
return
try:
response = client.table(TABLE).update({"payload": payload, "version": version + 1}).eq("key", key).eq("version", version).execute()
except Exception as exc:
raise HTTPException(502, "Your changes could not be saved. Please try again.") from exc
if not response.data:
raise HTTPException(409, "This content changed while saving. Please try saving again.")
def experience():
return sorted(load_document("experience")["payload"], key=lambda item: item["start"], reverse=True)
def skills():
content = load_document("skills")["payload"]
# Stable fallback IDs support existing local JSON before running the seeder.
for index, category in enumerate(content["categories"]):
category.setdefault("id", f"category-{index + 1}")
return content
def mutate_item(key, collection, item_id=None, payload=None):
with LOCK:
document = load_document(key)
content = document["payload"]
items = content if collection is None else content[collection]
if collection:
for index, item in enumerate(items):
item.setdefault("id", f"category-{index + 1}")
if item_id is None:
record = {**payload, "id": uuid4().hex}
items.append(record)
else:
index = next((i for i, item in enumerate(items) if item["id"] == item_id), None)
if index is None:
raise HTTPException(404, "This entry no longer exists.")
if payload is None:
items.pop(index)
record = {"deleted": True}
else:
record = {**payload, "id": item_id}
items[index] = record
save_document(key, content, document["version"])
return record
def register_routes(app, require_admin):
@app.get("/api/experience")
def get_experience():
return experience()
@app.post("/api/experience", status_code=201)
def create_experience(payload: ExperienceInput, _: None = Depends(require_admin)):
return mutate_item("experience", None, payload=payload.model_dump(mode="json"))
@app.put("/api/experience/{item_id}")
def update_experience(item_id: str, payload: ExperienceInput, _: None = Depends(require_admin)):
return mutate_item("experience", None, item_id, payload.model_dump(mode="json"))
@app.delete("/api/experience/{item_id}")
def delete_experience(item_id: str, _: None = Depends(require_admin)):
return mutate_item("experience", None, item_id)
@app.get("/api/skills")
def get_skills():
return skills()
@app.patch("/api/skills")
def update_overview(payload: SkillsOverview, _: None = Depends(require_admin)):
with LOCK:
document = load_document("skills")
content = document["payload"]
content.update(payload.model_dump(mode="json"))
save_document("skills", content, document["version"])
return content
@app.post("/api/skills/categories", status_code=201)
def create_category(payload: CategoryInput, _: None = Depends(require_admin)):
return mutate_item("skills", "categories", payload=payload.model_dump(mode="json"))
@app.put("/api/skills/categories/{item_id}")
def update_category(item_id: str, payload: CategoryInput, _: None = Depends(require_admin)):
return mutate_item("skills", "categories", item_id, payload.model_dump(mode="json"))
@app.delete("/api/skills/categories/{item_id}")
def delete_category(item_id: str, _: None = Depends(require_admin)):
return mutate_item("skills", "categories", item_id)
-1
View File
@@ -1 +0,0 @@
-r ../requirements.txt
-25
View File
@@ -1,25 +0,0 @@
"""One-time seed: python -m backend.seed_portfolio. Existing content is preserved."""
import json
from dotenv import load_dotenv
from backend import main, portfolio_content
def seed():
client = main.get_supabase()
if client is None:
raise SystemExit("Configure Supabase before seeding portfolio content.")
for key in ("experience", "skills"):
payload = json.loads((main.DATA_DIR / f"{key}.json").read_text(encoding="utf-8"))
if key == "skills":
for index, category in enumerate(payload["categories"]):
category.setdefault("id", f"category-{index + 1}")
# ON CONFLICT DO NOTHING makes rerunning setup safe for admin edits.
client.table(portfolio_content.TABLE).upsert(
{"key": key, "payload": payload, "version": 1}, on_conflict="key", ignore_duplicates=True,
).execute()
print(f"{key}: initialized if missing; existing edits preserved.")
if __name__ == "__main__":
load_dotenv(main.BASE_DIR / ".env")
seed()
-31
View File
@@ -1,31 +0,0 @@
from __future__ import annotations
import json
import os
from pathlib import Path
from dotenv import load_dotenv
from supabase import create_client
BASE_DIR = Path(__file__).resolve().parent
def main() -> None:
load_dotenv(BASE_DIR / ".env")
url = os.getenv("SUPABASE_URL", "").strip()
key = (
os.getenv("SUPABASE_SECRET_KEY", "").strip()
or os.getenv("SUPABASE_SERVICE_ROLE_KEY", "").strip()
)
table = os.getenv("SUPABASE_ARTICLES_TABLE", "articles").strip()
if not url or not key:
raise SystemExit("Add SUPABASE_URL and SUPABASE_SECRET_KEY to backend/.env first.")
posts = json.loads((BASE_DIR / "data" / "posts.json").read_text(encoding="utf-8"))
response = create_client(url, key).table(table).upsert(posts, on_conflict="slug").execute()
print(f"Seeded {len(response.data or [])} articles into {table}.")
if __name__ == "__main__":
main()
-59
View File
@@ -1,59 +0,0 @@
create table if not exists public.articles (
id uuid primary key default gen_random_uuid(),
slug text not null unique,
title text not null,
excerpt text not null,
published_at date not null,
read_time smallint not null check (read_time between 1 and 60),
tags text[] not null check (cardinality(tags) between 1 and 6),
accent text not null default 'mint' check (
accent in ('blue', 'lavender', 'peach', 'yellow', 'mint')
),
content jsonb not null,
created_at timestamptz not null default now()
);
create index if not exists articles_published_at_idx
on public.articles (published_at desc);
alter table public.articles add column if not exists banner jsonb;
alter table public.articles add column if not exists attachments jsonb not null default '[]'::jsonb;
alter table public.articles enable row level security;
-- Articles are exposed only through FastAPI. The server-side secret key maps to
-- service_role and bypasses RLS; browser roles receive no table privileges.
revoke all on table public.articles from anon, authenticated;
grant select, insert, update, delete on table public.articles to service_role;
-- Upload records also exist before an article is published. The article's banner
-- and attachments JSON include storage='dropbox' and the Dropbox file ID.
create table if not exists public.article_media (
upload_id text primary key check (upload_id ~ '^[a-f0-9]{32}$'),
metadata jsonb not null,
created_at timestamptz not null default now()
);
alter table public.article_media enable row level security;
revoke all on table public.article_media from anon, authenticated;
grant select, insert, update, delete on table public.article_media to service_role;
-- Persist removal intent before article changes so Dropbox outages can be retried.
create table if not exists public.article_media_deletions (
upload_id text primary key check (upload_id ~ '^[a-f0-9]{32}$'),
metadata jsonb not null,
created_at timestamptz not null default now()
);
alter table public.article_media_deletions enable row level security;
revoke all on table public.article_media_deletions from anon, authenticated;
grant select, insert, update, delete on table public.article_media_deletions to service_role;
-- Editable portfolio sections. Version checks prevent concurrent document writes
-- from silently replacing each other's changes.
create table if not exists public.portfolio_content (
key text primary key check (key in ('experience', 'skills')),
payload jsonb not null,
version bigint not null default 1
);
alter table public.portfolio_content enable row level security;
revoke all on table public.portfolio_content from anon, authenticated;
grant select, insert, update, delete on table public.portfolio_content to service_role;
-374
View File
@@ -1,374 +0,0 @@
import io
import json
import os
from pathlib import Path
from tempfile import TemporaryDirectory
import unittest
from unittest.mock import MagicMock, patch
from fastapi.testclient import TestClient
from PIL import Image
from httpx import ReadTimeout, RemoteProtocolError
from supabase import PostgrestAPIError
from dropbox.exceptions import ApiError, AuthError
from dropbox.files import DeleteError, LookupError
from backend import main
class ArticleMediaTests(unittest.TestCase):
def setUp(self):
self.directory = TemporaryDirectory()
self.addCleanup(self.directory.cleanup)
root = Path(self.directory.name)
(root / "posts.json").write_text("[]", encoding="utf-8")
for mocked in (
patch.object(main, "DATA_DIR", root),
patch.object(main, "POSTS_PATH", root / "posts.json"),
patch.object(main, "UPLOAD_DIR", root / "uploads"),
patch.object(main, "get_supabase", return_value=None),
patch.dict(os.environ, {"JOURNAL_ADMIN_PASSWORD": "test-password", "JOURNAL_TOKEN_SECRET": "test-secret", "JOURNAL_MEDIA_STORAGE": "local"}),
):
mocked.start()
self.addCleanup(mocked.stop)
main.read_data.cache_clear()
self.addCleanup(main.read_data.cache_clear)
self.client = TestClient(main.app)
token = self.client.post("/api/auth/login", json={"password": "test-password"}).json()["access_token"]
self.headers = {"Authorization": f"Bearer {token}"}
def upload(self, data, purpose="attachment", name="photo.png"):
return self.client.post("/api/uploads", params={"name": name, "purpose": purpose}, content=data, headers=self.headers)
def test_media_survives_publish_and_can_be_retrieved(self):
image = io.BytesIO()
Image.new("RGB", (20, 20), "green").save(image, format="PNG")
banner_response = self.upload(image.getvalue(), "banner")
self.assertEqual(banner_response.status_code, 201)
banner = banner_response.json()
attachment = self.upload(b"Supporting notes", name="notes.txt").json()
document = {"type": "doc", "content": [
{"type": "heading", "attrs": {"level": 2}, "content": [{"type": "text", "text": "First section"}]},
{"type": "paragraph", "content": [{"type": "text", "text": "an opening paragraph with enough text to publish this article."}]},
{"type": "heading", "attrs": {"level": 2}, "content": [{"type": "text", "text": "Second section"}]},
{"type": "paragraph", "content": [{"type": "text", "text": "the next section keeps its separate heading and body."}]},
]}
response = self.client.post("/api/posts", headers=self.headers, json={
"title": "An article with media", "excerpt": "A useful introduction to this test article.",
"published_at": "2026-09-12", "read_time": 3, "tags": ["AI"],
"content": document, "banner": banner, "attachments": [attachment],
})
self.assertEqual(response.status_code, 201, response.text)
post = self.client.get("/api/posts/an-article-with-media").json()
self.assertEqual(post["content"], document)
self.assertEqual(post["attachments"], [attachment])
self.assertEqual(self.client.get("/api/posts").json()[0]["banner"], banner)
self.assertEqual(json.loads(main.POSTS_PATH.read_text())[0]["banner"], banner)
photo = self.client.get(banner["url"])
self.assertEqual(photo.content, image.getvalue())
self.assertEqual(photo.headers["content-type"], "image/png")
file = self.client.get(attachment["url"])
self.assertIn("attachment", file.headers["content-disposition"])
self.assertEqual(file.content, b"Supporting notes")
def test_invalid_uploads_and_unauthenticated_requests(self):
self.assertEqual(self.client.post("/api/uploads?name=a.txt", content=b"test").status_code, 401)
self.assertEqual(self.upload(b"not a photo", "banner").status_code, 422)
self.assertEqual(self.upload(b"").status_code, 422)
self.assertEqual(self.upload(b"x" * (8 * 1024 * 1024 + 1), "banner").status_code, 413)
self.assertEqual(self.client.get("/api/uploads/invalid").status_code, 404)
unsafe = self.upload(b"<script>alert(1)</script>", name="page.html").json()
downloaded = self.client.get(unsafe["url"])
self.assertEqual(downloaded.headers["content-type"], "application/octet-stream")
self.assertEqual(downloaded.headers["x-content-type-options"], "nosniff")
self.assertIn("attachment", downloaded.headers["content-disposition"])
def article_payload(self):
return {
"title": "An editable article", "excerpt": "An introduction with enough detail for readers.",
"published_at": "2026-09-12", "read_time": 3, "tags": ["Custom topic"],
"content": {"type": "doc", "content": [{"type": "paragraph", "content": [
{"type": "text", "text": "An original article body with enough text to validate and publish."}
]}]},
}
def test_admin_role_and_protected_crud(self):
self.assertEqual(self.client.post("/api/auth/login", json={"password": "wrong"}).status_code, 401)
session = self.client.get("/api/auth/session", headers=self.headers)
self.assertEqual(session.json(), {"authenticated": True, "role": "admin"})
payload = self.article_payload()
self.assertEqual(self.client.post("/api/posts", json=payload).status_code, 401)
created = self.client.post("/api/posts", json=payload, headers=self.headers).json()
path = f'/api/posts/{created["slug"]}'
for headers in ({}, {"Authorization": "Bearer 1.invalid"}):
self.assertEqual(self.client.put(path, json=payload, headers=headers).status_code, 401)
self.assertEqual(self.client.delete(path, headers=headers).status_code, 401)
self.assertEqual(self.client.get(path).json()["title"], payload["title"])
payload["title"] = "The updated article title"
payload["tags"] = ["Updated topic"]
payload["attachments"] = [self.upload(b"updated notes", name="notes.txt").json()]
updated = self.client.put(path, json=payload, headers=self.headers)
self.assertEqual(updated.status_code, 200, updated.text)
self.assertEqual(updated.json()["slug"], created["slug"])
self.assertEqual(self.client.get(path).json()["attachments"], payload["attachments"])
self.assertEqual(self.client.get("/api/posts").json()[0]["title"], payload["title"])
invalid = {**payload, "content": {"type": "doc", "content": []}}
self.assertEqual(self.client.put(path, json=invalid, headers=self.headers).status_code, 422)
self.assertEqual(self.client.put("/api/posts/missing", json=payload, headers=self.headers).status_code, 404)
self.assertEqual(self.client.delete(path, headers=self.headers).status_code, 200)
self.assertEqual(self.client.get(path).status_code, 404)
self.assertEqual(self.client.get("/api/posts").json(), [])
self.assertEqual(json.loads(main.POSTS_PATH.read_text()), [])
self.assertEqual(self.client.delete(path, headers=self.headers).status_code, 404)
def test_supabase_update_delete_are_scoped_and_report_failures(self):
client = MagicMock()
table = client.table.return_value
payload = self.article_payload()
table.update.return_value.eq.return_value.execute.return_value.data = [{**payload, "slug": "original-url"}]
table.select.return_value.eq.return_value.limit.return_value.retry.return_value.execute.return_value.data = [{**payload, "slug": "original-url"}]
table.select.return_value.order.return_value.retry.return_value.execute.return_value.data = []
table.delete.return_value.eq.return_value.execute.return_value.data = [{"slug": "original-url"}]
with patch.object(main, "get_supabase", return_value=client):
updated = self.client.put("/api/posts/original-url", json=payload, headers=self.headers)
self.assertEqual(updated.status_code, 200)
table.update.return_value.eq.assert_called_once_with("slug", "original-url")
self.assertEqual(self.client.delete("/api/posts/original-url", headers=self.headers).status_code, 200)
table.delete.return_value.eq.assert_called_once_with("slug", "original-url")
table.update.return_value.eq.return_value.execute.return_value.data = []
self.assertEqual(self.client.put("/api/posts/missing", json=payload, headers=self.headers).status_code, 404)
table.delete.return_value.eq.return_value.execute.return_value.data = []
self.assertEqual(self.client.delete("/api/posts/missing", headers=self.headers).status_code, 404)
table.update.return_value.eq.return_value.execute.side_effect = RuntimeError("offline")
self.assertEqual(self.client.put("/api/posts/original-url", json=payload, headers=self.headers).status_code, 502)
table.delete.return_value.eq.return_value.execute.side_effect = RuntimeError("offline")
self.assertEqual(self.client.delete("/api/posts/original-url", headers=self.headers).status_code, 502)
def test_journal_reads_retry_transient_errors_but_remain_public(self):
client = MagicMock()
query = MagicMock()
query.retry.return_value = query
client.table.return_value.select.return_value.order.return_value = query
client.table.return_value.select.return_value.eq.return_value.limit.return_value = query
article = {**self.article_payload(), "slug": "test-article", "accent": "mint"}
response = MagicMock(data=[article])
with patch.object(main, "get_supabase", return_value=client), patch.object(main.time, "sleep"):
for path in ("/api/posts", "/api/posts/test-article"):
for failure in (
RemoteProtocolError("connection ended"),
ReadTimeout("read timed out"),
PostgrestAPIError({"code": "503", "message": "unavailable"}),
):
query.execute.reset_mock()
query.execute.side_effect = [failure, response]
result = self.client.get(path) # No admin token: reading stays public.
self.assertEqual(result.status_code, 200, result.text)
self.assertEqual(query.execute.call_count, 2)
query.execute.reset_mock()
query.execute.side_effect = ReadTimeout("offline")
self.assertEqual(self.client.get(path).status_code, 502)
self.assertEqual(query.execute.call_count, 2)
query.execute.reset_mock()
query.execute.side_effect = PostgrestAPIError({"code": "42P01", "message": "missing table"})
self.assertEqual(self.client.get(path).status_code, 502)
self.assertEqual(query.execute.call_count, 1)
query.execute.side_effect = None
query.execute.return_value = MagicMock(data=[])
self.assertEqual(self.client.get("/api/posts").json(), [])
self.assertEqual(self.client.get("/api/posts/missing").status_code, 404)
def test_dropbox_upload_publish_and_download_use_file_id(self):
image = io.BytesIO()
Image.new("RGB", (20, 20), "blue").save(image, format="PNG")
data = image.getvalue()
dropbox = MagicMock()
dropbox.files_upload.return_value.id = "id:test_photo"
stream = MagicMock()
stream.iter_content.return_value = [data]
dropbox.files_download.return_value = (MagicMock(size=len(data)), stream)
with patch.dict(os.environ, {"JOURNAL_MEDIA_STORAGE": "dropbox"}), patch.object(main.dropbox_storage, "get_dropbox", return_value=dropbox):
result = self.upload(data, "banner")
self.assertEqual(result.status_code, 201, result.text)
media = result.json()
self.assertEqual(media["dropbox_file_id"], "id:test_photo")
self.assertEqual(media["storage"], "dropbox")
upload_id = media["url"].rsplit("/", 1)[-1]
self.assertFalse((main.UPLOAD_DIR / upload_id).exists())
payload = {**self.article_payload(), "banner": media, "attachments": [media]}
article = self.client.post("/api/posts", headers=self.headers, json=payload)
self.assertEqual(article.status_code, 201, article.text)
self.assertEqual(article.json()["banner"]["dropbox_file_id"], "id:test_photo")
saved = json.loads(main.POSTS_PATH.read_text())[0]
self.assertEqual(saved["attachments"][0]["dropbox_file_id"], "id:test_photo")
downloaded = self.client.get(media["url"])
self.assertEqual(downloaded.content, data)
self.assertEqual(downloaded.headers["content-type"], "image/png")
dropbox.files_download.assert_called_once_with("id:test_photo")
stream.close.assert_called_once()
payload["banner"]["dropbox_file_id"] = "id:someone_else"
self.assertEqual(self.client.put("/api/posts/an-editable-article", headers=self.headers, json=payload).status_code, 422)
def test_dropbox_media_metadata_survives_without_local_files_in_supabase(self):
client = MagicMock()
media_table = MagicMock()
article_table = MagicMock()
client.table.side_effect = lambda name: media_table if name == "article_media" else article_table
metadata = {"url": "/api/uploads/" + "a" * 32, "name": "image.png", "size": 10,
"media_type": "image/png", "storage": "dropbox", "dropbox_file_id": "id:remote_photo"}
media_table.upsert.return_value.retry.return_value.execute.return_value.data = [{"upload_id": "a" * 32, "metadata": metadata}]
media_query = media_table.select.return_value.eq.return_value.limit.return_value
media_query.retry.return_value.execute.return_value.data = [{"metadata": metadata}]
article_table.select.return_value.eq.return_value.limit.return_value.execute.return_value.data = []
article_table.insert.side_effect = lambda record: MagicMock(execute=lambda: MagicMock(data=[record]))
with patch.object(main, "get_supabase", return_value=client):
main.save_media_metadata("a" * 32, metadata)
media_table.upsert.assert_called_once_with([{"upload_id": "a" * 32, "metadata": metadata}], on_conflict="upload_id")
self.assertEqual(main.uploaded_media("a" * 32), metadata)
self.assertFalse(main.UPLOAD_DIR.exists())
result = self.client.post("/api/posts", headers=self.headers, json={**self.article_payload(), "banner": metadata})
self.assertEqual(result.status_code, 201, result.text)
self.assertEqual(article_table.insert.call_args.args[0]["banner"]["dropbox_file_id"], "id:remote_photo")
def test_dropbox_auth_failure_does_not_expire_journal_session(self):
dropbox = MagicMock()
dropbox.files_upload.side_effect = AuthError("test-request", "expired_access_token")
with patch.dict(os.environ, {"JOURNAL_MEDIA_STORAGE": "dropbox"}), patch.object(main.dropbox_storage, "get_dropbox", return_value=dropbox):
self.assertEqual(self.upload(b"notes", name="notes.txt").status_code, 503)
self.assertEqual(self.client.get("/api/auth/session", headers=self.headers).status_code, 200)
self.assertFalse(main.UPLOAD_DIR.exists())
def test_dropbox_migration_preserves_urls_originals_and_can_resume(self):
from backend.migrate_media_dropbox import migrate
media = self.upload(b"original notes", name="notes.txt").json()
result = self.client.post("/api/posts", headers=self.headers, json={**self.article_payload(), "attachments": [media]})
self.assertEqual(result.status_code, 201)
dropbox = MagicMock()
dropbox.files_upload.return_value.id = "id:migrated_file"
with patch.object(main.dropbox_storage, "get_dropbox", return_value=dropbox):
migrate(apply=False)
dropbox.files_upload.assert_not_called()
migrate(apply=True)
migrate(apply=True)
dropbox.files_upload.assert_called_once()
post = self.client.get("/api/posts/an-editable-article").json()
migrated = post["attachments"][0]
self.assertEqual(migrated["url"], media["url"])
self.assertEqual(migrated["dropbox_file_id"], "id:migrated_file")
self.assertEqual((main.UPLOAD_DIR / media["url"].rsplit("/", 1)[-1]).read_bytes(), b"original notes")
def test_edit_open_before_migration_keeps_old_media_and_new_uploads(self):
from backend.migrate_media_dropbox import migrate
image = io.BytesIO()
Image.new("RGB", (20, 20), "green").save(image, format="PNG")
banner = self.upload(image.getvalue(), "banner").json()
attachment = self.upload(b"original notes", name="notes.txt").json()
draft = {**self.article_payload(), "banner": banner, "attachments": [attachment]}
created = self.client.post("/api/posts", headers=self.headers, json=draft)
self.assertEqual(created.status_code, 201)
path = "/api/posts/an-editable-article"
dropbox = MagicMock()
dropbox.files_upload.side_effect = [
MagicMock(id="id:migrated_banner"), MagicMock(id="id:migrated_attachment"),
MagicMock(id="id:new_attachment"),
]
with patch.object(main.dropbox_storage, "get_dropbox", return_value=dropbox):
migrate(apply=True)
with patch.dict(os.environ, {"JOURNAL_MEDIA_STORAGE": "dropbox"}):
uploaded = self.upload(b"new notes", name="new.txt")
self.assertEqual(uploaded.status_code, 201)
draft["attachments"].append(uploaded.json())
# The browser still has the pre-migration metadata for the old files.
draft["title"] = "An edited article after migration"
saved = self.client.put(path, headers=self.headers, json=draft)
self.assertEqual(saved.status_code, 200, saved.text)
result = self.client.get(path).json()
self.assertEqual(result["title"], draft["title"])
self.assertEqual(result["banner"]["dropbox_file_id"], "id:migrated_banner")
self.assertEqual([m["dropbox_file_id"] for m in result["attachments"]],
["id:migrated_attachment", "id:new_attachment"])
self.assertEqual(result["banner"]["url"], banner["url"])
self.assertEqual(result["attachments"][0]["url"], attachment["url"])
# Compatibility must not accept altered file details or a substituted ID.
for changes in ({"size": 999}, {"name": "different.txt"},
{"media_type": "image/png"}, {"dropbox_file_id": "id:other"},
{"storage": "dropbox"}):
with self.subTest(changes=changes):
invalid = {**draft, "attachments": [{**attachment, **changes}]}
rejected = self.client.put(path, headers=self.headers, json=invalid)
self.assertEqual(rejected.status_code, 422)
def test_removal_deletes_dropbox_files_after_save_and_preserves_shared_media(self):
dropbox = MagicMock()
dropbox.files_upload.side_effect = [MagicMock(id=f"id:file_{i}") for i in range(4)]
image = io.BytesIO()
Image.new("RGB", (8, 8), "blue").save(image, format="PNG")
with patch.dict(os.environ, {"JOURNAL_MEDIA_STORAGE": "dropbox"}), patch.object(main.dropbox_storage, "get_dropbox", return_value=dropbox):
banner = self.upload(image.getvalue(), "banner").json()
attachment = self.upload(b"shared notes").json()
replacement = self.upload(image.getvalue(), "banner").json()
discarded = self.upload(b"removed before publishing").json()
payload = {**self.article_payload(), "banner": banner, "attachments": [attachment]}
self.assertEqual(self.client.post("/api/posts", headers=self.headers, json=payload).status_code, 201)
second = {**self.article_payload(), "title": "Another article with shared notes", "attachments": [attachment]}
self.assertEqual(self.client.post("/api/posts", headers=self.headers, json=second).status_code, 201)
edited = {**payload, "banner": replacement, "attachments": [], "discarded_uploads": [discarded["url"]]}
self.assertEqual(self.client.put("/api/posts/an-editable-article", headers=self.headers, json=edited).status_code, 200)
deleted = [call.args[0] for call in dropbox.files_delete_v2.call_args_list]
self.assertCountEqual(deleted, [banner["dropbox_file_id"], discarded["dropbox_file_id"]])
self.assertEqual(self.client.get(banner["url"]).status_code, 404)
self.assertEqual(main.uploaded_media(attachment["url"].rsplit("/", 1)[-1]), attachment)
self.assertEqual(self.client.delete("/api/posts/another-article-with-shared-notes", headers=self.headers).status_code, 200)
self.assertEqual(self.client.delete("/api/posts/an-editable-article", headers=self.headers).status_code, 200)
self.assertCountEqual([call.args[0] for call in dropbox.files_delete_v2.call_args_list],
[m["dropbox_file_id"] for m in [banner, attachment, replacement, discarded]])
self.assertEqual(main.media_cleanup.pending(), [])
def test_failed_file_deletion_is_durable_and_retryable_after_article_deleted(self):
dropbox = MagicMock()
dropbox.files_upload.return_value.id = "id:retry_delete"
dropbox.files_delete_v2.side_effect = AuthError("request", None)
with patch.dict(os.environ, {"JOURNAL_MEDIA_STORAGE": "dropbox"}), patch.object(main.dropbox_storage, "get_dropbox", return_value=dropbox):
media = self.upload(b"retry notes").json()
payload = {**self.article_payload(), "attachments": [media]}
self.client.post("/api/posts", headers=self.headers, json=payload)
response = self.client.delete("/api/posts/an-editable-article", headers=self.headers)
self.assertEqual(response.status_code, 200)
self.assertEqual(len(main.media_cleanup.pending()), 1)
self.assertEqual(self.client.get("/api/auth/session", headers=self.headers).status_code, 200)
self.assertEqual(main.uploaded_media(media["url"].rsplit("/", 1)[-1]), media)
# Dropbox already removed the file, e.g. before a database outage.
dropbox.files_delete_v2.side_effect = ApiError("request", DeleteError.path_lookup(LookupError.not_found), None, None)
main.media_cleanup.cleanup_pending()
self.assertEqual(main.media_cleanup.pending(), [])
self.assertEqual(self.client.get(media["url"]).status_code, 404)
def test_failed_article_save_does_not_delete_referenced_file(self):
media = self.upload(b"must survive failed save").json()
payload = {**self.article_payload(), "attachments": [media]}
self.client.post("/api/posts", headers=self.headers, json=payload)
with patch.object(main, "save_local_posts", side_effect=OSError("disk unavailable")):
with self.assertRaises(OSError):
self.client.put("/api/posts/an-editable-article", headers=self.headers, json=self.article_payload())
main.read_data.cache_clear()
main.media_cleanup.cleanup_pending()
self.assertEqual(self.client.get(media["url"]).content, b"must survive failed save")
self.assertEqual(len(main.media_cleanup.pending()), 1)
self.assertEqual(self.client.put("/api/posts/an-editable-article", headers=self.headers, json=self.article_payload()).status_code, 200)
self.assertEqual(self.client.get(media["url"]).status_code, 404)
self.assertEqual(main.media_cleanup.pending(), [])
def test_removing_new_upload_before_publish_cleans_it_after_success(self):
media = self.upload(b"discarded draft upload").json()
payload = {**self.article_payload(), "discarded_uploads": [media["url"]]}
invalid = {**payload, "content": {"type": "doc", "content": []}}
self.assertEqual(self.client.post("/api/posts", headers=self.headers, json=invalid).status_code, 422)
self.assertEqual(self.client.get(media["url"]).status_code, 200)
result = self.client.post("/api/posts", headers=self.headers, json=payload)
self.assertEqual(result.status_code, 201)
self.assertNotIn("discarded_uploads", result.json())
self.assertEqual(self.client.get(media["url"]).status_code, 404)
if __name__ == "__main__":
unittest.main()
-89
View File
@@ -1,89 +0,0 @@
"""OAuth setup must not persist a grant that cannot support article media."""
import io
import tempfile
import unittest
from contextlib import ExitStack, redirect_stdout
from pathlib import Path
from types import SimpleNamespace
from unittest.mock import patch
from urllib.parse import parse_qs, urlparse
from dotenv import dotenv_values
from dropbox import DropboxOAuth2FlowNoRedirect
from backend import connect_dropbox
class DropboxSetupTests(unittest.TestCase):
def setUp(self):
self.stack = ExitStack()
self.addCleanup(self.stack.close)
folder = Path(self.stack.enter_context(tempfile.TemporaryDirectory()))
self.env = folder / ".env"
self.env.write_text(
"DROPBOX_APP_KEY=file-key\nDROPBOX_APP_SECRET=file-secret\n"
"DROPBOX_REFRESH_TOKEN=existing-token\n", encoding="utf-8"
)
self.stack.enter_context(patch.object(connect_dropbox, "__file__", str(folder / "connect_dropbox.py")))
self.stack.enter_context(patch.dict("os.environ", {
"DROPBOX_APP_KEY": "stale-shell-key", "DROPBOX_APP_SECRET": "stale-shell-secret"
}))
self.stack.enter_context(patch.object(connect_dropbox.getpass, "getpass", return_value="auth-code"))
self.browser = self.stack.enter_context(patch.object(connect_dropbox.webbrowser, "open"))
self.output = self.stack.enter_context(redirect_stdout(io.StringIO()))
# Exercise real SDK URL generation, but never exchange a real code.
self.finish = self.stack.enter_context(patch.object(DropboxOAuth2FlowNoRedirect, "finish"))
self.finish.return_value = SimpleNamespace(
refresh_token="new-token", scope=["files.content.read", "files.content.write"]
)
def test_opens_default_permissions_offline_url_for_env_file_app(self):
connect_dropbox.main()
url = urlparse(self.browser.call_args.args[0])
self.assertEqual(url.hostname, "www.dropbox.com")
self.assertEqual(parse_qs(url.query), {
"client_id": ["file-key"], "response_type": ["code"], "token_access_type": ["offline"]
})
settings = dotenv_values(self.env)
self.assertEqual(settings["DROPBOX_REFRESH_TOKEN"], "new-token")
self.assertEqual(settings["JOURNAL_MEDIA_STORAGE"], "dropbox")
for secret in ("new-token", "existing-token", "file-secret", "auth-code"):
self.assertNotIn(secret, self.output.getvalue())
def test_missing_permissions_preserves_existing_credentials(self):
original = self.env.read_bytes()
self.finish.return_value.scope = ["account_info.read"]
with self.assertRaisesRegex(SystemExit, "files.content.read, files.content.write"):
connect_dropbox.main()
self.assertEqual(self.env.read_bytes(), original)
def test_unknown_permissions_preserves_existing_credentials(self):
original = self.env.read_bytes()
self.finish.return_value.scope = None
with self.assertRaisesRegex(SystemExit, "did not grant"):
connect_dropbox.main()
self.assertEqual(self.env.read_bytes(), original)
def test_string_scopes_are_accepted(self):
self.finish.return_value.scope = "files.content.read files.content.write"
connect_dropbox.main()
self.assertEqual(dotenv_values(self.env)["DROPBOX_REFRESH_TOKEN"], "new-token")
def test_exchange_failure_does_not_print_secret_or_overwrite_token(self):
original = self.env.read_bytes()
self.finish.side_effect = RuntimeError("sensitive-response-token")
with self.assertRaises(SystemExit) as error:
connect_dropbox.main()
self.assertNotIn("sensitive-response-token", str(error.exception))
self.assertEqual(self.env.read_bytes(), original)
def test_missing_refresh_token_preserves_existing_credentials(self):
original = self.env.read_bytes()
self.finish.return_value.refresh_token = None
with self.assertRaisesRegex(SystemExit, "did not issue a refresh token"):
connect_dropbox.main()
self.assertEqual(self.env.read_bytes(), original)
if __name__ == "__main__":
unittest.main()
-71
View File
@@ -1,71 +0,0 @@
import unittest
from unittest.mock import MagicMock, patch
from httpx import ReadTimeout
from supabase import PostgrestAPIError
from fastapi import HTTPException
from backend import main, media_cleanup, media_registry
class MediaRegistryTests(unittest.TestCase):
def setUp(self):
self.client = MagicMock()
self.table = self.client.table.return_value
self.write = self.table.upsert.return_value.retry.return_value.execute
self.read = self.table.select.return_value.in_.return_value.retry.return_value.execute
self.records = [{"upload_id": char * 32, "metadata": {
"url": "/api/uploads/" + char * 32, "storage": "dropbox", "dropbox_file_id": "id:file_" + char,
"name": "photo.png", "media_type": "image/png", "size": 100,
}} for char in ("a", "b")]
self.read.return_value.data = []
sleep = patch.object(media_registry.time, "sleep")
sleep.start(); self.addCleanup(sleep.stop)
def test_queue_retries_gateway_timeout_with_identical_records(self):
self.write.side_effect = [PostgrestAPIError({"code": "504", "message": "Gateway Timeout"}), MagicMock(data=self.records)]
by_id = {row["upload_id"]: row["metadata"] for row in self.records}
with patch.object(main, "get_supabase", return_value=self.client), patch.object(main, "uploaded_media", side_effect=lambda uid: by_id[uid]):
media_cleanup.enqueue(list(by_id.values()))
self.assertEqual(self.write.call_count, 2)
for call in self.table.upsert.call_args_list:
self.assertEqual(call.args[0], self.records)
self.assertEqual(call.kwargs, {"on_conflict": "upload_id"})
def test_committed_timeout_is_confirmed_without_another_write(self):
self.write.side_effect = ReadTimeout("response lost after commit")
self.read.return_value.data = list(reversed(self.records))
media_registry.upsert(self.client, "article_media_deletions", self.records)
self.assertEqual(self.write.call_count, 1)
def test_empty_response_checks_every_record_before_success(self):
self.write.side_effect = [MagicMock(data=[]), MagicMock(data=self.records)]
self.read.return_value.data = self.records[:1]
media_registry.upsert(self.client, "article_media", self.records)
self.assertEqual(self.write.call_count, 2)
def test_empty_response_with_all_records_saved_is_success(self):
self.write.return_value.data = []
self.read.return_value.data = self.records
media_registry.upsert(self.client, "article_media", self.records)
self.assertEqual(self.write.call_count, 1)
def test_exhausted_retries_still_block_article_mutation(self):
self.write.side_effect = ReadTimeout("offline")
by_id = {row["upload_id"]: row["metadata"] for row in self.records}
with patch.object(main, "get_supabase", return_value=self.client), patch.object(main, "uploaded_media", side_effect=lambda uid: by_id[uid]), patch.object(main, "post_by_slug", return_value={"banner": self.records[0]["metadata"], "attachments": [self.records[1]["metadata"]]}):
with self.assertRaises(HTTPException) as error:
main.delete_post("existing-article")
self.assertEqual(error.exception.status_code, 502)
self.assertEqual(self.write.call_count, 3)
self.table.delete.assert_not_called()
def test_configuration_errors_are_not_retried(self):
self.write.side_effect = PostgrestAPIError({"code": "42501", "message": "permission denied"})
with self.assertRaises(PostgrestAPIError):
media_registry.upsert(self.client, "article_media", self.records)
self.assertEqual(self.write.call_count, 1)
self.read.assert_not_called()
if __name__ == "__main__":
unittest.main()
-47
View File
@@ -1,47 +0,0 @@
"""Verify the intentional shutdown blocks content and storage side effects."""
import json
import unittest
from unittest.mock import patch
from fastapi.testclient import TestClient
from backend import main
class OfflineTests(unittest.TestCase):
def test_all_routes_and_methods_return_blank_gone(self):
paths = [
"/", "/experience", "/blog/example", "/api/profile",
"/api/experience", "/api/posts", "/api/health", "/api/resume",
"/api/auth/login", "/api/contact", "/api/cron/media-cleanup",
"/api/resume?v=resume-v25", "/resumes/resume-v25.pdf",
"/api/uploads/" + "a" * 32, "/alexander-herlan.png",
"/assets/old.js", "/docs", "/openapi.json", "/missing",
]
with patch.object(main, "get_supabase") as storage, \
patch.object(main, "read_data") as data, \
patch.object(main, "deliver_contact_email") as email, \
patch.object(main.media_cleanup, "cleanup_pending") as cleanup, \
TestClient(main.app) as client:
for method in ("GET", "HEAD", "POST", "PUT", "PATCH", "DELETE", "OPTIONS"):
for path in paths:
with self.subTest(method=method, path=path):
response = client.request(method, path)
self.assertEqual(response.status_code, 410)
expected = b"<!doctype html><html><head><title></title></head><body></body></html>"
self.assertEqual(response.content, b"" if method == "HEAD" else expected)
self.assertEqual(response.headers["cache-control"], "no-store")
self.assertEqual(response.headers["x-robots-tag"], "noindex, nofollow")
storage.assert_not_called()
data.assert_not_called()
email.assert_not_called()
cleanup.assert_not_called()
def test_vercel_has_no_static_bypass_or_scheduled_jobs(self):
config = json.loads((main.PROJECT_DIR / "vercel.json").read_text(encoding="utf-8"))
self.assertEqual(config["routes"], [{"src": "/.*", "dest": "/api/index.py"}])
self.assertEqual(config["crons"], [])
if __name__ == "__main__":
unittest.main()
-119
View File
@@ -1,119 +0,0 @@
import json
import os
from pathlib import Path
from tempfile import TemporaryDirectory
import unittest
from unittest.mock import MagicMock, patch
from fastapi.testclient import TestClient
from backend import main, portfolio_content
class PortfolioContentTests(unittest.TestCase):
def setUp(self):
directory = TemporaryDirectory()
self.addCleanup(directory.cleanup)
self.root = Path(directory.name)
(self.root / "experience.json").write_text("[]", encoding="utf-8")
(self.root / "skills.json").write_text(json.dumps({"intro": "Original intro", "principles": ["Keep it simple"], "categories": []}), encoding="utf-8")
for mocked in (patch.object(main, "DATA_DIR", self.root), patch.object(main, "get_supabase", return_value=None),
patch.dict(os.environ, {"JOURNAL_ADMIN_PASSWORD": "test-password", "JOURNAL_TOKEN_SECRET": "test-secret"})):
mocked.start(); self.addCleanup(mocked.stop)
self.client = TestClient(main.app)
token = self.client.post("/api/auth/login", json={"password": "test-password"}).json()["access_token"]
self.headers = {"Authorization": "Bearer " + token}
self.experience = {"company": "Example", "role": "Engineer", "location": "Remote", "start": "2024-06", "end": None,
"summary": "Build and maintain useful applications.", "highlights": ["Delivered a product"], "technologies": ["Python"],
"projects": [{"name": "Project", "href": "https://example.com", "period": "2024"}]}
self.category = {"name": "Engineering", "description": "Tools I use", "accent": "blue", "items": ["Python", "React"]}
def test_experience_crud_is_publicly_readable_and_persistent(self):
created = self.client.post("/api/experience", json=self.experience, headers=self.headers)
self.assertEqual(created.status_code, 201, created.text)
item = created.json()
older = self.client.post("/api/experience", json={**self.experience, "start": "2020-01", "end": "2023-12"}, headers=self.headers).json()
self.assertEqual([entry["id"] for entry in self.client.get("/api/experience").json()], [item["id"], older["id"]])
changed = {**self.experience, "role": "Lead engineer", "technologies": ["Go"], "projects": [], "highlights": []}
response = self.client.put("/api/experience/" + item["id"], json=changed, headers=self.headers)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.json()["id"], item["id"])
saved = json.loads((self.root / "experience.json").read_text())
self.assertEqual(saved[0]["role"], "Lead engineer")
for entry in [item, older]:
self.assertEqual(self.client.delete("/api/experience/" + entry["id"], headers=self.headers).status_code, 200)
self.assertEqual(self.client.get("/api/experience").json(), [])
def test_skills_categories_labels_and_overview_crud(self):
response = self.client.post("/api/skills/categories", json=self.category, headers=self.headers)
self.assertEqual(response.status_code, 201, response.text)
item = response.json()
changed = {**self.category, "name": "Updated category", "items": ["TypeScript"]}
response = self.client.put("/api/skills/categories/" + item["id"], json=changed, headers=self.headers)
self.assertEqual(response.status_code, 200)
overview = {"intro": "A new introduction", "principles": ["One principle", "Another principle"]}
self.assertEqual(self.client.patch("/api/skills", json=overview, headers=self.headers).status_code, 200)
content = self.client.get("/api/skills").json()
self.assertEqual(content["intro"], overview["intro"])
self.assertEqual(content["categories"][0]["items"], ["TypeScript"])
self.assertEqual(content["categories"][0]["id"], item["id"])
self.assertEqual(self.client.delete("/api/skills/categories/" + item["id"], headers=self.headers).status_code, 200)
self.client.patch("/api/skills", json={**overview, "principles": []}, headers=self.headers)
content = self.client.get("/api/skills").json()
self.assertEqual(content["categories"], [])
self.assertEqual(content["principles"], [])
def test_all_mutations_require_admin(self):
for method, path, body in [
("post", "/api/experience", self.experience), ("put", "/api/experience/missing", self.experience),
("delete", "/api/experience/missing", None), ("post", "/api/skills/categories", self.category),
("put", "/api/skills/categories/missing", self.category), ("delete", "/api/skills/categories/missing", None),
("patch", "/api/skills", {"intro": "Intro", "principles": []}),
]:
for headers in ({}, {"Authorization": "Bearer 1.invalid"}):
response = self.client.request(method, path, json=body, headers=headers)
self.assertEqual(response.status_code, 401, (method, path))
self.assertEqual(self.client.get("/api/experience").status_code, 200)
self.assertEqual(self.client.get("/api/skills").status_code, 200)
def test_invalid_dates_links_fields_and_missing_records(self):
for changes in ({"start": "2024-13"}, {"end": "2020-01"}, {"role": " "},
{"projects": [{"name": "Unsafe", "href": "javascript:alert(1)"}]}, {"id": "client-selected"}):
self.assertEqual(self.client.post("/api/experience", json={**self.experience, **changes}, headers=self.headers).status_code, 422)
self.assertEqual(self.client.post("/api/skills/categories", json={**self.category, "accent": "invalid"}, headers=self.headers).status_code, 422)
for path, body in [("/api/experience/missing", self.experience), ("/api/skills/categories/missing", self.category)]:
self.assertEqual(self.client.put(path, json=body, headers=self.headers).status_code, 404)
self.assertEqual(self.client.delete(path, headers=self.headers).status_code, 404)
def test_supabase_writes_use_versions_and_fail_without_silent_fallback(self):
client = MagicMock()
table = client.table.return_value
read = table.select.return_value.eq.return_value.limit.return_value.retry.return_value.execute
read.return_value.data = [{"payload": [], "version": 7}]
write = table.update.return_value.eq.return_value.eq.return_value.execute
write.return_value.data = [{"key": "experience"}]
with patch.object(main, "get_supabase", return_value=client):
response = self.client.post("/api/experience", json=self.experience, headers=self.headers)
self.assertEqual(response.status_code, 201)
written = table.update.call_args.args[0]
self.assertEqual(written["version"], 8)
self.assertEqual(written["payload"][0]["role"], "Engineer")
table.update.return_value.eq.assert_called_with("key", "experience")
table.update.return_value.eq.return_value.eq.assert_called_with("version", 7)
write.return_value.data = []
self.assertEqual(self.client.post("/api/experience", json=self.experience, headers=self.headers).status_code, 409)
write.side_effect = RuntimeError("offline")
self.assertEqual(self.client.post("/api/experience", json=self.experience, headers=self.headers).status_code, 502)
read.return_value.data = []
self.assertEqual(self.client.get("/api/experience").status_code, 503)
self.assertEqual(json.loads((self.root / "experience.json").read_text()), [])
def test_local_category_ids_remain_stable_when_deleting_previous_category(self):
content = {"intro": "Intro", "principles": [], "categories": [{**self.category, "name": name} for name in ["First", "Second"]]}
(self.root / "skills.json").write_text(json.dumps(content))
categories = self.client.get("/api/skills").json()["categories"]
self.client.delete("/api/skills/categories/" + categories[0]["id"], headers=self.headers)
self.assertEqual(self.client.get("/api/skills").json()["categories"][0]["id"], categories[1]["id"])
if __name__ == "__main__":
unittest.main()
-66
View File
@@ -1,66 +0,0 @@
"""Resume selection and cache behavior across deployments."""
from pathlib import Path
from tempfile import TemporaryDirectory
import unittest
from unittest.mock import patch
from fastapi.testclient import TestClient
from backend import main
class ResumeTests(unittest.TestCase):
def setUp(self):
self.client = TestClient(main.app)
def test_profile_link_serves_selected_pdf_without_caching(self):
profile = self.client.get("/api/profile").json()
response = self.client.get(profile["resume_url"])
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, main.RESUME_PATH.read_bytes())
self.assertEqual(response.headers["content-type"], "application/pdf")
self.assertIn("Alexander-Herlan-Resume-v25.pdf",
response.headers["content-disposition"])
self.assertEqual(response.headers["cache-control"], "no-store")
def test_changing_selection_changes_link_without_mutating_profile_data(self):
with TemporaryDirectory() as directory:
original = dict(main.read_data("profile.json"))
urls = []
for version in (11, 17):
path = Path(directory) / f"resume-v{version}.pdf"
content = f"%PDF-1.7\nSelected resume {version}".encode()
path.write_bytes(content)
with patch.object(main, "RESUME_PATH", path):
url = self.client.get("/api/profile").json()["resume_url"]
urls.append(url)
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, content)
self.assertNotEqual(urls[0], urls[1])
self.assertNotIn("/api/resume", urls)
self.assertEqual(main.read_data("profile.json"), original)
def test_old_links_and_pdf_range_requests_serve_current_selection(self):
expected = main.RESUME_PATH.read_bytes()
for url in ("/api/resume", "/api/resume?v=resume-v11"):
with self.subTest(url=url):
response = self.client.get(url)
self.assertEqual(response.status_code, 200)
self.assertEqual(response.content, expected)
self.assertEqual(response.headers["cache-control"], "no-store")
partial = self.client.get(url, headers={"Range": "bytes=0-31"})
self.assertEqual(partial.status_code, 206)
self.assertEqual(partial.content, expected[:32])
self.assertEqual(partial.headers["cache-control"], "no-store")
def test_missing_selected_file_does_not_fall_back_to_old_resume(self):
with TemporaryDirectory() as directory:
path = Path(directory) / "resume-missing.pdf"
with patch.object(main, "RESUME_PATH", path):
response = self.client.get("/api/resume")
self.assertEqual(response.status_code, 404)
if __name__ == "__main__":
unittest.main()
-72
View File
@@ -1,72 +0,0 @@
"""Serverless persistence, payload limits, and scheduled maintenance checks."""
import os
import unittest
from unittest.mock import MagicMock, patch
from fastapi import HTTPException
from fastapi.testclient import TestClient
from backend import main
class VercelTests(unittest.TestCase):
def setUp(self):
self.client = TestClient(main.app)
environment = patch.dict(os.environ, {"VERCEL": "1", "CRON_SECRET": "test-cron-secret"})
environment.start()
self.addCleanup(environment.stop)
def test_no_publishing_without_durable_database(self):
with patch.object(main, "get_supabase", return_value=None):
response = self.client.post("/api/auth/login", json={"password": "example"})
self.assertEqual(response.status_code, 503)
def test_no_local_uploads_even_with_database(self):
with patch.dict(os.environ, {"JOURNAL_MEDIA_STORAGE": "local"}), \
patch.object(main, "get_supabase", return_value=MagicMock()), \
patch.object(main.Path, "mkdir") as mkdir:
with self.assertRaises(HTTPException) as error:
main.store_upload(b"file", "a" * 32, {"name": "file.txt"})
self.assertEqual(error.exception.status_code, 503)
mkdir.assert_not_called()
def test_oversized_upload_is_rejected_before_storage(self):
main.app.dependency_overrides[main.require_admin] = lambda: None
try:
with patch.object(main, "store_upload") as store:
response = self.client.post("/api/uploads?name=large.txt",
content=b"x" * (4 * 1024 * 1024 + 1))
self.assertEqual(response.status_code, 413)
store.assert_not_called()
finally:
main.app.dependency_overrides.pop(main.require_admin, None)
def test_large_existing_download_bypasses_function_payload(self):
media = {"storage": "dropbox", "size": 5 * 1024 * 1024, "dropbox_file_id": "id:abc"}
with patch.object(main, "uploaded_media", return_value=media), \
patch.object(main.dropbox_storage, "temporary_link", return_value="https://example.com/file"), \
patch.object(main.dropbox_storage, "download") as download:
response = self.client.get("/api/uploads/" + "a" * 32, follow_redirects=False)
self.assertEqual(response.status_code, 307)
self.assertEqual(response.headers["cache-control"], "no-store")
download.assert_not_called()
def test_cron_requires_secret_and_runs_cleanup(self):
with patch.object(main.media_cleanup, "cleanup_pending") as cleanup:
for headers in ({}, {"Authorization": "Bearer wrong"}):
self.assertEqual(self.client.get("/api/cron/media-cleanup", headers=headers).status_code, 401)
cleanup.assert_not_called()
response = self.client.get("/api/cron/media-cleanup",
headers={"Authorization": "Bearer test-cron-secret"})
self.assertEqual(response.status_code, 200)
cleanup.assert_called_once()
def test_vercel_lifespan_does_not_start_background_loop(self):
with patch.object(main.media_cleanup.asyncio, "create_task") as create_task:
with TestClient(main.app) as client:
self.assertEqual(client.get("/api/profile").status_code, 200)
create_task.assert_not_called()
if __name__ == "__main__":
unittest.main()
-10
View File
@@ -1,10 +0,0 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="noindex, nofollow" />
<title></title>
</head>
<body></body>
</html>
-1713
View File
File diff suppressed because it is too large Load Diff
-28
View File
@@ -1,28 +0,0 @@
{
"name": "alex-herlan-portfolio",
"private": true,
"version": "1.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^10.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@tiptap/extension-placeholder": "^3.31.3",
"@tiptap/extension-text-style": "^3.31.3",
"@tiptap/pm": "^3.31.3",
"@tiptap/react": "^3.31.3",
"@tiptap/starter-kit": "^3.31.3",
"react": "^19.3.0",
"react-dom": "^19.3.0",
"react-router-dom": "^7.18.3"
},
"devDependencies": {
"@vitejs/plugin-react": "^6.1.1",
"vite": "^8.3.0"
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 203 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 7.1 KiB

@@ -1 +0,0 @@
google-site-verification: google484d40c8dacd0b93.html
-15
View File
@@ -1,15 +0,0 @@
// Apply before the stylesheet loads to avoid a light flash on dark-mode visits.
(() => {
let preference;
try {
preference = localStorage.getItem("portfolio-theme");
} catch {
// Theme selection still works when browser storage is unavailable.
}
const theme = preference === "light" || preference === "dark"
? preference
: window.matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light";
document.documentElement.dataset.theme = theme;
document.documentElement.style.colorScheme = theme;
document.querySelector('meta[name="theme-color"]')?.setAttribute("content", theme === "dark" ? "#141d19" : "#f7f8f4");
})();
-65
View File
@@ -1,65 +0,0 @@
import { lazy, Suspense, useEffect, useState } from "react";
import { Route, Routes, useLocation } from "react-router-dom";
import { getProfile } from "./api";
import Layout from "./components/Layout";
import AdminProvider from "./components/AdminSession";
import AboutPage from "./pages/AboutPage";
import BlogPage from "./pages/BlogPage";
import ContactPage from "./pages/ContactPage";
import ExperiencePage from "./pages/ExperiencePage";
import NotFoundPage from "./pages/NotFoundPage";
import SkillsPage from "./pages/SkillsPage";
import { LoadingState } from "./components/Status";
const BlogPostPage = lazy(() => import("./pages/BlogPostPage"));
const JournalAdminPage = lazy(() => import("./pages/JournalAdminPage"));
function ScrollToTop() {
const { pathname } = useLocation();
useEffect(() => {
window.scrollTo({ top: 0, behavior: "instant" });
}, [pathname]);
return null;
}
export default function App() {
const [profile, setProfile] = useState(null);
const [profileError, setProfileError] = useState("");
useEffect(() => {
const controller = new AbortController();
getProfile(controller.signal)
.then(setProfile)
.catch((error) => {
if (error.name !== "AbortError") setProfileError(error.message);
});
return () => controller.abort();
}, []);
return (
<AdminProvider><Layout profile={profile}>
<ScrollToTop />
<Suspense fallback={<div className="container content-page"><LoadingState label="Opening page" /></div>}>
<Routes>
<Route
path="/"
element={<AboutPage error={profileError} profile={profile} />}
/>
<Route path="/experience" element={<ExperiencePage />} />
<Route path="/skills" element={<SkillsPage />} />
<Route path="/blog" element={<BlogPage />} />
<Route path="/blog/manage" element={<JournalAdminPage />} />
<Route path="/blog/:slug/edit" element={<JournalAdminPage />} />
<Route path="/blog/:slug" element={<BlogPostPage />} />
<Route
path="/contact"
element={<ContactPage error={profileError} profile={profile} />}
/>
<Route path="*" element={<NotFoundPage />} />
</Routes>
</Suspense>
</Layout></AdminProvider>
);
}
-144
View File
@@ -1,144 +0,0 @@
const API_BASE = import.meta.env.VITE_API_BASE_URL ?? "";
function reportExpiredSession(token) {
window.dispatchEvent(new CustomEvent("journal-session-expired", { detail: { token } }));
}
async function request(path, { timeoutMs = 0, ...options } = {}) {
const controller = new AbortController();
const abort = () => controller.abort();
if (options.signal?.aborted) controller.abort();
options.signal?.addEventListener("abort", abort, { once: true });
const timer = timeoutMs ? setTimeout(abort, timeoutMs) : null;
try {
const response = await fetch(`${API_BASE}${path}`, {
...options,
signal: controller.signal,
headers: { "Content-Type": "application/json", ...options.headers },
});
if (!response.ok) {
if (response.status === 401 && options.headers?.Authorization) {
reportExpiredSession(options.headers.Authorization.replace(/^Bearer /, ""));
}
let detail = "Something went wrong. Please try again.";
try {
const body = await response.json();
if (typeof body.detail === "string") detail = body.detail;
else if (Array.isArray(body.detail)) detail = body.detail.map((item) => item.msg?.replace(/^Value error, /, "")).filter(Boolean).join(" ") || detail;
} catch { /* Keep the fallback for proxy errors. */ }
const error = new Error(detail);
error.status = response.status;
throw error;
}
return await response.json();
} catch (error) {
if (controller.signal.aborted && !options.signal?.aborted) {
const timeout = new Error("The request took too long. Please try again.");
timeout.status = 408;
throw timeout;
}
throw error;
} finally {
if (timer !== null) clearTimeout(timer);
options.signal?.removeEventListener("abort", abort);
}
}
function retryDelay(signal) {
return new Promise((resolve, reject) => {
const abort = () => { clearTimeout(timer); reject(new DOMException("Canceled", "AbortError")); };
const timer = setTimeout(() => { signal?.removeEventListener("abort", abort); resolve(); }, 400);
if (signal?.aborted) abort();
else signal?.addEventListener("abort", abort, { once: true });
});
}
async function readRequest(path, options = {}) {
for (let attempt = 0; attempt < 2; attempt += 1) {
try { return await request(path, { timeoutMs: 20000, ...options }); }
catch (error) {
const temporary = error instanceof TypeError || error.status === 408 || error.status >= 500;
if (options.signal?.aborted || !temporary || attempt === 1) throw error;
await retryDelay(options.signal);
}
}
}
export const getProfile = (signal) => request("/api/profile", { signal });
export const getExperience = (signal) => readRequest("/api/experience", { signal });
export const getSkills = (signal) => readRequest("/api/skills", { signal });
const saveContent = (path, method, payload, token) => request(path, {
method, headers: { Authorization: `Bearer ${token}` },
...(payload === undefined ? {} : { body: JSON.stringify(payload) }),
});
export const createExperience = (payload, token) => saveContent("/api/experience", "POST", payload, token);
export const updateExperience = (id, payload, token) => saveContent(`/api/experience/${encodeURIComponent(id)}`, "PUT", payload, token);
export const deleteExperience = (id, token) => saveContent(`/api/experience/${encodeURIComponent(id)}`, "DELETE", undefined, token);
export const createSkillCategory = (payload, token) => saveContent("/api/skills/categories", "POST", payload, token);
export const updateSkillCategory = (id, payload, token) => saveContent(`/api/skills/categories/${encodeURIComponent(id)}`, "PUT", payload, token);
export const deleteSkillCategory = (id, token) => saveContent(`/api/skills/categories/${encodeURIComponent(id)}`, "DELETE", undefined, token);
export const updateSkillsOverview = (payload, token) => saveContent("/api/skills", "PATCH", payload, token);
export const getPosts = (signal) => readRequest("/api/posts", { signal });
export const getPost = (slug, signal) => readRequest(`/api/posts/${slug}`, { signal });
export const mediaUrl = (media) => `${API_BASE}${media.url}`;
export function uploadMedia(file, purpose, token, { onProgress, signal } = {}) {
return new Promise((resolve, reject) => {
const xhr = new XMLHttpRequest();
const abort = () => xhr.abort();
if (signal?.aborted) { reject(new DOMException("Upload canceled", "AbortError")); return; }
xhr.open("POST", `${API_BASE}/api/uploads?name=${encodeURIComponent(file.name)}&purpose=${purpose}`);
xhr.setRequestHeader("Authorization", `Bearer ${token}`);
xhr.setRequestHeader("Content-Type", "application/octet-stream");
xhr.responseType = "json";
xhr.timeout = 120000;
xhr.upload.onprogress = (event) => {
if (event.lengthComputable) onProgress?.(Math.round(event.loaded / event.total * 100));
};
xhr.onload = () => {
if (xhr.status >= 200 && xhr.status < 300 && xhr.response) resolve(xhr.response);
else {
if (xhr.status === 401) reportExpiredSession(token);
const error = new Error(typeof xhr.response?.detail === "string" ? xhr.response.detail : "Upload failed. Please try again.");
error.status = xhr.status;
reject(error);
}
};
xhr.onerror = () => reject(new Error("Connection lost. Check your connection and retry."));
xhr.ontimeout = () => reject(new Error("Upload timed out. Please retry."));
xhr.onabort = () => reject(new DOMException("Upload canceled", "AbortError"));
xhr.onloadend = () => signal?.removeEventListener("abort", abort);
signal?.addEventListener("abort", abort, { once: true });
xhr.send(file);
});
}
export const loginAdmin = (password) =>
request("/api/auth/login", {
method: "POST",
body: JSON.stringify({ password }),
});
export const getAdminSession = (token, signal) =>
readRequest("/api/auth/session", {
timeoutMs: 5000,
signal,
headers: { Authorization: `Bearer ${token}` },
});
export const createPost = (payload, token) =>
request("/api/posts", {
method: "POST",
headers: { Authorization: `Bearer ${token}` },
body: JSON.stringify(payload),
});
export const updateArticle = (slug, payload, token) => request(`/api/posts/${slug}`, {
method: "PUT",
headers: { Authorization: `Bearer ${token}` },
body: JSON.stringify(payload),
});
export const deleteArticle = (slug, token) => request(`/api/posts/${slug}`, {
method: "DELETE",
headers: { Authorization: `Bearer ${token}` },
});
export const sendContactMessage = (payload) =>
request("/api/contact", {
method: "POST",
body: JSON.stringify(payload),
});
-13
View File
@@ -1,13 +0,0 @@
// Starter articles use section arrays; the editor uses Tiptap documents.
export function editableDocument(content) {
if (!Array.isArray(content)) return content;
return { type: "doc", content: content.flatMap((section) => [
...(section.heading ? [{ type: "heading", attrs: { level: 2 }, content: [{ type: "text", text: section.heading }] }] : []),
...section.paragraphs.map((text) => ({ type: "paragraph", ...(text ? { content: [{ type: "text", text }] } : {}) })),
]) };
}
export function articlePlainText(node) {
if (!node) return "";
return [node.text ?? "", ...(node.content ?? []).map(articlePlainText)].filter(Boolean).join(" ").trim();
}
-130
View File
@@ -1,130 +0,0 @@
import { createContext, useCallback, useContext, useEffect, useRef, useState } from "react";
import { Link } from "react-router-dom";
import { getAdminSession, loginAdmin } from "../api";
import Modal from "./Modal";
import Icon from "./Icon";
const TOKEN_KEY = "alex-journal-admin";
const AdminContext = createContext(null);
export const useAdmin = () => useContext(AdminContext);
export default function AdminProvider({ children }) {
const [token, setToken] = useState(() => sessionStorage.getItem(TOKEN_KEY) ?? "");
const [checking, setChecking] = useState(Boolean(token));
const [role, setRole] = useState(null);
const [open, setOpen] = useState(false);
const [password, setPassword] = useState("");
const [busy, setBusy] = useState(false);
const [error, setError] = useState("");
const [sessionRevision, setSessionRevision] = useState(0);
const [checkAttempt, setCheckAttempt] = useState(0);
const tokenRef = useRef(token);
const verifiedToken = useRef("");
const signOut = useCallback(() => {
tokenRef.current = "";
verifiedToken.current = "";
sessionStorage.removeItem(TOKEN_KEY);
setToken("");
setRole(null);
setChecking(false);
setPassword("");
setOpen(false);
}, []);
useEffect(() => {
if (!token || verifiedToken.current === token) return;
const controller = new AbortController();
setChecking(true);
getAdminSession(token, controller.signal)
.then((session) => {
if (!controller.signal.aborted && tokenRef.current === token) {
verifiedToken.current = token;
setRole(session.role);
setError("");
setSessionRevision((current) => current + 1);
}
})
.catch((requestError) => {
if (!controller.signal.aborted && tokenRef.current === token) {
if (requestError.status === 401) signOut();
setError(requestError.status === 401 ? requestError.message : "Could not check your session. Retry when your connection is back, or sign in again.");
}
})
.finally(() => { if (!controller.signal.aborted) setChecking(false); });
return () => controller.abort();
}, [token, checkAttempt, signOut]);
useEffect(() => {
const retry = () => { if (tokenRef.current && !verifiedToken.current) setCheckAttempt((current) => current + 1); };
window.addEventListener("online", retry);
window.addEventListener("focus", retry);
return () => { window.removeEventListener("online", retry); window.removeEventListener("focus", retry); };
}, []);
useEffect(() => {
const expire = (event) => {
const expiredToken = event?.detail?.token ?? token;
if (!expiredToken || expiredToken !== tokenRef.current) return;
signOut();
setError("Your session ended. Sign in again to manage articles.");
};
window.addEventListener("journal-session-expired", expire);
const expiresAt = Number(token.split(".")[0]) * 1000;
const timer = token ? setTimeout(expire, Math.max(0, expiresAt - Date.now())) : null;
return () => {
window.removeEventListener("journal-session-expired", expire);
if (timer !== null) clearTimeout(timer);
};
}, [token, signOut]);
async function signIn(event) {
event.preventDefault();
if (busy) return;
setBusy(true);
setError("");
try {
const session = await loginAdmin(password);
sessionStorage.setItem(TOKEN_KEY, session.access_token);
tokenRef.current = session.access_token;
verifiedToken.current = session.access_token;
setToken(session.access_token);
setRole(session.role);
setChecking(false);
setSessionRevision((current) => current + 1);
setPassword("");
setOpen(false);
} catch (requestError) {
setError(requestError.message);
} finally {
setBusy(false);
}
}
const isAdmin = role === "admin" && Boolean(token) && !checking;
const close = () => { setOpen(false); setPassword(""); };
return <AdminContext.Provider value={{ token, checking, isAdmin, sessionRevision, signOut, openSignIn: () => setOpen(true) }}>
{children}
{open && <Modal title={isAdmin ? "Admin account" : "Admin sign in"} onClose={close} busy={busy}>
{isAdmin ? <div className="admin-account">
<span className="publisher-badge"><span /> Admin</span>
<p>Manage your articles, experience, and skills.</p>
<Link className="button button--primary" to="/blog/manage" onClick={close}><Icon name="plus" size={18} /> New article</Link>
<Link className="button" to="/blog" onClick={close}>Manage articles</Link>
<Link className="button" to="/experience" onClick={close}>Manage experience</Link>
<Link className="button" to="/skills" onClick={close}>Manage skills</Link>
<button className="text-button" type="button" onClick={signOut}><Icon name="logout" size={18} /> Sign out</button>
</div> : <form className="admin-signin" onSubmit={signIn}>
<p>Enter the admin password to manage your website content.</p>
<label className="publisher-field">
<span>Admin password</span>
<input autoFocus autoComplete="current-password" type="password" required maxLength={200}
value={password} onChange={(event) => setPassword(event.target.value)} />
</label>
{error && <p className="form-status form-status--error" role="alert">{error}</p>}
{token && !checking && <button className="text-button" type="button" onClick={() => setCheckAttempt((current) => current + 1)}>Retry session check</button>}
<button className="button button--primary" type="submit" disabled={busy || checking}>{busy ? "Signing in…" : "Sign in"}</button>
</form>}
</Modal>}
</AdminContext.Provider>;
}
@@ -1,44 +0,0 @@
import { useState } from "react";
import { Link } from "react-router-dom";
import { deleteArticle } from "../api";
import { useAdmin } from "./AdminSession";
import Icon from "./Icon";
import Modal from "./Modal";
export default function ArticleAdminActions({ post, onDeleted }) {
const { isAdmin, token } = useAdmin();
const [confirming, setConfirming] = useState(false);
const [busy, setBusy] = useState(false);
const [error, setError] = useState("");
if (!isAdmin) return null;
async function remove() {
if (busy) return;
setBusy(true);
setError("");
try {
await deleteArticle(post.slug, token);
setConfirming(false);
onDeleted(post.slug);
} catch (requestError) {
setError(requestError.message);
} finally {
setBusy(false);
}
}
return <div className="article-admin-actions">
<Link className="text-button" to={`/blog/${post.slug}/edit`}><Icon name="edit" size={16} /> Edit</Link>
<button className="text-button text-button--danger" type="button" onClick={() => { setError(""); setConfirming(true); }}>
<Icon name="trash" size={16} /> Delete
</button>
{confirming && <Modal title="Delete article?" onClose={() => setConfirming(false)} busy={busy}>
<p>“{post.title}” and its uploaded files will be deleted. Files used by another article will be kept. This cannot be undone.</p>
{error && <p className="form-status form-status--error" role="alert">{error}</p>}
<div className="dialog-actions">
<button autoFocus className="button" type="button" disabled={busy} onClick={() => setConfirming(false)}>Cancel</button>
<button className="button button--danger" type="button" disabled={busy} onClick={remove}>{busy ? "Deleting…" : "Delete article"}</button>
</div>
</Modal>}
</div>;
}
-192
View File
@@ -1,192 +0,0 @@
import { useEffect, useId, useRef, useState } from "react";
import { mediaUrl } from "../api";
import Icon from "./Icon";
import AttachmentList from "./AttachmentList";
const imageTypes = ["image/jpeg", "image/png", "image/webp", "image/gif"];
const maxUploadMB = Number(import.meta.env.VITE_MAX_UPLOAD_MB ?? 20);
const uploadLimitMB = (purpose) => Math.min(purpose === "banner" ? 8 : 20, maxUploadMB);
const isImage = (file) => imageTypes.includes(file.type) || (!file.type && /\.(jpe?g|png|webp|gif)$/i.test(file.name));
const fileSize = (size) => size < 1024 * 1024 ? `${Math.max(1, Math.round(size / 1024))} KB` : `${(size / 1024 / 1024).toFixed(1)} MB`;
function Dropzone({ purpose, disabled, onFiles, hasBanner }) {
const input = useRef(null);
const depth = useRef(0);
const [dragging, setDragging] = useState(false);
const hintId = useId();
const banner = purpose === "banner";
return <div className={`upload-dropzone ${dragging && !disabled ? "is-dragging" : ""} ${disabled ? "is-disabled" : ""}`}
onDragEnter={(event) => { event.preventDefault(); depth.current += 1; setDragging(true); }}
onDragOver={(event) => { event.preventDefault(); event.dataTransfer.dropEffect = disabled ? "none" : "copy"; }}
onDragLeave={(event) => { event.preventDefault(); depth.current -= 1; if (depth.current <= 0) setDragging(false); }}
onDrop={(event) => {
event.preventDefault(); depth.current = 0; setDragging(false);
if (!disabled) onFiles(Array.from(event.dataTransfer.files), purpose);
}}>
<span className="upload-dropzone__icon"><Icon name={banner ? "photo" : "upload"} size={25} /></span>
<strong>{banner ? hasBanner ? "Drop a new banner to replace it" : "Give your article a cover" : "Add something worth sharing"}</strong>
<p>{banner ? "Drag an image here, or choose one below." : "Drop photos, documents, or other files here."}</p>
<button type="button" className="upload-browse" disabled={disabled} aria-describedby={hintId} onClick={() => input.current.click()}>
<Icon name="plus" size={16} /> {banner ? hasBanner ? "Replace banner" : "Choose banner" : "Browse files"}
</button>
<small id={hintId}>{banner ? `JPG, PNG, WebP or GIF · Up to ${uploadLimitMB(purpose)} MB` : `Up to 10 files · ${uploadLimitMB(purpose)} MB each`}</small>
<input ref={input} className="upload-input" type="file" tabIndex={-1}
aria-label={banner ? "Banner image" : "Additional photos & files"}
accept={banner ? "image/jpeg,image/png,image/webp,image/gif" : undefined}
multiple={!banner} disabled={disabled} onChange={(event) => {
onFiles(Array.from(event.target.files), purpose);
event.target.value = "";
}} />
</div>;
}
export default function ArticleUploads({ banner, attachments, busy, title, subtitle, onUpload, onPendingChange, onRemoveBanner, onRemoveAttachment, onMoveAttachment }) {
const [tasks, setTasks] = useState([]);
const [messages, setMessages] = useState([]);
const queue = useRef([]);
const running = useRef(false);
const mounted = useRef(true);
const previews = useRef(new Set());
useEffect(() => {
mounted.current = true;
return () => {
mounted.current = false;
queue.current.forEach((task) => task.controller?.abort());
previews.current.forEach((url) => URL.revokeObjectURL(url));
previews.current.clear();
onPendingChange(false);
};
}, [onPendingChange]);
function updateQueue(next) {
queue.current = next;
if (mounted.current) { setTasks(next); onPendingChange(next.length > 0); }
}
function forget(id) {
const task = queue.current.find((item) => item.id === id);
if (task?.preview) { URL.revokeObjectURL(task.preview); previews.current.delete(task.preview); }
updateQueue(queue.current.filter((item) => item.id !== id));
}
function change(id, values) {
updateQueue(queue.current.map((task) => task.id === id ? { ...task, ...values } : task));
}
async function processQueue() {
if (running.current) return;
running.current = true;
try {
let task;
while (mounted.current && (task = queue.current.find((item) => item.status === "queued"))) {
const controller = new AbortController();
const id = task.id;
change(id, { status: "uploading", controller, progress: 0 });
try {
await onUpload(task.file, task.purpose, {
signal: controller.signal,
onProgress: (progress) => { if (mounted.current) change(id, { progress }); },
});
if (mounted.current) forget(id);
} catch (error) {
if (mounted.current && error.name !== "AbortError") change(id, { status: "error", error: error.message });
}
}
} finally {
running.current = false;
}
}
function addFiles(files, purpose) {
if (busy || !files.length) return;
const errors = [];
if (purpose === "banner" && (files.length > 1 || queue.current.some((task) => task.purpose === "banner"))) {
setMessages(["Choose one banner at a time. Finish or remove the current banner upload first."]);
return;
}
const additions = [];
const existing = [...attachments, ...queue.current.filter((task) => task.purpose === "attachment").map((task) => task.file)];
for (const file of files) {
const limit = uploadLimitMB(purpose) * 1024 * 1024;
if (!file.size) { errors.push(`${file.name}: this file is empty.`); continue; }
if (file.size > limit) { errors.push(`${file.name}: exceeds the ${uploadLimitMB(purpose)} MB limit.`); continue; }
if (purpose === "banner" && !isImage(file)) { errors.push(`${file.name}: choose a JPG, PNG, WebP, or GIF image.`); continue; }
if (purpose === "attachment" && existing.some((item) => item.name === file.name && item.size === file.size)) {
errors.push(`${file.name}: already added.`); continue;
}
if (purpose === "attachment" && existing.length >= 10) { errors.push(`${file.name}: all 10 attachment slots are filled.`); continue; }
const preview = isImage(file) ? URL.createObjectURL(file) : null;
if (preview) previews.current.add(preview);
additions.push({ id: crypto.randomUUID(), file, purpose, preview, status: "queued", progress: 0 });
if (purpose === "attachment") existing.push(file);
}
setMessages(errors);
if (additions.length) {
updateQueue([...queue.current, ...additions]);
processQueue();
}
}
function cancel(task) { task.controller?.abort(); forget(task.id); }
const bannerTask = tasks.find((task) => task.purpose === "banner");
const heroImage = bannerTask?.preview ?? (banner ? mediaUrl(banner) : null);
const attachmentCount = attachments.length + tasks.filter((task) => task.purpose === "attachment").length;
return <fieldset className="article-uploads" disabled={busy}>
<legend>Photos & files</legend>
<div className="upload-section">
<div className="upload-section__heading"><div><h3>Banner image</h3><p>Your journal thumbnail and article cover.</p></div><span className="upload-label">Optional</span></div>
{heroImage && <div className="upload-hero-preview">
<img src={heroImage} alt="Banner preview" />
<div><span>{bannerTask ? "Preview · Upload pending" : "Hero preview"}</span><strong>{title || "Your article title"}</strong><p>{subtitle || "Your subtitle appears here, over the cover image."}</p></div>
</div>}
{banner && <div className="upload-saved-banner"><span><Icon name="check" size={15} /> {banner.name} <small>{fileSize(banner.size)}</small></span>
<button type="button" className="text-button" disabled={Boolean(bannerTask)} onClick={onRemoveBanner}>Remove banner</button></div>}
<Dropzone purpose="banner" hasBanner={Boolean(banner)} disabled={busy || Boolean(bannerTask)} onFiles={addFiles} />
<small className="upload-tip">Wide images work best. The cover is cropped to fill the hero and thumbnail.</small>
</div>
<div className="upload-section">
<div className="upload-section__heading"><div><h3>Additional photos & files</h3><p>Shown below your article, in this order.</p></div><span className="upload-label">{attachmentCount}/10</span></div>
<Dropzone purpose="attachment" disabled={busy || attachmentCount >= 10} onFiles={addFiles} />
{attachments.length > 0 && <AttachmentList attachments={attachments} busy={busy} onMove={onMoveAttachment} onRemove={onRemoveAttachment} formatSize={fileSize} />}
</div>
{messages.length > 0 && <div className="upload-feedback" role="alert"><strong>Some files could not be added</strong><ul>{messages.map((message, index) => <li key={index}>{message}</li>)}</ul><button type="button" className="text-button" onClick={() => setMessages([])}>Dismiss</button></div>}
{tasks.length > 0 && <div className="upload-queue">
<h3>Upload queue</h3>
<ul className="upload-list">{tasks.map((task) => <li key={task.id} className={task.status === "error" ? "has-error" : ""}>
<span className="upload-file-icon">{task.preview ? <img src={task.preview} alt="" /> : <Icon name="file" size={24} />}</span>
<div className="upload-file-info"><strong>{task.file.name}</strong><small>{fileSize(task.file.size)} · {task.purpose === "banner" ? "Banner" : "Attachment"}</small>
{task.status === "error" ? <p role="alert">{task.error}</p> : <>
<small>{task.status === "queued" ? "Waiting to upload" : task.progress === 100 ? "Processing file…" : `Uploading ${task.progress}%`}</small>
<progress max="100" value={task.progress} aria-label={`Uploading ${task.file.name}`} />
</>}
</div>
<div className="upload-file-actions">
{task.status === "error" && <button type="button" className="text-button" aria-label={`Retry ${task.file.name}`} onClick={() => { change(task.id, { status: "queued", error: "" }); processQueue(); }}>Retry</button>}
<button type="button" className="upload-icon-button" aria-label={`${task.status === "error" ? "Remove" : "Cancel"} upload ${task.file.name}`} onClick={() => cancel(task)}><Icon name="close" size={18} /></button>
</div>
</li>)}</ul>
<p className="upload-tip" role="status">{tasks.some((task) => task.status === "error") ? "Retry or remove failed uploads before publishing." : "You can keep writing while your files upload."}</p>
</div>}
</fieldset>;
}
export function ArticleAttachments({ attachments = [] }) {
if (!attachments.length) return null;
return <aside className="article-attachments" aria-label="Additional photos and files">
<h2>Photos & files</h2>
{attachments.map((file) => file.media_type.startsWith("image/") ? (
<figure key={file.url}>
<a href={mediaUrl(file)} target="_blank" rel="noreferrer"><img src={mediaUrl(file)} alt={file.name} loading="lazy" /></a>
<figcaption>{file.name}</figcaption>
</figure>
) : (
<a className="article-file" key={file.url} href={mediaUrl(file)} download={file.name}>
<span>{file.name}</span><small>Download · {Math.ceil(file.size / 1024)} KB</small>
</a>
))}
</aside>;
}
@@ -1,68 +0,0 @@
import { useState } from "react";
import { DndContext, KeyboardSensor, MouseSensor, TouchSensor, closestCenter, useSensor, useSensors } from "@dnd-kit/core";
import { SortableContext, sortableKeyboardCoordinates, useSortable, verticalListSortingStrategy } from "@dnd-kit/sortable";
import { CSS } from "@dnd-kit/utilities";
import { mediaUrl } from "../api";
import Icon from "./Icon";
const verticalDrag = ({ transform }) => ({ ...transform, x: 0 });
function SortableAttachment({ file, busy, canSort, sorting, onRemove, formatSize }) {
const { attributes, listeners, setNodeRef, setActivatorNodeRef, transform, transition, isDragging } = useSortable({
id: file.url, disabled: !canSort, transition: { duration: 180, easing: "ease" },
});
return <li ref={setNodeRef} className={`upload-sortable ${isDragging ? "is-sorting" : ""} ${!canSort ? "is-disabled" : ""}`}
style={{ transform: CSS.Transform.toString(transform), transition }}
onDragStart={(event) => event.preventDefault()}
onMouseDown={(event) => {
// Keep touch scrolling available on the row, with dragging on the handle.
if (!event.target.closest("button")) listeners?.onMouseDown?.(event);
}}>
<button ref={setActivatorNodeRef} type="button" className="upload-drag-handle"
{...attributes} {...listeners} disabled={!canSort} aria-label={`Reorder ${file.name}`}
title="Drag to reorder. Or press Space, use arrow keys, then Space to drop.">
<Icon name="grip" size={18} />
</button>
<span className="upload-file-icon">{file.media_type.startsWith("image/") ? <img src={mediaUrl(file)} alt="" draggable={false} /> : <Icon name="file" size={24} />}</span>
<div className="upload-file-info"><strong>{file.name}</strong><small>{formatSize(file.size)} · <span className="upload-ready">Ready</span></small></div>
<button type="button" className="upload-icon-button" disabled={busy || sorting}
aria-label={`Remove ${file.name}`} title="Remove file" onClick={() => onRemove(file.url)}><Icon name="close" size={17} /></button>
</li>;
}
export default function AttachmentList({ attachments, busy, onMove, onRemove, formatSize }) {
const [activeId, setActiveId] = useState(null);
const sensors = useSensors(
useSensor(MouseSensor, { activationConstraint: { distance: 6 } }),
useSensor(TouchSensor, { activationConstraint: { delay: 150, tolerance: 5 } }),
useSensor(KeyboardSensor, { coordinateGetter: sortableKeyboardCoordinates, scrollBehavior: "auto" }),
);
const describe = (id) => attachments.find((file) => file.url === id)?.name ?? "File";
const position = (id) => attachments.findIndex((file) => file.url === id) + 1;
return <>
{attachments.length > 1 && <p className="upload-tip upload-sort-hint">Drag to reorder. Keyboard: <kbd>Space</kbd> to pick up, <kbd>↑</kbd>/<kbd>↓</kbd> to move, <kbd>Space</kbd> to drop.</p>}
<DndContext sensors={sensors} collisionDetection={closestCenter} modifiers={[verticalDrag]}
accessibility={{
screenReaderInstructions: { draggable: "Press Space to pick up a file, arrow keys to move it, and Space to drop. Press Escape to cancel." },
announcements: {
onDragStart: ({ active }) => `Picked up ${describe(active.id)}, position ${position(active.id)} of ${attachments.length}.`,
onDragOver: ({ active, over }) => over ? `${describe(active.id)}, position ${position(over.id)} of ${attachments.length}.` : undefined,
onDragEnd: ({ active, over }) => over ? `Dropped ${describe(active.id)} at position ${position(over.id)} of ${attachments.length}.` : "Reordering canceled.",
onDragCancel: () => "Reordering canceled. File order unchanged.",
},
}}
onDragStart={({ active }) => setActiveId(active.id)}
onDragCancel={() => setActiveId(null)}
onDragEnd={({ active, over }) => {
setActiveId(null);
if (!busy && over && active.id !== over.id) onMove(active.id, over.id);
}}>
<SortableContext items={attachments.map((file) => file.url)} strategy={verticalListSortingStrategy}>
<ul className="upload-list upload-sortable-list" aria-label="Attachment order">
{attachments.map((file) => <SortableAttachment key={file.url} file={file} formatSize={formatSize}
busy={busy} canSort={!busy && attachments.length > 1} sorting={activeId !== null} onRemove={onRemove} />)}
</ul>
</SortableContext>
</DndContext>
</>;
}
-92
View File
@@ -1,92 +0,0 @@
const paths = {
sun: <><circle cx="12" cy="12" r="4" /><path d="M12 2v2m0 16v2M2 12h2m16 0h2M4.93 4.93l1.42 1.42m11.3 11.3 1.42 1.42M4.93 19.07l1.42-1.42m11.3-11.3 1.42-1.42" /></>,
moon: <path d="M20.9 13.1A9 9 0 0 1 10.9 3.1a9 9 0 1 0 10 10Z" />,
grip: <path d="M9 5h.01M15 5h.01M9 12h.01M15 12h.01M9 19h.01M15 19h.01" strokeWidth="3" />,
upload: <path d="M12 16V3m-5 5 5-5 5 5M4 16v5h16v-5" />,
photo: <><rect x="3" y="3" width="18" height="18" rx="3" /><circle cx="8" cy="8" r="1.5" /><path d="m3 17 6-6 4 4 3-3 5 5" /></>,
file: <><path d="M14 2H5v20h14V7l-5-5Zm0 0v6h5M8 13h8M8 17h5" /></>,
up: <path d="m6 14 6-6 6 6" />,
down: <path d="m6 10 6 6 6-6" />,
user: <><circle cx="12" cy="8" r="4" /><path d="M4 21v-2a8 8 0 0 1 16 0v2" /></>,
edit: <><path d="m15 4 5 5M4 20l5-1L21 7a2 2 0 0 0-5-5L4 14v6Z" /></>,
trash: <><path d="M3 6h18M9 6V3h6v3M5 6l1 15h12l1-15M10 10v7M14 10v7" /></>,
arrow: <path d="M5 12h14m-5-5 5 5-5 5" />,
arrowLeft: <path d="m11 17-5-5 5-5m-5 5h13" />,
arrowUpRight: <path d="M7 17 17 7M8 7h9v9" />,
calendar: (
<>
<rect x="3" y="5" width="18" height="16" rx="3" />
<path d="M16 3v4M8 3v4M3 10h18" />
</>
),
check: <path d="m5 12 4 4L19 6" />,
chevron: <path d="m8 10 4 4 4-4" />,
close: <path d="m6 6 12 12M18 6 6 18" />,
code: <path d="m8 9-3 3 3 3m8-6 3 3-3 3m-2-9-4 12" />,
email: (
<>
<rect x="3" y="5" width="18" height="14" rx="3" />
<path d="m4 7 8 6 8-6" />
</>
),
github: (
<path d="M15 22v-3.9c.04-1-.35-1.75-.9-2.25 3-.34 6.15-1.48 6.15-6.68A5.2 5.2 0 0 0 18.86 5.5a4.85 4.85 0 0 0-.13-3.63S17.64 1.52 15 3.27a12.5 12.5 0 0 0-6 0C6.36 1.52 5.27 1.87 5.27 1.87a4.85 4.85 0 0 0-.13 3.63 5.2 5.2 0 0 0-1.39 3.67c0 5.19 3.15 6.34 6.14 6.68-.44.4-.77.98-.86 1.7-.78.35-2.74.95-3.95-1.13-.25-.4-.86-1.38-1.76-1.36-.96.02-.39.55.01.77.65.36 1.1 1.74 1.24 2.17.22.63.94 1.83 4.42 1.32V22" />
),
linkedin: (
<>
<path d="M7 9v10M7 5.5v.01M11 19v-5.5a4 4 0 0 1 8 0V19M11 9v10" />
<rect x="3" y="3" width="18" height="18" rx="4" />
</>
),
instagram: (
<>
<rect x="3" y="3" width="18" height="18" rx="5" />
<circle cx="12" cy="12" r="4" />
<path d="M17.5 6.5h.01" />
</>
),
lock: (
<>
<rect x="4" y="10" width="16" height="11" rx="3" />
<path d="M8 10V7a4 4 0 0 1 8 0v3M12 14v3" />
</>
),
logout: <path d="M10 5H5a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h5m4-4 3-3-3-3m3 3H8" />,
menu: <path d="M4 7h16M4 12h16M4 17h16" />,
plus: <path d="M12 5v14M5 12h14" />,
search: <path d="m20 20-4.35-4.35m2.35-5.15a7.5 7.5 0 1 1-15 0 7.5 7.5 0 0 1 15 0Z" />,
send: <path d="m21 3-7.5 18-3.8-7.7L2 9.5 21 3Zm-11.3 10.3L14 9" />,
spark: <path d="M12 2c.6 5.4 3.6 8.4 9 9-5.4.6-8.4 3.6-9 9-.6-5.4-3.6-8.4-9-9 5.4-.6 8.4-3.6 9-9Z" />,
spotify: (
<>
<circle cx="12" cy="12" r="9" />
<path d="M7.5 9.5c3.5-1 7.3-.6 10 1M8.3 12.5c2.8-.7 6-.4 8.4.8M9 15.3c2.2-.5 4.6-.2 6.6.8" />
</>
),
steam: (
<>
<circle cx="15.5" cy="8.5" r="3.5" />
<circle cx="7" cy="16.5" r="2.5" />
<path d="m9 15 3.7-2.4 2.8-.6M4.8 15.3 2.5 14" />
</>
),
};
export default function Icon({ name, size = 20, className = "" }) {
return (
<svg
aria-hidden="true"
className={className}
fill="none"
height={size}
viewBox="0 0 24 24"
width={size}
stroke="currentColor"
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="1.8"
>
{paths[name]}
</svg>
);
}
-141
View File
@@ -1,141 +0,0 @@
import { useEffect, useId, useState } from "react";
import { NavLink, useLocation } from "react-router-dom";
import Icon from "./Icon";
import { useAdmin } from "./AdminSession";
import ThemeToggle from "./ThemeToggle";
const navItems = [
{ label: "About", to: "/" },
{ label: "Experience", to: "/experience" },
{ label: "Skills", to: "/skills" },
{ label: "Journal", to: "/blog" },
{ label: "Contact", to: "/contact" },
];
function Header({ name }) {
const { isAdmin, checking, openSignIn } = useAdmin();
const [menuOpen, setMenuOpen] = useState(false);
const navigationId = useId();
const location = useLocation();
useEffect(() => setMenuOpen(false), [location.pathname]);
return (
<header className="site-header">
<div className="container header-inner">
<NavLink className="brand" to="/" aria-label={`${name} home`}>
<img className="brand-mark brand-photo" src="/alex-avatar-96.webp" width="42" height="42" alt="" />
<span className="brand-name">{name}</span>
</NavLink>
<div className="header-actions">
<div className="nav-positioner">
<div className="container nav-positioner__inner">
<nav id={navigationId} className={`nav-shell ${menuOpen ? "is-open" : ""}`} aria-label="Main navigation">
{navItems.map((item) => (
<NavLink
className={({ isActive }) => `nav-link ${isActive ? "is-active" : ""}`}
end={item.to === "/"}
key={item.to}
to={item.to}
>
{item.label}
</NavLink>
))}
</nav>
<button
aria-expanded={menuOpen}
aria-controls={navigationId}
aria-label={menuOpen ? "Close navigation" : "Open navigation"}
className="menu-button"
onClick={() => setMenuOpen((open) => !open)}
type="button"
>
<Icon name={menuOpen ? "close" : "menu"} />
</button>
</div>
</div>
<ThemeToggle />
<button type="button" className={`icon-button header-signin ${isAdmin ? "is-admin" : ""}`}
aria-label={isAdmin ? "Admin account" : "Admin sign in"} title={isAdmin ? "Admin account" : "Admin sign in"}
aria-haspopup="dialog" disabled={checking} onClick={openSignIn}>
<Icon name={isAdmin ? "user" : "lock"} />
{isAdmin && <span className="admin-indicator" />}
</button>
</div>
</div>
</header>
);
}
function Footer({ name }) {
const now = new Date();
const monthAndYear = new Intl.DateTimeFormat("en-US", {
month: "short",
year: "numeric",
}).format(now);
return (
<footer className="site-footer">
<div className="container footer-inner">
<p>© {now.getFullYear()} · All rights reserved · {monthAndYear}</p>
<p className="signature" aria-label={`${name} signature`}>
{name}
</p>
</div>
</footer>
);
}
export default function Layout({ children, profile }) {
const location = useLocation();
const name = profile?.display_name ?? "Alex Herlan";
const isAbout = location.pathname === "/";
useEffect(() => {
let pressed = null;
let origin = null;
const clear = () => {
pressed?.removeAttribute("data-pressed");
pressed = null;
origin = null;
};
const press = (event) => {
clear();
if (!event.isPrimary || event.button !== 0) return;
const control = event.target.closest?.(".button, .culture-link");
if (!control || control.matches(":disabled")) return;
pressed = control;
origin = { x: event.clientX, y: event.clientY };
pressed.setAttribute("data-pressed", "true");
};
const move = (event) => {
if (origin && Math.hypot(event.clientX - origin.x, event.clientY - origin.y) > 10) clear();
};
window.addEventListener("pointerdown", press, { passive: true });
window.addEventListener("pointermove", move, { passive: true });
window.addEventListener("pointerup", clear);
window.addEventListener("pointercancel", clear);
window.addEventListener("blur", clear);
return () => {
clear();
window.removeEventListener("pointerdown", press);
window.removeEventListener("pointermove", move);
window.removeEventListener("pointerup", clear);
window.removeEventListener("pointercancel", clear);
window.removeEventListener("blur", clear);
};
}, []);
return (
<div className="app-shell">
<a className="skip-link" href="#main-content">Skip to content</a>
<Header name={name} />
<main className={`site-main ${isAbout ? "site-main--about" : ""}`} id="main-content">
{children}
</main>
<Footer name={name} />
</div>
);
}
-21
View File
@@ -1,21 +0,0 @@
import { useEffect, useId, useRef } from "react";
import Icon from "./Icon";
export default function Modal({ title, children, onClose, busy = false }) {
const dialog = useRef(null);
const titleId = useId();
useEffect(() => {
const element = dialog.current;
element.showModal();
return () => element.close();
}, []);
return <dialog ref={dialog} className="admin-dialog" aria-labelledby={titleId}
onCancel={(event) => { event.preventDefault(); if (!busy) onClose(); }}>
<div className="admin-dialog__heading">
<h2 id={titleId}>{title}</h2>
<button type="button" className="icon-button" aria-label="Close dialog" disabled={busy} onClick={onClose}><Icon name="close" /></button>
</div>
{children}
</dialog>;
}
-13
View File
@@ -1,13 +0,0 @@
export default function PageHeader({ eyebrow, title, description, aside }) {
return (
<header className="page-heading reveal">
<div>
<p className="eyebrow">{eyebrow}</p>
<h1>{title}</h1>
{description && <p className="page-description">{description}</p>}
</div>
{aside && <div className="page-heading__aside">{aside}</div>}
</header>
);
}
@@ -1,122 +0,0 @@
import { useState } from "react";
import { createExperience, updateExperience, createSkillCategory, updateSkillCategory, updateSkillsOverview } from "../api";
import { useAdmin } from "./AdminSession";
import Icon from "./Icon";
import Modal from "./Modal";
const lines = (text) => text.split("\n").map((line) => line.trim()).filter(Boolean);
function EditorDialog({ title, children, onClose, onSave, onSaved, submitLabel = "Save changes", destructive = false }) {
const { token, isAdmin, openSignIn } = useAdmin();
const [busy, setBusy] = useState(false);
const [error, setError] = useState("");
async function submit(event) {
event.preventDefault();
if (busy || !isAdmin) return;
setBusy(true); setError("");
try { const result = await onSave(token); onSaved(result); }
catch (problem) { setError(problem.message); }
finally { setBusy(false); }
}
return <Modal title={title} busy={busy} onClose={onClose}>
<form className="portfolio-editor" onSubmit={submit}>
<fieldset disabled={busy || !isAdmin}>{children}</fieldset>
{error && <p className="form-status form-status--error" role="alert">{error}</p>}
{!isAdmin && <p className="form-status" role="status">Sign in again to save. Your edits are still here.</p>}
<div className="dialog-actions">
<button type="button" className="button" disabled={busy} onClick={onClose}>Cancel</button>
{isAdmin ? <button type="submit" className={`button ${destructive ? "button--danger" : "button--primary"}`} disabled={busy}>{busy ? "Saving…" : submitLabel}</button>
: <button type="button" className="button button--primary" onClick={openSignIn}>Sign in</button>}
</div>
</form>
</Modal>;
}
export function ContentActions({ label, onEdit, onDelete }) {
return <div className="portfolio-item-actions">
<button type="button" className="text-button" aria-label={`Edit ${label}`} onClick={onEdit}><Icon name="edit" size={15} /> Edit</button>
<button type="button" className="text-button text-button--danger" aria-label={`Delete ${label}`} onClick={onDelete}><Icon name="trash" size={15} /> Delete</button>
</div>;
}
export function DeleteContentDialog({ label, onDelete, onClose, onDeleted }) {
return <EditorDialog title="Delete this entry?" destructive submitLabel="Delete entry" onClose={onClose} onSave={onDelete} onSaved={onDeleted}>
<p>“{label}” will be removed from the website. This cannot be undone.</p>
</EditorDialog>;
}
function TagEditor({ label, items, onChange, limit }) {
const [text, setText] = useState("");
const [message, setMessage] = useState("");
function add() {
const value = text.trim();
if (!value) return;
if (items.some((item) => item.toLowerCase() === value.toLowerCase())) { setMessage("Already added."); return; }
if (items.length >= limit) { setMessage(`You can add up to ${limit} labels.`); return; }
onChange([...items, value]); setText(""); setMessage("");
}
return <div className="portfolio-tags-editor">
<label className="publisher-field"><span>{label}</span>
<input value={text} maxLength={100} placeholder="Type a label and press Enter" onChange={(event) => { setText(event.target.value); setMessage(""); }}
onKeyDown={(event) => { if (event.key === "Enter" && !event.nativeEvent.isComposing) { event.preventDefault(); add(); } }} />
</label>
<div className="portfolio-tag-list">{items.map((item) => <span key={item}>{item}<button type="button" aria-label={`Remove ${item}`} onClick={() => onChange(items.filter((value) => value !== item))}><Icon name="close" size={13} /></button></span>)}</div>
<div className="portfolio-tag-help"><small>Press Enter to add. Use × to remove.</small><button type="button" className="text-button" onClick={add}>Add label</button></div>
{message && <small role="status">{message}</small>}
</div>;
}
export function ExperienceEditor({ item, onClose, onSaved }) {
const [value, setValue] = useState(() => ({ company: item?.company ?? "", role: item?.role ?? "", location: item?.location ?? "", start: item?.start ?? "", end: item?.end ?? "", summary: item?.summary ?? "", technologies: item?.technologies ?? [], projects: item?.projects ?? [] }));
const [current, setCurrent] = useState(!item?.end);
const [highlights, setHighlights] = useState((item?.highlights ?? []).join("\n"));
const field = (name) => ({ value: value[name], onChange: (event) => setValue((before) => ({ ...before, [name]: event.target.value })) });
const projectField = (index, name, text) => setValue((before) => ({ ...before, projects: before.projects.map((project, i) => i === index ? { ...project, [name]: text } : project) }));
function save(token) {
if (!current && value.end < value.start) throw new Error("End date must be on or after the start date.");
const payload = { ...value, end: current ? null : value.end, highlights: lines(highlights) };
return item ? updateExperience(item.id, payload, token) : createExperience(payload, token);
}
return <EditorDialog title={item ? "Edit experience" : "Add experience"} onClose={onClose} onSave={save} onSaved={onSaved} submitLabel={item ? "Save changes" : "Add experience"}>
<label className="publisher-field"><span>Role</span><input autoFocus required maxLength={200} {...field("role")} /></label>
<div className="portfolio-form-grid">
<label className="publisher-field"><span>Company</span><input required maxLength={100} {...field("company")} /></label>
<label className="publisher-field"><span>Location</span><input required maxLength={200} {...field("location")} /></label>
<label className="publisher-field"><span>Start date</span><input type="month" required {...field("start")} /></label>
<label className="publisher-field"><span>End date</span><input type="month" min={value.start || undefined} required={!current} disabled={current} {...field("end")} /></label>
</div>
<label className="portfolio-checkbox"><input type="checkbox" checked={current} onChange={(event) => setCurrent(event.target.checked)} /> I currently work here</label>
<label className="publisher-field"><span>Summary</span><textarea aria-label="Summary" required rows={4} maxLength={4000} {...field("summary")} /></label>
<label className="publisher-field"><span>Highlights — one per line</span><textarea aria-label="Highlights" rows={5} value={highlights} onChange={(event) => setHighlights(event.target.value)} /></label>
<TagEditor label="Technologies" items={value.technologies} limit={60} onChange={(technologies) => setValue((before) => ({ ...before, technologies }))} />
<div className="portfolio-projects">
<div className="portfolio-section-heading"><strong>Project links</strong><button type="button" className="text-button" disabled={value.projects.length >= 20} onClick={() => setValue((before) => ({ ...before, projects: [...before.projects, { name: "", href: "", period: "" }] }))}><Icon name="plus" size={15} /> Add project</button></div>
{value.projects.map((project, index) => <div className="portfolio-project" key={index}>
<label className="publisher-field"><span>Project name</span><input required maxLength={100} value={project.name} onChange={(event) => projectField(index, "name", event.target.value)} /></label>
<label className="publisher-field"><span>Project URL</span><input required type="url" placeholder="https://" value={project.href} onChange={(event) => projectField(index, "href", event.target.value)} /></label>
<label className="publisher-field"><span>Project period (optional)</span><input maxLength={100} value={project.period} onChange={(event) => projectField(index, "period", event.target.value)} /></label>
<button type="button" className="text-button text-button--danger" onClick={() => setValue((before) => ({ ...before, projects: before.projects.filter((_, i) => i !== index) }))}>Remove project</button>
</div>)}
</div>
</EditorDialog>;
}
export function SkillCategoryEditor({ item, onClose, onSaved }) {
const [value, setValue] = useState({ name: item?.name ?? "", description: item?.description ?? "", accent: item?.accent ?? "mint", items: item?.items ?? [] });
const field = (name) => ({ value: value[name], onChange: (event) => setValue((before) => ({ ...before, [name]: event.target.value })) });
return <EditorDialog title={item ? "Edit skill category" : "Add skill category"} onClose={onClose} onSave={(token) => item ? updateSkillCategory(item.id, value, token) : createSkillCategory(value, token)} onSaved={onSaved} submitLabel={item ? "Save changes" : "Add category"}>
<label className="publisher-field"><span>Category name</span><input autoFocus required maxLength={100} {...field("name")} /></label>
<label className="publisher-field"><span>Description</span><textarea aria-label="Description" required rows={3} maxLength={1000} {...field("description")} /></label>
<label className="publisher-field"><span>Card color</span><select {...field("accent")}>{["mint", "blue", "lavender", "peach", "yellow"].map((color) => <option key={color} value={color}>{color[0].toUpperCase() + color.slice(1)}</option>)}</select></label>
<TagEditor label="Skills" items={value.items} limit={100} onChange={(items) => setValue((before) => ({ ...before, items }))} />
</EditorDialog>;
}
export function SkillsOverviewEditor({ skills, onClose, onSaved }) {
const [intro, setIntro] = useState(skills.intro);
const [principles, setPrinciples] = useState(skills.principles.join("\n"));
return <EditorDialog title="Edit skills overview" onClose={onClose} onSave={(token) => updateSkillsOverview({ intro, principles: lines(principles) }, token)} onSaved={onSaved}>
<label className="publisher-field"><span>Introduction</span><textarea aria-label="Introduction" autoFocus required rows={4} maxLength={2000} value={intro} onChange={(event) => setIntro(event.target.value)} /></label>
<label className="publisher-field"><span>How I work — one principle per line</span><textarea aria-label="How I work" rows={6} value={principles} onChange={(event) => setPrinciples(event.target.value)} /></label>
</EditorDialog>;
}
-132
View File
@@ -1,132 +0,0 @@
import { EditorContent, useEditor, useEditorState } from "@tiptap/react";
import StarterKit from "@tiptap/starter-kit";
import { TextStyleKit } from "@tiptap/extension-text-style";
import Placeholder from "@tiptap/extension-placeholder";
import { useEffect } from "react";
const extensions = [
StarterKit.configure({ heading: { levels: [2, 3] } }),
TextStyleKit.configure({
backgroundColor: false,
color: false,
fontFamily: false,
lineHeight: false,
}),
Placeholder.configure({
placeholder: "Start with the idea you want the reader to keep…",
}),
];
function ToolbarButton({ active = false, children, label, onClick }) {
return (
<button
aria-label={label}
className={active ? "is-active" : ""}
onClick={onClick}
title={label}
type="button"
>
{children}
</button>
);
}
export default function RichTextEditor({ onChange, content = "" }) {
const editor = useEditor({
extensions,
content,
editorProps: { attributes: { "aria-label": "Article body" } },
onUpdate: ({ editor: currentEditor }) => {
onChange(currentEditor.getJSON(), currentEditor.getText().trim());
},
});
const state = useEditorState({
editor,
selector: ({ editor: currentEditor }) => ({
bold: currentEditor?.isActive("bold") ?? false,
italic: currentEditor?.isActive("italic") ?? false,
underline: currentEditor?.isActive("underline") ?? false,
heading2: currentEditor?.isActive("heading", { level: 2 }) ?? false,
heading3: currentEditor?.isActive("heading", { level: 3 }) ?? false,
bulletList: currentEditor?.isActive("bulletList") ?? false,
orderedList: currentEditor?.isActive("orderedList") ?? false,
fontSize: currentEditor?.getAttributes("textStyle").fontSize ?? "",
}),
});
if (!editor) return <div className="editor-loading">Preparing editor…</div>;
return (
<div className="rich-editor">
<div className="rich-editor__toolbar" aria-label="Text formatting">
<div className="editor-tool-group">
<ToolbarButton active={state?.bold} label="Bold" onClick={() => editor.chain().focus().toggleBold().run()}><strong>B</strong></ToolbarButton>
<ToolbarButton active={state?.italic} label="Italic" onClick={() => editor.chain().focus().toggleItalic().run()}><em>I</em></ToolbarButton>
<ToolbarButton active={state?.underline} label="Underline" onClick={() => editor.chain().focus().toggleUnderline().run()}><u>U</u></ToolbarButton>
</div>
<div className="editor-tool-group">
<ToolbarButton active={state?.heading2} label="Section heading" onClick={() => editor.chain().focus().toggleHeading({ level: 2 }).run()}>Section heading</ToolbarButton>
<ToolbarButton active={state?.heading3} label="Subheading" onClick={() => editor.chain().focus().toggleHeading({ level: 3 }).run()}>H3</ToolbarButton>
<ToolbarButton label="Add section" onClick={() => {
if (editor.isEmpty) {
editor.chain().focus().setContent({ type: "doc", content: [
{ type: "heading", attrs: { level: 2 }, content: [{ type: "text", text: "Section title" }] },
{ type: "paragraph" },
] }).setTextSelection({ from: 1, to: 14 }).run();
return;
}
const end = editor.state.doc.content.size;
editor.chain().focus().insertContentAt(end, [
{ type: "heading", attrs: { level: 2 }, content: [{ type: "text", text: "Section title" }] },
{ type: "paragraph" },
]).setTextSelection({ from: end + 1, to: end + 14 }).run();
}}>+ Section</ToolbarButton>
</div>
<div className="editor-tool-group">
<ToolbarButton active={state?.bulletList} label="Bullet list" onClick={() => editor.chain().focus().toggleBulletList().run()}>• List</ToolbarButton>
<ToolbarButton active={state?.orderedList} label="Numbered list" onClick={() => editor.chain().focus().toggleOrderedList().run()}>1. List</ToolbarButton>
</div>
<label className="editor-size">
<span className="sr-only">Font size</span>
<select
aria-label="Font size"
onChange={(event) => {
const size = event.target.value;
const chain = editor.chain().focus();
if (size) chain.setFontSize(size).run();
else chain.unsetFontSize().run();
}}
value={state?.fontSize ?? ""}
>
<option value="">Normal</option>
<option value="14px">Small</option>
<option value="18px">Medium</option>
<option value="22px">Large</option>
<option value="28px">Extra large</option>
</select>
</label>
<div className="editor-tool-group editor-tool-group--history">
<ToolbarButton label="Undo" onClick={() => editor.chain().focus().undo().run()}>↶</ToolbarButton>
<ToolbarButton label="Redo" onClick={() => editor.chain().focus().redo().run()}>↷</ToolbarButton>
</div>
</div>
<EditorContent editor={editor} />
</div>
);
}
export function RichTextArticle({ content }) {
const editor = useEditor({
extensions,
content,
editable: false,
});
useEffect(() => {
if (editor) editor.commands.setContent(content);
}, [content, editor]);
if (!editor) return null;
return <EditorContent className="rich-article" editor={editor} />;
}
-21
View File
@@ -1,21 +0,0 @@
export function LoadingState({ label = "Loading" }) {
return (
<div className="state-card" role="status">
<span className="loader" aria-hidden="true" />
<p>{label}…</p>
</div>
);
}
export function ErrorState({ message, onRetry, retrying = false }) {
return (
<div className="state-card state-card--error" role="alert">
<span className="state-icon">!</span>
<div>
<strong>That didn’t load.</strong>
<p>{message}</p>
{onRetry && <button className="button" type="button" disabled={retrying} onClick={onRetry}>{retrying ? "Retrying..." : "Try again"}</button>}
</div>
</div>
);
}
-59
View File
@@ -1,59 +0,0 @@
import { useEffect, useState } from "react";
import Icon from "./Icon";
const STORAGE_KEY = "portfolio-theme";
const isTheme = (value) => value === "light" || value === "dark";
function storedTheme() {
try {
const value = localStorage.getItem(STORAGE_KEY);
return isTheme(value) ? value : null;
} catch {
return null;
}
}
export default function ThemeToggle() {
const [preference, setPreference] = useState(storedTheme);
const [systemDark, setSystemDark] = useState(() => window.matchMedia("(prefers-color-scheme: dark)").matches);
const theme = preference ?? (systemDark ? "dark" : "light");
const nextTheme = theme === "dark" ? "light" : "dark";
useEffect(() => {
const media = window.matchMedia("(prefers-color-scheme: dark)");
const onSystemChange = (event) => setSystemDark(event.matches);
const onStorageChange = (event) => {
if (event.key === STORAGE_KEY || event.key === null) {
setPreference(isTheme(event.newValue) ? event.newValue : null);
}
};
media.addEventListener("change", onSystemChange);
window.addEventListener("storage", onStorageChange);
return () => {
media.removeEventListener("change", onSystemChange);
window.removeEventListener("storage", onStorageChange);
};
}, []);
useEffect(() => {
document.documentElement.dataset.theme = theme;
document.documentElement.style.colorScheme = theme;
document.querySelector('meta[name="theme-color"]')?.setAttribute("content", theme === "dark" ? "#141d19" : "#f7f8f4");
}, [theme]);
function toggle() {
setPreference(nextTheme);
try {
localStorage.setItem(STORAGE_KEY, nextTheme);
} catch {
// Keep the in-memory preference for this visit.
}
}
return (
<button type="button" className="icon-button theme-toggle" onClick={toggle}
aria-label={`Switch to ${nextTheme} mode`} title={`Switch to ${nextTheme} mode`}>
<Icon name={nextTheme === "dark" ? "moon" : "sun"} />
</button>
);
}
-14
View File
@@ -1,14 +0,0 @@
import { StrictMode } from "react";
import { createRoot } from "react-dom/client";
import { BrowserRouter } from "react-router-dom";
import App from "./App";
import "./styles.css";
import "./theme.css";
createRoot(document.getElementById("root")).render(
<StrictMode>
<BrowserRouter>
<App />
</BrowserRouter>
</StrictMode>,
);
-70
View File
@@ -1,70 +0,0 @@
import Icon from "../components/Icon";
import { ErrorState, LoadingState } from "../components/Status";
export default function AboutPage({ profile, error }) {
if (error) {
return (
<div className="container centered-state">
<ErrorState message={error} />
</div>
);
}
if (!profile) {
return (
<div className="container centered-state">
<LoadingState label="Loading Alex’s profile" />
</div>
);
}
return (
<section className="about-page container">
<div className="about-copy reveal">
<p className="eyebrow">
<span className="availability-dot" />
{profile.eyebrow}
</p>
<h1>
Hello, I’m <span>{profile.display_name}.</span>
</h1>
<h2>{profile.headline}</h2>
<p className="about-summary">{profile.summary}</p>
<div className="hero-actions">
<a className="button button--primary" href={profile.resume_url} target="_blank" rel="noreferrer">
Open CV
<Icon name="arrowUpRight" size={18} />
</a>
<a className="button button--quiet" href={profile.socials.find((social) => social.kind === "email")?.href}>
Let’s talk
<Icon name="arrow" size={18} />
</a>
</div>
<div className="focus-row" aria-label="Current focus areas">
{profile.focus.map((item) => (
<span key={item}>{item}</span>
))}
</div>
</div>
<div className="portrait-stage reveal reveal--delay">
<div className="portrait-orbit portrait-orbit--one" />
<div className="portrait-orbit portrait-orbit--two" />
<div className="portrait-frame">
<img src={profile.portrait} alt={`${profile.name}, senior software engineer`} />
</div>
<div className="experience-note">
<strong>27+</strong>
<span>years building<br />with technology</span>
</div>
<div className="availability-note">
<Icon name="spark" size={18} />
<span>{profile.availability}</span>
</div>
</div>
</section>
);
}
-155
View File
@@ -1,155 +0,0 @@
import { useMemo, useState } from "react";
import { Link } from "react-router-dom";
import { mediaUrl } from "../api";
import { mainTopics, topicKey } from "../topics";
import useJournalResource from "../useJournalResource";
import Icon from "../components/Icon";
import PageHeader from "../components/PageHeader";
import ArticleAdminActions from "../components/ArticleAdminActions";
import { useAdmin } from "../components/AdminSession";
import { ErrorState, LoadingState } from "../components/Status";
function formatDate(date) {
return new Intl.DateTimeFormat("en-US", {
month: "short",
day: "numeric",
year: "numeric",
}).format(new Date(`${date}T12:00:00`));
}
function PostCard({ post, featured, onDeleted }) {
return (
<article className={`post-card post-card--${post.accent} ${featured ? "post-card--featured" : ""} reveal`}>
<Link to={`/blog/${post.slug}`} aria-label={`Read ${post.title}`}>
<div className="post-card__art" aria-hidden="true">
{post.banner ? <img className="post-card__image" src={mediaUrl(post.banner)} alt="" loading="lazy" /> : <>
<span className="art-ring" />
<span className="art-code">{post.tags[0]}</span>
<Icon name="spark" size={featured ? 34 : 26} />
</>}
</div>
<div className="post-card__body">
<div className="post-meta">
<span>{formatDate(post.published_at)}</span>
<span>{post.read_time} min read</span>
</div>
<h2>{post.title}</h2>
<p>{post.excerpt}</p>
<div className="post-card__footer">
<div className="mini-tags">
{post.tags.slice(0, 2).map((tag) => <span key={tag}>{tag}</span>)}
</div>
<span className="read-arrow"><Icon name="arrowUpRight" size={18} /></span>
</div>
</div>
</Link>
<ArticleAdminActions post={post} onDeleted={onDeleted} />
</article>
);
}
export default function BlogPage() {
const { isAdmin } = useAdmin();
const { data, setData: setPosts, loading, error, reload } = useJournalResource();
const posts = data ?? [];
const [query, setQuery] = useState("");
const [activeTag, setActiveTag] = useState(null);
const [showOthers, setShowOthers] = useState(false);
const tags = [null, ...mainTopics];
const customTopics = useMemo(() => {
const mainKeys = new Set(mainTopics.map(topicKey));
const custom = new Map();
posts.flatMap((post) => post.tags).forEach((tag) => {
const key = topicKey(tag);
if (key && !mainKeys.has(key) && !custom.has(key)) custom.set(key, tag.trim());
});
return [...custom.values()].sort((a, b) => a.localeCompare(b));
}, [posts]);
const customActive = activeTag !== null && !mainTopics.some((tag) => topicKey(tag) === topicKey(activeTag));
const filteredPosts = useMemo(() => {
const needle = query.trim().toLowerCase();
return posts.filter((post) => {
const matchesTag = activeTag === null || post.tags.some((tag) => topicKey(tag) === topicKey(activeTag));
const matchesQuery = !needle || `${post.title} ${post.excerpt} ${post.tags.join(" ")}`.toLowerCase().includes(needle);
return matchesTag && matchesQuery;
});
}, [activeTag, posts, query]);
return (
<section className="content-page container">
<PageHeader
eyebrow="Journal"
title="Notes from the build."
description="Practical observations on applied AI, resilient products, and the technology choices behind them."
aside={(
<div className="journal-heading-aside">
<p className="issue-count">{posts.length}<span>field notes</span></p>
{isAdmin && <Link className="write-link" to="/blog/manage"><Icon name="plus" size={15} /> New article</Link>}
</div>
)}
/>
<div className="journal-tools reveal">
<label className="search-box">
<span className="sr-only">Search articles</span>
<Icon name="search" size={18} />
<input
onChange={(event) => setQuery(event.target.value)}
placeholder="Search the journal"
type="search"
value={query}
/>
</label>
<div className="journal-filters">
<div className="filter-row filter-row--wrap" role="group" aria-label="Filter articles by topic">
{tags.map((tag) => (
<button
className={activeTag === tag ? "is-active" : ""}
aria-pressed={activeTag === tag}
key={tag ?? "all-filter"}
onClick={() => { setActiveTag(tag); setShowOthers(false); }}
type="button"
>
{tag ?? "All"}
</button>
))}
<button type="button" className={`others-filter ${showOthers || customActive ? "is-active" : ""}`}
aria-expanded={showOthers} aria-controls="journal-custom-topics" onClick={() => setShowOthers((current) => !current)}>
Others{customActive && <span> · {activeTag}</span>} <Icon name="chevron" size={14} />
</button>
</div>
<div id="journal-custom-topics" className="custom-topic-filters" hidden={!showOthers}>
<p>Custom topics <span>{customTopics.length}</span></p>
{customTopics.length ? <div className="filter-row filter-row--wrap" role="group" aria-label="Filter by custom topic">
{customTopics.map((tag) => <button key={topicKey(tag)} type="button"
className={topicKey(activeTag ?? "") === topicKey(tag) ? "is-active" : ""}
aria-pressed={topicKey(activeTag ?? "") === topicKey(tag)} onClick={() => setActiveTag(tag)}>{tag}</button>)}
</div> : <small>{loading ? "Loading topics..." : "No custom topics yet."}</small>}
</div>
</div>
</div>
{loading && !data && <LoadingState label="Fetching field notes" />}
{error && <ErrorState message={error} onRetry={reload} />}
{loading && data && <p role="status">Refreshing articles...</p>}
{filteredPosts.length > 0 && (
<div className="posts-grid">
{filteredPosts.map((post, index) => (
<PostCard featured={index === 0 && !query && activeTag === null} key={post.slug} post={post}
onDeleted={(slug) => setPosts((current) => current.filter((item) => item.slug !== slug))} />
))}
</div>
)}
{!loading && !error && filteredPosts.length === 0 && (
<div className="empty-card">
<Icon name="search" />
<h2>No notes found</h2>
<p>Try a different phrase or topic.</p>
</div>
)}
</section>
);
}
-73
View File
@@ -1,73 +0,0 @@
import { Link, useNavigate, useParams } from "react-router-dom";
import { mediaUrl } from "../api";
import { ArticleAttachments } from "../components/ArticleUploads";
import ArticleAdminActions from "../components/ArticleAdminActions";
import useJournalResource from "../useJournalResource";
import Icon from "../components/Icon";
import { RichTextArticle } from "../components/RichTextEditor";
import { ErrorState, LoadingState } from "../components/Status";
function formatDate(date) {
return new Intl.DateTimeFormat("en-US", {
month: "long",
day: "numeric",
year: "numeric",
}).format(new Date(`${date}T12:00:00`));
}
export default function BlogPostPage() {
const { slug } = useParams();
const navigate = useNavigate();
const { data: post, loading, error, reload } = useJournalResource(slug);
if (loading && !post) {
return <div className="container content-page"><LoadingState label="Opening the note" /></div>;
}
if (error && !post) {
return <div className="container content-page"><ErrorState message={error} onRetry={reload} /></div>;
}
if (!post) {
return <div className="container content-page"><ErrorState message="This journal note could not be opened." /></div>;
}
return (
<article className="article-page">
{error && <div className="article-container"><ErrorState message={error} onRetry={reload} /></div>}
<header className={`article-hero article-hero--${post.accent}`}>
{post.banner && <img className="article-banner" src={mediaUrl(post.banner)} alt="" />}
<div className="article-hero__shape" aria-hidden="true"><Icon name="spark" size={50} /></div>
<div className="article-container reveal">
<Link className="back-link" to="/blog"><Icon name="arrowLeft" size={17} /> Back to journal</Link>
<ArticleAdminActions post={post} onDeleted={() => navigate("/blog")} />
<div className="article-tags">
{post.tags.map((tag) => <span key={tag}>{tag}</span>)}
</div>
<h1>{post.title}</h1>
<p>{post.excerpt}</p>
<div className="article-byline article-byline--simple">
<Icon name="calendar" size={16} />
<span>{formatDate(post.published_at)}</span>
<span>{post.read_time} min read</span>
</div>
</div>
</header>
<div className="article-container article-content">
{Array.isArray(post.content) ? post.content.map((section) => (
<section key={section.heading}>
<h2>{section.heading}</h2>
{section.paragraphs.map((paragraph) => <p key={paragraph}>{paragraph}</p>)}
</section>
)) : <RichTextArticle content={post.content} />}
<ArticleAttachments attachments={post.attachments} />
<div className="article-end">
<Icon name="spark" />
<p>Thanks for reading.</p>
<Link to="/contact">Continue the conversation <Icon name="arrow" size={17} /></Link>
</div>
</div>
</article>
);
}
-168
View File
@@ -1,168 +0,0 @@
import { useState } from "react";
import { sendContactMessage } from "../api";
import Icon from "../components/Icon";
import PageHeader from "../components/PageHeader";
const initialForm = {
name: "",
email: "",
subject: "",
message: "",
company: "",
};
export default function ContactPage({ profile, error }) {
const [form, setForm] = useState(initialForm);
const [status, setStatus] = useState({ type: "idle", message: "" });
function updateField(event) {
setForm((current) => ({ ...current, [event.target.name]: event.target.value }));
}
async function submitForm(event) {
event.preventDefault();
setStatus({ type: "sending", message: "Sending your note…" });
try {
const result = await sendContactMessage(form);
setStatus({ type: "success", message: result.message });
setForm(initialForm);
} catch (requestError) {
setStatus({ type: "error", message: requestError.message });
}
}
const socials = profile?.socials ?? [];
const interests = profile?.interests ?? [];
return (
<section className="content-page container contact-page">
<PageHeader
eyebrow="Contact"
title="Have a useful problem to solve?"
description="Tell me what you’re building, where it feels stuck, and what a good outcome looks like. I’ll take it from there."
aside={<div className="contact-pulse"><span /> Usually replies within 1–2 days</div>}
/>
<div className="contact-grid">
<form className="contact-form reveal" onSubmit={submitForm}>
<div className="form-row">
<label>
<span>Your name</span>
<input
autoComplete="name"
minLength="2"
name="name"
onChange={updateField}
placeholder="Jane Smith"
required
value={form.name}
/>
</label>
<label>
<span>Email address</span>
<input
autoComplete="email"
name="email"
onChange={updateField}
placeholder="jane@company.com"
required
type="email"
value={form.email}
/>
</label>
</div>
<label>
<span>What’s this about?</span>
<input
minLength="3"
name="subject"
onChange={updateField}
placeholder="A product, role, or interesting collaboration"
required
value={form.subject}
/>
</label>
<label>
<span>Your message</span>
<textarea
maxLength="5000"
minLength="20"
name="message"
onChange={updateField}
placeholder="A little context goes a long way…"
required
rows="7"
value={form.message}
/>
</label>
<label className="honeypot" aria-hidden="true">
Company
<input name="company" onChange={updateField} tabIndex="-1" value={form.company} />
</label>
<div className="form-footer">
<button className="button button--primary" disabled={status.type === "sending"} type="submit">
{status.type === "sending" ? "Sending…" : "Send message"}
<Icon name="send" size={18} />
</button>
{status.type !== "idle" && (
<p className={`form-status form-status--${status.type}`} role="status">{status.message}</p>
)}
</div>
</form>
<aside className="contact-aside reveal reveal--delay">
<div className="contact-note">
<Icon name="spark" size={24} />
<h2>Good conversations start with clarity.</h2>
<p>I’m especially interested in full-stack product work, applied AI, and systems that make demanding workflows feel calmer.</p>
</div>
<div className="social-list">
<p className="eyebrow">Find me here</p>
{socials.map((social) => (
<a href={social.href} key={social.kind} target={social.kind === "email" ? undefined : "_blank"} rel="noreferrer">
<span className="social-icon"><Icon name={social.kind} /></span>
<span>
<small>{social.label}</small>
<strong>{social.value}</strong>
</span>
<Icon name="arrowUpRight" size={18} />
</a>
))}
{error && <p className="social-error">Contact links are temporarily unavailable.</p>}
</div>
</aside>
</div>
<div className="culture-card culture-card--wide reveal">
<img className="culture-photo" src="/alex_music.jpg" alt="Alex playing guitar" width="206" height="206" loading="lazy" />
<div className="culture-content">
<div className="culture-intro">
<p className="eyebrow">Beyond the build</p>
<h2><strong>I love music</strong> and nearly always have something playing on Spotify.</h2>
<p>Off the clock, I share a little life on Instagram and occasionally disappear into a game on Steam.</p>
</div>
<div className="culture-links">
{interests.map((interest) => (
<a
className={`culture-link culture-link--${interest.kind}`}
href={interest.href}
key={interest.kind}
rel="noreferrer"
target="_blank"
>
<span className="culture-link__icon"><Icon name={interest.kind} /></span>
<span><small>{interest.note}</small><strong>{interest.label}</strong></span>
<Icon name="arrowUpRight" size={18} />
</a>
))}
</div>
</div>
</div>
</section>
);
}
-171
View File
@@ -1,171 +0,0 @@
import { useAdmin } from "../components/AdminSession";
import usePortfolioResource from "../usePortfolioResource";
import { ContentActions, DeleteContentDialog, ExperienceEditor } from "../components/PortfolioEditors";
import { useMemo, useState } from "react";
import { deleteExperience, getExperience } from "../api";
import Icon from "../components/Icon";
import PageHeader from "../components/PageHeader";
import { ErrorState, LoadingState } from "../components/Status";
function asDate(value) {
const [year, month] = value.split("-").map(Number);
return new Date(year, month - 1, 1);
}
function monthLabel(value) {
return new Intl.DateTimeFormat("en-US", {
month: "short",
year: "numeric",
}).format(asDate(value));
}
function durationLabel(start, end) {
const startDate = asDate(start);
const endDate = end ? asDate(end) : new Date();
const months = Math.max(
1,
(endDate.getFullYear() - startDate.getFullYear()) * 12 +
endDate.getMonth() -
startDate.getMonth(),
);
const years = Math.floor(months / 12);
const remainingMonths = months % 12;
const parts = [];
if (years) parts.push(`${years} yr${years === 1 ? "" : "s"}`);
if (remainingMonths) parts.push(`${remainingMonths} mo`);
return parts.join(" ") || "1 mo";
}
function TimelineItem({ item, index, isExpanded, onToggle, actions }) {
const isCurrent = !item.end;
const year = item.start.slice(0, 4);
return (
<article className={`timeline-item reveal ${isCurrent ? "is-current" : ""}`}>
<div className="timeline-year" aria-hidden="true">
<span>{year}</span>
</div>
<div className="timeline-marker">
<span />
</div>
<div className="timeline-card">
{actions}
<button
className="timeline-card__header"
onClick={onToggle}
type="button"
aria-expanded={isExpanded}
aria-controls={`experience-${item.id}`}
>
<div>
<div className="timeline-meta">
<span>{monthLabel(item.start)} — {item.end ? monthLabel(item.end) : "Present"}</span>
<span>{durationLabel(item.start, item.end)}</span>
{isCurrent && <span className="current-label">Current</span>}
</div>
<h2>{item.role}</h2>
<p className="company-line">{item.company} <span>·</span> {item.location}</p>
</div>
<span className={`expand-button ${isExpanded ? "is-open" : ""}`}>
<Icon name="chevron" />
</span>
</button>
<div
className={`timeline-details ${isExpanded ? "is-open" : ""}`}
id={`experience-${item.id}`}
>
<div className="timeline-details__inner">
<p className="timeline-summary">{item.summary}</p>
{item.highlights.length > 0 && <ul className="highlight-list">
{item.highlights.map((highlight) => (
<li key={highlight}>
<span><Icon name="check" size={14} /></span>
{highlight}
</li>
))}
</ul>}
{item.projects?.length > 0 && (
<div className="project-links">
{item.projects.map((project) => (
<a href={project.href} key={project.name} target="_blank" rel="noreferrer">
<span>
<strong>{project.name}</strong>
<small>{project.period}</small>
</span>
<Icon name="arrowUpRight" size={17} />
</a>
))}
</div>
)}
{item.technologies.length > 0 && <div className="tag-row">
{item.technologies.map((technology) => (
<span key={technology}>{technology}</span>
))}
</div>}
</div>
</div>
</div>
</article>
);
}
export default function ExperiencePage() {
const { isAdmin } = useAdmin();
const { data, loading, error, reload, setData } = usePortfolioResource(getExperience);
const experience = data ?? [];
const [expandedId, setExpandedId] = useState("independent");
const [editor, setEditor] = useState(null);
function saved(record) {
setData((current) => [...current.filter((item) => item.id !== record.id), record].sort((a, b) => b.start.localeCompare(a.start)));
setExpandedId(record.id);
setEditor(null);
}
const visibleYears = useMemo(() => {
if (!experience.length) return "Your timeline";
return `${experience.at(-1).start.slice(0, 4)} — now`;
}, [experience]);
return (
<section className="content-page container">
<PageHeader
eyebrow="Experience"
title="A career built close to the work."
description="Product engineering, critical operations, and technical leadership—connected by a habit of making complicated systems easier to use."
aside={
<div className="heading-stat">
<strong>{experience.length}</strong>
<span>career chapters<br />{visibleYears}</span>
</div>
}
/>
{isAdmin && <div className="portfolio-admin-toolbar"><p>Keep your career timeline up to date.</p><button type="button" className="button button--primary" disabled={!data} onClick={() => setEditor({ kind: "edit", item: null })}><Icon name="plus" size={17} /> Add experience</button></div>}
{loading && !data && <LoadingState label="Mapping the timeline" />}
{error && <ErrorState message={error} onRetry={reload} retrying={loading} />}
{data && (
<div className="timeline">
{!experience.length && <p className="state-card">No experience entries yet.</p>}
{experience.map((item, index) => (
<TimelineItem
actions={isAdmin && <ContentActions label={`${item.role} at ${item.company}`} onEdit={() => setEditor({ kind: "edit", item })} onDelete={() => setEditor({ kind: "delete", item })} />}
index={index}
isExpanded={expandedId === item.id}
item={item}
key={item.id}
onToggle={() => setExpandedId((active) => (active === item.id ? "" : item.id))}
/>
))}
</div>
)}
{editor?.kind === "edit" && <ExperienceEditor item={editor.item} onClose={() => setEditor(null)} onSaved={saved} />}
{editor?.kind === "delete" && <DeleteContentDialog label={`${editor.item.role} at ${editor.item.company}`} onClose={() => setEditor(null)} onDelete={(token) => deleteExperience(editor.item.id, token)} onDeleted={() => { setData((current) => current.filter((item) => item.id !== editor.item.id)); setEditor(null); }} />}
</section>
);
}
-302
View File
@@ -1,302 +0,0 @@
import { useEffect, useRef, useState } from "react";
import { Link, useNavigate, useParams } from "react-router-dom";
import { createPost, getPost, updateArticle, uploadMedia } from "../api";
import ArticleUploads from "../components/ArticleUploads";
import Icon from "../components/Icon";
import PageHeader from "../components/PageHeader";
import RichTextEditor from "../components/RichTextEditor";
import { ErrorState, LoadingState } from "../components/Status";
import { useAdmin } from "../components/AdminSession";
import { editableDocument, articlePlainText } from "../articleContent";
import { mainTopics as suggestedTopics } from "../topics";
const today = new Date().toISOString().slice(0, 10);
const emptyDocument = { type: "doc", content: [{ type: "paragraph" }] };
const initialPost = {
title: "",
excerpt: "",
published_at: today,
read_time: 5,
tags: ["AI"],
accent: "mint",
};
export default function JournalAdminPage() {
const { slug } = useParams();
return <ArticleForm key={slug ?? "new"} slug={slug} />;
}
function ArticleForm({ slug }) {
const navigate = useNavigate();
const { token, checking, isAdmin, signOut, openSignIn } = useAdmin();
const [loading, setLoading] = useState(Boolean(slug));
const [loadError, setLoadError] = useState("");
const [post, setPost] = useState(initialPost);
const [article, setArticle] = useState(emptyDocument);
const [articleText, setArticleText] = useState("");
const [banner, setBanner] = useState(null);
const [attachments, setAttachments] = useState([]);
const discardedUploads = useRef(new Set());
const [uploading, setUploading] = useState(false);
const [customTopic, setCustomTopic] = useState("");
const [topicMessage, setTopicMessage] = useState("");
const topicInput = useRef(null);
const [status, setStatus] = useState({ type: "idle", message: "" });
useEffect(() => {
if (!slug) return;
const controller = new AbortController();
getPost(slug, controller.signal)
.then((existing) => {
if (controller.signal.aborted) return;
const document = editableDocument(existing.content);
setPost({ title: existing.title, excerpt: existing.excerpt, published_at: existing.published_at,
read_time: existing.read_time, tags: existing.tags, accent: existing.accent });
setArticle(document);
setArticleText(articlePlainText(document));
setBanner(existing.banner ?? null);
setAttachments(existing.attachments ?? []);
})
.catch((error) => { if (error.name !== "AbortError") setLoadError(error.message); })
.finally(() => { if (!controller.signal.aborted) setLoading(false); });
return () => controller.abort();
}, [slug]);
function updatePost(event) {
setPost((current) => ({ ...current, [event.target.name]: event.target.value }));
}
function toggleTopic(topic) {
if (!post.tags.includes(topic) && post.tags.length >= 6) {
setTopicMessage("You can select up to six topics. Remove one to add another.");
return;
}
setTopicMessage("");
setPost((current) => ({ ...current, tags: current.tags.includes(topic)
? current.tags.filter((item) => item !== topic) : [...current.tags, topic] }));
}
function addCustomTopic() {
const typed = customTopic.trim();
if (!typed) return;
const topic = [...suggestedTopics, ...post.tags].find((item) => item.toLowerCase() === typed.toLowerCase()) ?? typed;
if (post.tags.includes(topic)) {
setCustomTopic("");
setTopicMessage(`${topic} is already selected.`);
topicInput.current?.focus();
return;
}
if (post.tags.length >= 6) {
setTopicMessage("You can select up to six topics. Remove one to add another.");
return;
}
setPost((current) => ({ ...current, tags: [...current.tags, topic] }));
setCustomTopic("");
setTopicMessage(`${topic} added and selected.`);
topicInput.current?.focus();
}
function removeCustomTopic(topic) {
setPost((current) => ({ ...current, tags: current.tags.filter((item) => item !== topic) }));
setTopicMessage(`${topic} removed.`);
topicInput.current?.focus();
}
async function publish(event) {
event.preventDefault();
if (!isAdmin || uploading || status.type === "sending") return;
if (!post.tags.length) {
setStatus({ type: "error", message: "Choose at least one topic." });
return;
}
if (articleText.length < 40) {
setStatus({ type: "error", message: "Write at least 40 characters before publishing." });
return;
}
const payload = {
...post,
read_time: Number(post.read_time),
content: article,
banner,
attachments,
discarded_uploads: [...discardedUploads.current],
};
setStatus({ type: "sending", message: slug ? "Saving changes..." : "Publishing..." });
try {
const created = slug ? await updateArticle(slug, payload, token) : await createPost(payload, token);
setStatus({ type: "success", message: "Published. Opening the article…" });
navigate(`/blog/${created.slug}`);
} catch (error) {
setStatus({ type: "error", message: error.message });
}
}
async function uploadFile(file, purpose, options) {
const uploaded = await uploadMedia(file, purpose, token, options);
if (options.signal.aborted) return;
if (purpose === "banner") setBanner((previous) => {
if (previous) discardedUploads.current.add(previous.url);
return uploaded;
});
else setAttachments((current) => [...current, uploaded]);
}
function moveAttachment(url, targetUrl) {
setAttachments((current) => {
const index = current.findIndex((file) => file.url === url);
const next = current.findIndex((file) => file.url === targetUrl);
if (index < 0 || next < 0 || index === next) return current;
const ordered = [...current];
ordered.splice(next, 0, ordered.splice(index, 1)[0]);
return ordered;
});
}
return (
<section className="content-page container publisher-page">
<PageHeader
eyebrow="Journal studio"
title={slug ? "Edit your field note." : "Publish a field note."}
description="Write in sections, add photos and files, and share your field notes."
aside={isAdmin ? <span className="publisher-badge"><span /> Admin</span> : null}
/>
{checking && <LoadingState label="Checking your session" />}
{!checking && !isAdmin && (
<div className="publisher-login">
<h2>Sign in to manage articles</h2>
<p>Use your admin password to create or edit a journal article.</p>
<button className="button button--primary" type="button" onClick={openSignIn}><Icon name="lock" size={18} /> Sign in</button>
</div>
)}
{isAdmin && loading && <LoadingState label="Loading article" />}
{isAdmin && loadError && <ErrorState message={loadError} />}
{isAdmin && !loading && !loadError && (
<form className="publisher-form reveal" onSubmit={publish}>
<div className="publisher-toolbar">
<div>
<p className="eyebrow">{slug ? "Edit article" : "New article"}</p>
<p>Write, format, choose the topics, and publish from one clean workspace.</p>
</div>
<button className="text-button" onClick={signOut} type="button"><Icon name="logout" size={16} /> Sign out</button>
</div>
<label className="publisher-field publisher-field--wide">
<span>Title</span>
<input minLength="5" name="title" onChange={updatePost} placeholder="A clear, useful title" required value={post.title} />
</label>
<label className="publisher-field publisher-field--wide">
<span>Excerpt</span>
<textarea maxLength="360" minLength="20" name="excerpt" onChange={updatePost} placeholder="A concise introduction for the journal index." required rows="3" value={post.excerpt} />
</label>
<div className="publisher-fields-row">
<label className="publisher-field">
<span>Publish date</span>
<input name="published_at" onChange={updatePost} required type="date" value={post.published_at} />
</label>
<label className="publisher-field">
<span>Reading time</span>
<input max="60" min="1" name="read_time" onChange={updatePost} required type="number" value={post.read_time} />
</label>
<label className="publisher-field">
<span>Color</span>
<select name="accent" onChange={updatePost} value={post.accent}>
<option value="mint">Mint</option>
<option value="blue">Blue</option>
<option value="lavender">Lavender</option>
<option value="peach">Peach</option>
<option value="yellow">Yellow</option>
</select>
</label>
</div>
<fieldset className="topic-picker">
<legend>Topics <span>{post.tags.length}/6 selected</span></legend>
<div className="topic-options">
{suggestedTopics.map((topic) => (
<button
aria-pressed={post.tags.includes(topic)}
className={post.tags.includes(topic) ? "is-active" : ""}
key={topic}
onClick={() => toggleTopic(topic)}
type="button"
>
{post.tags.includes(topic) ? "✓ " : "+ "}{topic}
</button>
))}
{post.tags.filter((topic) => !suggestedTopics.includes(topic)).map((topic) => (
<span className="topic-chip is-active" key={topic}>
<span><Icon name="check" size={13} /> {topic}</span>
<button className="topic-chip__remove" type="button" aria-label={`Remove topic ${topic}`}
title={`Remove ${topic}`} onClick={() => removeCustomTopic(topic)}><Icon name="close" size={14} /></button>
</span>
))}
</div>
<div className="custom-topic">
<div className="custom-topic__input">
<label className="sr-only" htmlFor="custom-topic">Custom topic</label>
<input
ref={topicInput}
id="custom-topic"
aria-describedby="topic-shortcut topic-feedback"
aria-keyshortcuts="Enter"
enterKeyHint="done"
maxLength="40"
onChange={(event) => { setCustomTopic(event.target.value); setTopicMessage(""); }}
onKeyDown={(event) => {
if (event.key === "Enter") {
event.preventDefault();
if (event.nativeEvent.isComposing || event.keyCode === 229) return;
addCustomTopic();
}
}}
placeholder="Add another topic"
value={customTopic}
/>
<kbd aria-hidden="true">Enter ↵</kbd>
</div>
<button onClick={addCustomTopic} disabled={!customTopic.trim()} type="button">Add topic</button>
</div>
<p className="topic-hint" id="topic-shortcut">Type a topic and press <kbd>Enter</kbd> to add and select it. Use × on a custom topic to remove it.</p>
<p className="topic-feedback" id="topic-feedback" role="status">{topicMessage}</p>
</fieldset>
<div className="publisher-field publisher-field--wide">
<span>Article</span>
<RichTextEditor content={article} onChange={(content, text) => { setArticle(content); setArticleText(text); }} />
<small>{articleText.length} characters · Use headings to break longer pieces into sections.</small>
</div>
<p className="section-help">Use + Section to add a heading and a new section. Each section gets a divider and an automatic uppercase drop cap on its opening paragraph.</p>
<ArticleUploads banner={banner} attachments={attachments} busy={status.type === "sending"}
title={post.title} subtitle={post.excerpt} onPendingChange={setUploading} onMoveAttachment={moveAttachment}
onUpload={uploadFile} onRemoveBanner={() => {
if (banner) discardedUploads.current.add(banner.url);
setBanner(null);
}}
onRemoveAttachment={(url) => {
discardedUploads.current.add(url);
setAttachments((current) => current.filter((file) => file.url !== url));
}} />
<p className="section-help">Removed photos and files are deleted from storage when you {slug ? "save changes" : "publish"}.</p>
<div className="publisher-submit">
<Link className="text-button" to={slug ? `/blog/${slug}` : "/blog"}>Cancel</Link>
<button className="button button--primary" disabled={!isAdmin || uploading || status.type === "sending"} type="submit">
<Icon name={slug ? "check" : "plus"} size={18} /> {status.type === "sending" ? "Saving..." : slug ? "Save changes" : "Publish article"}
</button>
{status.message && <p className={`form-status form-status--${status.type}`} role="status">{status.message}</p>}
</div>
</form>
)}
</section>
);
}
-13
View File
@@ -1,13 +0,0 @@
import { Link } from "react-router-dom";
import Icon from "../components/Icon";
export default function NotFoundPage() {
return (
<section className="not-found container">
<p className="eyebrow">404 · Off the map</p>
<h1>This page took a different path.</h1>
<p>The link may be old, or the page may have moved.</p>
<Link className="button button--primary" to="/">Return home <Icon name="arrow" size={18} /></Link>
</section>
);
}
-82
View File
@@ -1,82 +0,0 @@
import { useAdmin } from "../components/AdminSession";
import usePortfolioResource from "../usePortfolioResource";
import { ContentActions, DeleteContentDialog, SkillCategoryEditor, SkillsOverviewEditor } from "../components/PortfolioEditors";
import { useState } from "react";
import { deleteSkillCategory, getSkills } from "../api";
import Icon from "../components/Icon";
import PageHeader from "../components/PageHeader";
import { ErrorState, LoadingState } from "../components/Status";
export default function SkillsPage() {
const { isAdmin } = useAdmin();
const { data: skills, loading, error, reload, setData } = usePortfolioResource(getSkills);
const [editor, setEditor] = useState(null);
function savedCategory(record) {
setData((current) => ({ ...current, categories: current.categories.some((item) => item.id === record.id)
? current.categories.map((item) => item.id === record.id ? record : item) : [...current.categories, record] }));
setEditor(null);
}
return (
<section className="content-page container">
<PageHeader
eyebrow="Skills"
title="A practical, evolving toolkit."
description={skills?.intro ?? "The tools I use to take products from a rough idea to reliable software."}
aside={
<div className="skill-orbit" aria-hidden="true">
<Icon name="code" size={26} />
</div>
}
/>
{isAdmin && <div className="portfolio-admin-toolbar"><p>Shape your toolkit as your skills evolve.</p><div><button className="button" type="button" disabled={!skills} onClick={() => setEditor({ kind: "overview" })}>Edit overview</button><button className="button button--primary" type="button" disabled={!skills} onClick={() => setEditor({ kind: "category", item: null })}><Icon name="plus" size={17} /> Add category</button></div></div>}
{loading && !skills && <LoadingState label="Unpacking the toolkit" />}
{error && <ErrorState message={error} onRetry={reload} retrying={loading} />}
{skills && (
<>
{skills.principles.length > 0 && <div className="principles-panel reveal">
<p className="eyebrow">How I work</p>
<div className="principles-list">
{skills.principles.map((principle, index) => (
<div key={principle}>
<span>0{index + 1}</span>
<p>{principle}</p>
</div>
))}
</div>
</div>}
<div className="skills-grid">
{!skills.categories.length && <p className="state-card">No skill categories yet.</p>}
{skills.categories.map((category, index) => (
<article
className={`skill-card skill-card--${category.accent} reveal`}
key={category.id}
style={{ "--delay": `${index * 55}ms` }}
>
<div className="skill-card__top">
<span className="skill-index">0{index + 1}</span>
<span className="skill-dot" />
</div>
<h2>{category.name}</h2>
<p>{category.description}</p>
<div className="skill-tags">
{category.items.map((item) => (
<span key={item}>{item}</span>
))}
</div>
{isAdmin && <ContentActions label={category.name} onEdit={() => setEditor({ kind: "category", item: category })} onDelete={() => setEditor({ kind: "delete", item: category })} />}
</article>
))}
</div>
</>
)}
{editor?.kind === "category" && <SkillCategoryEditor item={editor.item} onClose={() => setEditor(null)} onSaved={savedCategory} />}
{editor?.kind === "overview" && <SkillsOverviewEditor skills={skills} onClose={() => setEditor(null)} onSaved={(record) => { setData((current) => ({ ...current, intro: record.intro, principles: record.principles })); setEditor(null); }} />}
{editor?.kind === "delete" && <DeleteContentDialog label={editor.item.name} onClose={() => setEditor(null)} onDelete={(token) => deleteSkillCategory(editor.item.id, token)} onDeleted={() => { setData((current) => ({ ...current, categories: current.categories.filter((item) => item.id !== editor.item.id) })); setEditor(null); }} />}
</section>
);
}
File diff suppressed because it is too large Load Diff
-93
View File
@@ -1,93 +0,0 @@
:root[data-theme="dark"] {
color-scheme: dark;
--ink: #e4eee8;
--ink-soft: #bccac2;
--ink-faint: #a0b0a7;
--line: rgba(188, 211, 197, 0.18);
--paper: #141d19;
--surface-rgb: 35, 48, 41;
--surface: rgba(var(--surface-rgb), 0.92);
--surface-solid: #233029;
--sage: #293e33;
--sage-deep: #a4d4b8;
--accent-fill: #345d48;
--accent-fill-hover: #416e56;
--blue: #263640;
--blue-deep: #aacde3;
--lavender: #342f42;
--lavender-deep: #c8bce6;
--peach: #41322c;
--peach-deep: #e2baa6;
--yellow: #3b3827;
--yellow-deep: #d9cc99;
--mint: #263e33;
--glow-mint: rgba(48, 89, 64, 0.22);
--glow-lavender: rgba(69, 53, 94, 0.18);
--shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
--shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.2);
}
:root[data-theme="dark"] ::selection { background: #385745; }
:root[data-theme="dark"] .about-copy h2,
:root[data-theme="dark"] .article-content section p,
:root[data-theme="dark"] .rich-editor .tiptap,
:root[data-theme="dark"] .rich-article .tiptap { color: var(--ink-soft); }
:root[data-theme="dark"] .portrait-frame { border-color: var(--surface-solid); }
:root[data-theme="dark"] .portrait-orbit,
:root[data-theme="dark"] .portrait-orbit--two,
:root[data-theme="dark"] .experience-note,
:root[data-theme="dark"] .availability-note,
:root[data-theme="dark"] .tag-row span,
:root[data-theme="dark"] .skill-tags span,
:root[data-theme="dark"] .mini-tags span,
:root[data-theme="dark"] .article-tags span,
:root[data-theme="dark"] .article-hero { border-color: var(--line); }
:root[data-theme="dark"] .skill-dot { border-color: var(--ink-soft); }
:root[data-theme="dark"] .skill-orbit { box-shadow: 0 0 0 12px var(--mint); }
:root[data-theme="dark"] .expand-button,
:root[data-theme="dark"] .project-links a,
:root[data-theme="dark"] .topic-options button,
:root[data-theme="dark"] .topic-picker kbd,
:root[data-theme="dark"] .rich-editor__toolbar { background: var(--paper); }
:root[data-theme="dark"] .read-arrow,
:root[data-theme="dark"] .upload-dropzone__icon { background: var(--mint); }
:root[data-theme="dark"] .topic-options button.is-active,
:root[data-theme="dark"] .post-card:hover .read-arrow { background: var(--accent-fill); }
:root[data-theme="dark"] .topic-options .topic-chip__remove { background: transparent; }
:root[data-theme="dark"] .contact-form input,
:root[data-theme="dark"] .contact-form textarea,
:root[data-theme="dark"] .publisher-login input,
:root[data-theme="dark"] .publisher-field input,
:root[data-theme="dark"] .publisher-field textarea,
:root[data-theme="dark"] .publisher-field select,
:root[data-theme="dark"] .custom-topic input,
:root[data-theme="dark"] .rich-editor {
background: var(--paper);
border-color: var(--line);
}
:root[data-theme="dark"] :is(input, textarea, select):focus,
:root[data-theme="dark"] .rich-editor:focus-within,
:root[data-theme="dark"] .search-box:focus-within { border-color: var(--sage-deep); }
:root[data-theme="dark"] :is(input, textarea)::placeholder,
:root[data-theme="dark"] .rich-editor .tiptap p.is-editor-empty:first-child::before { color: var(--ink-faint); }
:root[data-theme="dark"] .culture-card { background: linear-gradient(145deg, var(--lavender), #262631); }
:root[data-theme="dark"] .culture-link--spotify { background: #284334; }
:root[data-theme="dark"] .culture-link--instagram { background: #44303c; }
:root[data-theme="dark"] .culture-link--steam { background: #293b49; }
:root[data-theme="dark"] .publisher-badge,
:root[data-theme="dark"] .form-status--success { color: var(--sage-deep); }
:root[data-theme="dark"] .state-card--error,
:root[data-theme="dark"] .upload-feedback,
:root[data-theme="dark"] .upload-list .has-error { background: #3c2825; border-color: #7b5148; color: #f2b7a7; }
:root[data-theme="dark"] .form-status--error,
:root[data-theme="dark"] .social-error,
:root[data-theme="dark"] .upload-file-info p,
:root[data-theme="dark"] .text-button--danger { color: #f2b7a7; }
:root[data-theme="dark"] .upload-dropzone { border-color: #668979; background: linear-gradient(135deg, #253a2e, #1c2c23); }
:root[data-theme="dark"] .upload-dropzone.is-dragging,
:root[data-theme="dark"] .upload-list .upload-sortable.is-sorting { background: var(--mint); }
.theme-toggle { color: var(--sage-deep); }
-6
View File
@@ -1,6 +0,0 @@
export const mainTopics = [
"AI", "React", "FastAPI", "Supabase", "Python", "Cloud",
"DevOps", "Product", "Reliability", "Security", "Music", "Life",
];
export const topicKey = (topic) => topic.trim().toLowerCase();
-41
View File
@@ -1,41 +0,0 @@
import { useCallback, useEffect, useState } from "react";
import { getPost, getPosts } from "./api";
import { useAdmin } from "./components/AdminSession";
// Article reads are public. Sign-in only triggers a fresh read, never gates it.
export default function useJournalResource(slug = null) {
const { sessionRevision } = useAdmin();
const [attempt, setAttempt] = useState(0);
const [state, setState] = useState({ key: slug, data: null, loading: true, error: "" });
const reload = useCallback(() => setAttempt((current) => current + 1), []);
useEffect(() => {
const controller = new AbortController();
setState((current) => ({ key: slug, data: current.key === slug ? current.data : null, loading: true, error: "" }));
const request = slug === null ? getPosts(controller.signal) : getPost(slug, controller.signal);
request.then((data) => {
if (!controller.signal.aborted) setState({ key: slug, data, loading: false, error: "" });
}).catch((error) => {
if (!controller.signal.aborted) setState((current) => ({ ...current, loading: false, error: error.message }));
});
return () => controller.abort();
}, [slug, sessionRevision, attempt]);
useEffect(() => {
if (!state.error) return;
const visible = () => { if (document.visibilityState === "visible") reload(); };
window.addEventListener("online", reload);
window.addEventListener("focus", reload);
document.addEventListener("visibilitychange", visible);
return () => {
window.removeEventListener("online", reload);
window.removeEventListener("focus", reload);
document.removeEventListener("visibilitychange", visible);
};
}, [state.error, reload]);
const setData = useCallback((update) => {
setState((current) => ({ ...current, data: typeof update === "function" ? update(current.data) : update }));
}, []);
return { ...state, loading: state.key !== slug || state.loading, data: state.key === slug ? state.data : null, reload, setData };
}
-27
View File
@@ -1,27 +0,0 @@
import { useCallback, useEffect, useState } from "react";
import { useAdmin } from "./components/AdminSession";
export default function usePortfolioResource(fetchContent) {
const { sessionRevision } = useAdmin();
const [attempt, setAttempt] = useState(0);
const [state, setState] = useState({ data: null, loading: true, error: "" });
const reload = useCallback(() => setAttempt((value) => value + 1), []);
useEffect(() => {
const controller = new AbortController();
setState((current) => ({ ...current, loading: true, error: "" }));
fetchContent(controller.signal).then((data) => {
if (!controller.signal.aborted) setState({ data, loading: false, error: "" });
}).catch((error) => {
if (!controller.signal.aborted) setState((current) => ({ ...current, loading: false, error: error.message }));
});
return () => controller.abort();
}, [fetchContent, sessionRevision, attempt]);
useEffect(() => {
if (!state.error) return;
window.addEventListener("online", reload);
window.addEventListener("focus", reload);
return () => { window.removeEventListener("online", reload); window.removeEventListener("focus", reload); };
}, [state.error, reload]);
const setData = useCallback((update) => setState((current) => ({ ...current, data: typeof update === "function" ? update(current.data) : update, error: "" })), []);
return { ...state, reload, setData };
}
-20
View File
@@ -1,20 +0,0 @@
import { defineConfig } from "vite";
import react from "@vitejs/plugin-react";
export default defineConfig({
// Do not publish photos, verification files, or other assets while offline.
publicDir: false,
plugins: [react()],
define: {
"import.meta.env.VITE_MAX_UPLOAD_MB": JSON.stringify(process.env.VERCEL === "1" ? 4 : 20),
},
server: {
port: 5173,
proxy: {
"/api": {
target: "http://127.0.0.1:8000",
changeOrigin: true,
},
},
},
});
-8
View File
@@ -1,8 +0,0 @@
{
"name": "alex-herlan-portfolio-deployment",
"private": true,
"engines": { "node": "24.x" },
"scripts": {
"build": "npm run build --prefix frontend"
}
}
-7
View File
@@ -1,7 +0,0 @@
fastapi
httpx
dropbox==12.2.1
Pillow
uvicorn[standard]
email-validator
supabase==2.31.0
-181
View File
@@ -1,181 +0,0 @@
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="source-sha256" content="942fe2086b6561514476f353b96f7d314ace167824d02baaf210c6558ccf1704"><meta name="resume-layout" content="original"><title>Alexander Herlan | Resume</title><style>
@page { size: Letter; margin: 50pt 55.5pt 50pt 57.75pt; }
* { box-sizing: border-box; }
html { background: #e8e8e8; }
body {
width: 612pt; margin: 24px auto; padding: 50pt 55.5pt 50pt 57.75pt;
background: white; color: #111; font: 10pt/1.2 Lato, Arial, sans-serif;
-webkit-print-color-adjust: exact; print-color-adjust: exact;
}
header { display: grid; grid-template-columns: 166.5pt 1fr; gap: 18pt;
min-height: 124pt; break-inside: avoid; }
h1, h2, h3, h5, .contact-name { font-family: Raleway, Arial, sans-serif; }
h1 { font-size: 24pt; line-height: 1.16; margin: 0 0 5pt; }
.subtitle { font-size: 16pt; font-weight: bold; line-height: 1.2;
color: #38761d; margin: 0; }
.subtitle > span { display: block; }
.gradient-word { white-space: nowrap; }
.contact { border-top: 3pt solid #000; padding-top: 9pt; }
.contact-name { font-size: 12pt; font-weight: bold; margin: 0 0 3pt; }
.contact p { margin: 0 0 7pt; }
.contact-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 9pt 10pt; margin-top: 10pt; }
.contact-grid a { grid-column: span 2; display: block; min-width: 0;
border-left: 2pt solid #d6e7cb; padding-left: 7pt; font-size: 9pt;
line-height: 1.3; }
.contact-grid a.direct { grid-column: span 3; }
.contact-label { display: block; color: #72796d; font-size: 7pt;
letter-spacing: .8pt; text-transform: uppercase; margin-bottom: 2pt; }
.contact-value { display: inline-block; }
a { color: #38761d; text-decoration: none; overflow-wrap: anywhere; }
section { margin: 0 0 18pt 184.5pt; }
.section-start { display: grid; grid-template-columns: 166.5pt minmax(0, 1fr);
column-gap: 18pt; margin-left: -184.5pt; break-inside: avoid; break-after: avoid; }
.section-start > h2 + * { border-top: 3pt solid #000; padding-top: 10pt; }
h2 { width: 166.5pt;
font-size: 12pt; line-height: 1.2; margin: 0; }
h2::before { content: ''; display: block; width: 12pt;
border-top: 1.5pt solid #111; margin-bottom: 12pt; }
h3 { font-size: 12pt; line-height: 1.2; margin: 16pt 0 4pt; }
.section-start > h3 { margin-top: 0; }
h4 { color: #666; font-size: 10pt; margin: 8pt 0 4pt; }
h5, h6 { font-size: 11pt; margin: 12pt 0 4pt; }
h3, h4, h5, h6 { break-after: avoid; }
p { margin: 0 0 6pt; orphans: 3; widows: 3; }
p.dates { color: #666; font-size: 9pt; text-transform: uppercase;
margin-bottom: 8pt; break-after: avoid; }
p.dates em { font-style: normal; }
ul, ol { margin: 4pt 0 8pt; padding-left: 35pt; }
li { padding-left: 0; margin-bottom: 2pt; orphans: 2; widows: 2; break-inside: avoid; }
li > p { margin-bottom: 2pt; }
.references { list-style: none; padding: 0; }
.references li { margin-bottom: 6pt; break-inside: avoid; }
table { width: 100%; border-collapse: collapse; font-size: 9pt; }
th, td { text-align: left; vertical-align: top; padding: 4pt;
border-bottom: 1px solid #ddd; overflow-wrap: anywhere; }
tr { break-inside: avoid; }
img { max-width: 100%; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media print {
html { background: white; }
body { width: auto; margin: 0; padding: 0; }
}
</style></head><body><header><div><h1>Alexander Herlan</h1>
<p class="subtitle"><span><span class="gradient-word"><span style="color:#286414">S</span><span style="color:#2c6818">e</span><span style="color:#316c1b">n</span><span style="color:#35701f">i</span><span style="color:#397423">o</span><span style="color:#3d7826">r</span></span> <span class="gradient-word"><span style="color:#46802e">S</span><span style="color:#4a8432">o</span><span style="color:#4e8835">f</span><span style="color:#538c39">t</span><span style="color:#57903d">w</span><span style="color:#5b9340">a</span><span style="color:#5f9744">r</span><span style="color:#649b48">e</span></span> <span class="gradient-word"><span style="color:#6ca34f">E</span><span style="color:#70a753">n</span><span style="color:#75ab57">g</span><span style="color:#79af5a">i</span><span style="color:#7db35e">n</span><span style="color:#81b762">e</span><span style="color:#86bb65">e</span><span style="color:#8abf69">r</span></span></span><span><span class="gradient-word"><span style="color:#286414">D</span><span style="color:#2d6919">e</span><span style="color:#336e1d">v</span><span style="color:#387322">O</span><span style="color:#3e7827">p</span><span style="color:#437d2c">s</span></span> <span class="gradient-word"><span style="color:#4e8735">&amp;</span></span> <span class="gradient-word"><span style="color:#59923e">I</span><span style="color:#5e9743">T</span></span> <span class="gradient-word"><span style="color:#69a14d">M</span><span style="color:#6fa651">a</span><span style="color:#74ab56">n</span><span style="color:#7ab05b">a</span><span style="color:#7fb560">g</span><span style="color:#85ba64">e</span><span style="color:#8abf69">r</span></span></span></p></div><div class="contact"><p class="contact-name">Alexander Herlan</p><p>1207 El Portal NW, Albuquerque, NM 87107</p>
<nav class="contact-grid" aria-label="Contact and social links"><a href="tel:+18134028692" class="direct"><span class="contact-label">Phone</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">8</span><span style="color:#316c1c">1</span><span style="color:#3a7523">3</span><span style="color:#437d2b">-</span><span style="color:#4c8533">4</span><span style="color:#558d3b">0</span><span style="color:#5d9642">2</span><span style="color:#669e4a">-</span><span style="color:#6fa652">8</span><span style="color:#78ae5a">6</span><span style="color:#81b761">9</span><span style="color:#8abf69">2</span></span></span></a><a href="mailto:alexherlandev@gmail.com" class="direct"><span class="contact-label">Email</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">a</span><span style="color:#2c6818">l</span><span style="color:#316c1c">e</span><span style="color:#357020">x</span><span style="color:#3a7523">h</span><span style="color:#3e7927">e</span><span style="color:#437d2b">r</span><span style="color:#47812f">l</span><span style="color:#4c8533">a</span><span style="color:#508937">n</span><span style="color:#558d3b">d</span><span style="color:#59923e">e</span><span style="color:#5d9642">v</span><span style="color:#629a46">@</span><span style="color:#669e4a">g</span><span style="color:#6ba24e">m</span><span style="color:#6fa652">a</span><span style="color:#74aa56">i</span><span style="color:#78ae5a">l</span><span style="color:#7db35d">.</span><span style="color:#81b761">c</span><span style="color:#86bb65">o</span><span style="color:#8abf69">m</span></span></span></a><a href="https://alex.herlan.dev"><span class="contact-label">Website</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">a</span><span style="color:#2f6a1a">l</span><span style="color:#367120">e</span><span style="color:#3d7826">x</span><span style="color:#447e2c">.</span><span style="color:#4b8432">h</span><span style="color:#528b38">e</span><span style="color:#59923e">r</span><span style="color:#609845">l</span><span style="color:#679e4b">a</span><span style="color:#6ea551">n</span><span style="color:#75ac57">.</span><span style="color:#7cb25d">d</span><span style="color:#83b863">e</span><span style="color:#8abf69">v</span></span></span></a><a href="https://linkedin.com/in/alexander-herlan"><span class="contact-label">Profile</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">L</span><span style="color:#367120">i</span><span style="color:#447e2c">n</span><span style="color:#528b38">k</span><span style="color:#609845">e</span><span style="color:#6ea551">d</span><span style="color:#7cb25d">I</span><span style="color:#8abf69">n</span></span></span></a><a href="https://github.com/AlexanderHerlan"><span class="contact-label">Code</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">G</span><span style="color:#3c7625">i</span><span style="color:#4f8836">t</span><span style="color:#639b47">H</span><span style="color:#76ad58">u</span><span style="color:#8abf69">b</span></span></span></a></nav></div></header><main><section><div class="section-start"><h2>Overview</h2>
<p>Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.</p>
</div><p>Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.</p>
</section><section><div class="section-start"><h2>Experience</h2>
<h3>Independent Software Developer / Freelancer</h3>
</div><p class="dates"><em>June 2024 - Present</em></p>
<p>I provide independent software development, web application development, and IT consulting services.</p>
<h3>Covius, LLC / Senior Software Engineer</h3>
<p class="dates"><em>January 2022 - April 2024 · Pompano Beach, FL</em></p>
<p>At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.</p>
<h4>Accomplishments</h4>
<ul>
<li>Contributed to the complete redesign of a major legacy website containing extensive historical data.</li>
<li>Helped manage and adapt a legacy database to support the redesigned platform.</li>
<li>Built a responsive web application frontend for desktop and mobile browsers.</li>
<li>Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.</li>
<li>Developed frontend functionality using Angular and RxJS.</li>
</ul>
<h3>SEAD Software / Software Engineer</h3>
<p class="dates"><em>April 2021 - July 2022 · Delray Beach, FL</em></p>
<p>At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.</p>
<h4>Accomplishments</h4>
<ul>
<li>Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.</li>
<li>Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.</li>
<li>Maintained and implemented Amazon Web Services infrastructure to support multiple projects</li>
<li>Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure</li>
<li>Maintained a large Git code repository for multiple clients</li>
</ul>
<h3>Clarity Diagnostics &amp; Lab Solutions / Director of IT</h3>
<p class="dates"><em>September 2020 - January 2022 · Boca Raton, FL</em></p>
<p>Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.</p>
<h4>Accomplishments</h4>
<ul>
<li>Implemented a physical keycard/badge access security system for the entire laboratory facility</li>
<li>Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365</li>
<li>Maintained client-facing websites</li>
<li>Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment</li>
<li>Managed and instructed other IT staff in their daily responsibilities</li>
</ul>
<h3>MyTap, aka Which Craft / Lead Developer</h3>
<p class="dates"><em>January 2016 - April 2020 · Albuquerque, NM</em></p>
<p>At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.</p>
<h4>Accomplishments</h4>
<ul>
<li>Implemented a robust web scraper in Python using the Scrapy Python library</li>
<li>Created a responsive web application frontend for mobile browsers</li>
<li>Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.</li>
<li>Maintained a Django backend serving data from a PostgreSQL database</li>
</ul>
<h3>TriCore Reference Laboratories / Production Support Specialist</h3>
<p class="dates"><em>April 2013 - January 2017 · Albuquerque, NM</em></p>
<p>Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.</p>
<h4>Accomplishments</h4>
<ul>
<li>Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.</li>
<li>Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.</li>
<li>Guided medical staff through time-sensitive IT troubleshooting affecting patient care.</li>
<li>Monitored critical hospital infrastructure for performance and errors, correcting them promptly.</li>
<li>Trained new help desk employees on their daily tasks and responsibilities</li>
<li>Remained on-call off hours for emergency assistance.</li>
</ul>
<h3>Desert Digital Consulting / Software Engineer, Web Application Developer, IT Consultant</h3>
<p class="dates"><em>October 2010 - January 2021 | Remote</em></p>
<p>Provided freelance services in software development, web design, information technology, and computer hardware design.</p>
</section><section><div class="section-start"><h2>Skills</h2>
<h3>Programming Languages</h3>
</div><p>Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP, C, C++, CoffeeScript, HTML5, CSS3, Sass</p>
<h3>Database Technologies</h3>
<ul>
<li><strong>SQL:</strong> Microsoft SQL Server, MySQL Server, PostgreSQL Server</li>
<li><strong>NoSQL:</strong> MongoDB, CouchDB, Redis</li>
<li><strong>Other:</strong> Microsoft Access, Microsoft Excel</li>
</ul>
<h3>Applications</h3>
<ul>
<li><strong>Programming:</strong> Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git</li>
<li><strong>Design:</strong> Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign</li>
<li><strong>Productivity:</strong> Microsoft Office, Google Docs (Drive), WordPerfect Suite</li>
<li><strong>Virtualization:</strong> VMware, VirtualBox, Docker, Kubernetes</li>
</ul>
<h3>Cloud Technologies</h3>
<ul>
<li>Microsoft 365 and Google Workspace Administration</li>
<li>Amazon Web Services (AWS) Administration</li>
<li>Microsoft Azure DevOps Administration</li>
</ul>
<h3>Other</h3>
<ul>
<li>Jira Agile Project Management skills</li>
<li>Responsive web design</li>
<li>Advanced (and remote) Linux administration</li>
<li>Search engine optimization (SEO) for Google and Bing</li>
<li>Social media presence implementation (Facebook, Twitter, Instagram, etc.)</li>
</ul>
</section><section><div class="section-start"><h2>Education</h2>
<h3>University of New Mexico</h3>
</div><p>BS, Computer Science</p>
<p class="dates"><em>September 2003 - September 2008</em></p>
<h4>Certifications</h4>
<ul>
<li>Beginning Programming in C++</li>
<li>Intermediate Programming in C++</li>
<li>Advanced Visual C++</li>
<li>Beginning Visual Basic</li>
<li>Intermediate Visual Basic</li>
</ul>
<h3>Central New Mexico Community College (aka TVI)</h3>
<ul>
<li>Beginning Photoshop</li>
<li>Intermediate Photoshop</li>
<li>Advanced Photoshop</li>
<li>Introduction to Lightwave 3D</li>
</ul>
</section><section><div class="section-start"><h2>References</h2>
<ul class="references"><li><strong>David Foy</strong> · <span>Senior Software Engineer</span> · <span>Covius</span>: <span><a href="tel:+14079541245">407-954-1245</a></span></li><li><strong>Warren Wright</strong> · <span>CEO</span> · <span>SEAD Software</span>: <span><a href="tel:+12019881513">201-988-1513</a></span></li><li><strong>Ashley Park</strong> · <span>Director</span> · <span>Clarity Diagnostics</span>: <span><a href="tel:+15083415387">508-341-5387</a></span></li><li><strong>Douglas Radecki</strong> · <span>CEO</span> · <span>MyTap / Which Craft</span>: <span><a href="tel:+15054004636">505-400-4636</a></span></li></ul></div></section></main></body></html>
-161
View File
@@ -1,161 +0,0 @@
# Alexander Herlan
**Senior Software Engineer · DevOps & IT Manager**
1207 El Portal NW, Albuquerque, NM 87107
[813-402-8692](tel:+18134028692) · [alexherlandev@gmail.com](mailto:alexherlandev@gmail.com) · [alex.herlan.dev](https://alex.herlan.dev) · [LinkedIn](https://linkedin.com/in/alexander-herlan) · [GitHub](https://github.com/AlexanderHerlan)
## Overview
Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.
Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.
## Experience
### Independent Software Developer / Freelancer
*June 2024 - Present*
I provide independent software development, web application development, and IT consulting services.
### Covius, LLC / Senior Software Engineer
*January 2022 - April 2024 · Pompano Beach, FL*
At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.
#### Accomplishments
- Contributed to the complete redesign of a major legacy website containing extensive historical data.
- Helped manage and adapt a legacy database to support the redesigned platform.
- Built a responsive web application frontend for desktop and mobile browsers.
- Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.
- Developed frontend functionality using Angular and RxJS.
### SEAD Software / Software Engineer
*April 2021 - July 2022 · Delray Beach, FL*
At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.
#### Accomplishments
- Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.
- Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.
- Maintained and implemented Amazon Web Services infrastructure to support multiple projects
- Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure
- Maintained a large Git code repository for multiple clients
### Clarity Diagnostics & Lab Solutions / Director of IT
*September 2020 - January 2022 · Boca Raton, FL*
Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.
#### Accomplishments
- Implemented a physical keycard/badge access security system for the entire laboratory facility
- Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365
- Maintained client-facing websites
- Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment
- Managed and instructed other IT staff in their daily responsibilities
### MyTap, aka Which Craft / Lead Developer
*January 2016 - April 2020 · Albuquerque, NM*
At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.
#### Accomplishments
- Implemented a robust web scraper in Python using the Scrapy Python library
- Created a responsive web application frontend for mobile browsers
- Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.
- Maintained a Django backend serving data from a PostgreSQL database
### TriCore Reference Laboratories / Production Support Specialist
*April 2013 - January 2017 · Albuquerque, NM*
Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.
#### Accomplishments
- Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.
- Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.
- Guided medical staff through time-sensitive IT troubleshooting affecting patient care.
- Monitored critical hospital infrastructure for performance and errors, correcting them promptly.
- Trained new help desk employees on their daily tasks and responsibilities
- Remained on-call off hours for emergency assistance.
### Desert Digital Consulting / Software Engineer, Web Application Developer, IT Consultant
*October 2010 - January 2021 | Remote*
Provided freelance services in software development, web design, information technology, and computer hardware design.
## Skills
### Programming Languages
Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP, C, C++, CoffeeScript, HTML5, CSS3, Sass
### Database Technologies
- **SQL:** Microsoft SQL Server, MySQL Server, PostgreSQL Server
- **NoSQL:** MongoDB, CouchDB, Redis
- **Other:** Microsoft Access, Microsoft Excel
### Applications
- **Programming:** Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git
- **Design:** Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign
- **Productivity:** Microsoft Office, Google Docs (Drive), WordPerfect Suite
- **Virtualization:** VMware, VirtualBox, Docker, Kubernetes
### Cloud Technologies
- Microsoft 365 and Google Workspace Administration
- Amazon Web Services (AWS) Administration
- Microsoft Azure DevOps Administration
### Other
- Jira Agile Project Management skills
- Responsive web design
- Advanced (and remote) Linux administration
- Search engine optimization (SEO) for Google and Bing
- Social media presence implementation (Facebook, Twitter, Instagram, etc.)
## Education
### University of New Mexico
BS, Computer Science
*September 2003 - September 2008*
#### Certifications
- Beginning Programming in C++
- Intermediate Programming in C++
- Advanced Visual C++
- Beginning Visual Basic
- Intermediate Visual Basic
### Central New Mexico Community College (aka TVI)
- Beginning Photoshop
- Intermediate Photoshop
- Advanced Photoshop
- Introduction to Lightwave 3D
## References
| Name | Role | Organization | Phone |
| --- | --- | --- | --- |
| David Foy | Senior Software Engineer | Covius | [407-954-1245](tel:+14079541245) |
| Warren Wright | CEO | SEAD Software | [201-988-1513](tel:+12019881513) |
| Ashley Park | Director | Clarity Diagnostics | [508-341-5387](tel:+15083415387) |
| Douglas Radecki | CEO | MyTap / Which Craft | [505-400-4636](tel:+15054004636) |
Binary file not shown.
Binary file not shown.
-159
View File
@@ -1,159 +0,0 @@
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="source-sha256" content="438fd0e49d84fb7eb3c60408e95e741d5b6fea8bd2dd627b8b2cba419a3eb613"><meta name="resume-layout" content="autofill"><title>Alexander Herlan | Resume</title><style>
@page { size: Letter; margin: 40pt 43pt; }
* { box-sizing: border-box; }
body { max-width: 612pt; margin: 24px auto; padding: 40pt 43pt;
color: #111; background: white; font: 10.5pt/1.18 Arial, sans-serif; }
h1 { font-size: 22pt; margin: 0 0 6pt; }
h2 { font-size: 12pt; margin: 10pt 0 6pt; border-bottom: 1pt solid #777;
padding-bottom: 3pt; }
h3 { font-size: 11pt; margin: 6pt 0 3pt; }
h4, h5, h6 { font-size: 10.5pt; margin: 7pt 0 3pt; }
h1, h2, h3, h4, h5, h6 { break-after: avoid; }
p { margin: 0 0 3pt; orphans: 2; widows: 2; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 15pt; margin: 4pt 0 8pt; }
li { margin-bottom: 1.5pt; break-inside: avoid; }
li:has(> ul), li:has(> ol) { break-inside: auto; }
li > p:has(+ ul), li > p:has(+ ol) { break-after: avoid; }
.job-heading { break-inside: avoid; break-after: avoid; }
.job-heading p { margin-bottom: 2pt; }
em { font-style: italic; }
.dates, em.dates { color: #555; font-size: 9pt; font-style: normal; }
@media print { body { max-width: none; margin: 0; padding: 0; } }
</style></head><body><main><h1>Alexander Herlan</h1>
<p><strong>Senior Software Engineer | DevOps &amp; IT Manager</strong></p>
<p>1207 El Portal NW, Albuquerque, NM 87107</p>
<p>Phone: <a href="tel:+18134028692">813-402-8692</a></p>
<p>Email: <a href="mailto:alexherlandev@gmail.com">alexherlandev@gmail.com</a></p>
<p>Website: <a href="https://alex.herlan.dev">https://alex.herlan.dev</a></p>
<p>LinkedIn: <a href="https://linkedin.com/in/alexander-herlan">https://linkedin.com/in/alexander-herlan</a></p>
<p>GitHub: <a href="https://github.com/AlexanderHerlan">https://github.com/AlexanderHerlan</a></p>
<h2>Professional Summary</h2>
<p>Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.</p>
<p>Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.</p>
<h2>Work Experience</h2>
<div class="job-heading"><h3>Software Developer / Freelancer</h3>
<p><em>Self-employed</em></p>
<p>Remote</p>
<p class="dates"><em class="dates">June 2024 - Present</em></p>
</div><p>I provide independent software development, web application development, and IT consulting services.</p>
<div class="job-heading"><h3>Senior Software Engineer</h3>
<p><em>Covius, LLC</em></p>
<p>Pompano Beach, FL</p>
<p class="dates"><em class="dates">January 2022 - April 2024</em></p>
</div><p>At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.</p>
<ul>
<li>Contributed to the complete redesign of a major legacy website containing extensive historical data.</li>
<li>Helped manage and adapt a legacy database to support the redesigned platform.</li>
<li>Built a responsive web application frontend for desktop and mobile browsers.</li>
<li>Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.</li>
<li>Developed frontend functionality using Angular and RxJS.</li>
</ul>
<div class="job-heading"><h3>Software Engineer</h3>
<p><em>SEAD Software</em></p>
<p>Delray Beach, FL</p>
<p class="dates"><em class="dates">April 2021 - July 2022</em></p>
</div><p>At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.</p>
<ul>
<li>Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.</li>
<li>Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.</li>
<li>Maintained and implemented Amazon Web Services infrastructure to support multiple projects</li>
<li>Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure</li>
<li>Maintained a large Git code repository for multiple clients</li>
</ul>
<div class="job-heading"><h3>Director of IT</h3>
<p><em>Clarity Diagnostics &amp; Lab Solutions</em></p>
<p>Boca Raton, FL</p>
<p class="dates"><em class="dates">September 2020 - January 2022</em></p>
</div><p>Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.</p>
<ul>
<li>Implemented a physical keycard/badge access security system for the entire laboratory facility</li>
<li>Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365</li>
<li>Maintained client-facing websites</li>
<li>Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment</li>
<li>Managed and instructed other IT staff in their daily responsibilities</li>
</ul>
<div class="job-heading"><h3>Lead Developer</h3>
<p><em>MyTap, aka Which Craft</em></p>
<p>Albuquerque, NM</p>
<p class="dates"><em class="dates">January 2016 - April 2020</em></p>
</div><p>At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.</p>
<ul>
<li>Implemented a robust web scraper in Python using the Scrapy Python library</li>
<li>Created a responsive web application frontend for mobile browsers</li>
<li>Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.</li>
<li>Maintained a Django backend serving data from a PostgreSQL database</li>
</ul>
<div class="job-heading"><h3>Production Support Specialist</h3>
<p><em>TriCore Reference Laboratories</em></p>
<p>Albuquerque, NM</p>
<p class="dates"><em class="dates">April 2013 - January 2017</em></p>
</div><p>Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.</p>
<ul>
<li>Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.</li>
<li>Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.</li>
<li>Guided medical staff through time-sensitive IT troubleshooting affecting patient care.</li>
<li>Monitored critical hospital infrastructure for performance and errors, correcting them promptly.</li>
<li>Trained new help desk employees on their daily tasks and responsibilities</li>
<li>Remained on-call off hours for emergency assistance.</li>
</ul>
<div class="job-heading"><h3>Software Engineer, Web Application Developer, IT Consultant</h3>
<p><em>Desert Digital Consulting</em></p>
<p>Remote</p>
<p class="dates"><em class="dates">October 2010 - January 2021</em></p>
</div><p>Provided freelance services in software development, web design, information technology, and computer hardware design.</p>
<h2>Technical Skills</h2>
<h3>Programming Languages</h3>
<p>Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP, C, C++, CoffeeScript, HTML5, CSS3, Sass</p>
<h3>Database Technologies</h3>
<ul>
<li><strong>SQL:</strong> Microsoft SQL Server, MySQL Server, PostgreSQL Server</li>
<li><strong>NoSQL:</strong> MongoDB, CouchDB, Redis</li>
<li><strong>Other:</strong> Microsoft Access, Microsoft Excel</li>
</ul>
<h3>Applications</h3>
<ul>
<li><strong>Programming:</strong> Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git</li>
<li><strong>Design:</strong> Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign</li>
<li><strong>Productivity:</strong> Microsoft Office, Google Docs (Drive), WordPerfect Suite</li>
<li><strong>Virtualization:</strong> VMware, VirtualBox, Docker, Kubernetes</li>
</ul>
<h3>Cloud Technologies</h3>
<ul>
<li>Microsoft 365 and Google Workspace Administration</li>
<li>Amazon Web Services (AWS) Administration</li>
<li>Microsoft Azure DevOps Administration</li>
</ul>
<h3>Other</h3>
<ul>
<li>Jira Agile Project Management skills</li>
<li>Responsive web design</li>
<li>Advanced (and remote) Linux administration</li>
<li>Search engine optimization (SEO) for Google and Bing</li>
<li>Social media presence implementation (Facebook, Twitter, Instagram, etc.)</li>
</ul>
<h2>Education</h2>
<div class="job-heading"><h3><em>University of New Mexico</em></h3>
<p>BS, Computer Science</p>
<p class="dates"><em class="dates">September 2003 - September 2008</em></p>
</div><h4>Certifications</h4>
<ul>
<li>Beginning Programming in C++</li>
<li>Intermediate Programming in C++</li>
<li>Advanced Visual C++</li>
<li>Beginning Visual Basic</li>
<li>Intermediate Visual Basic</li>
</ul>
<h3><em>Central New Mexico Community College (aka TVI)</em></h3>
<ul>
<li>Beginning Photoshop</li>
<li>Intermediate Photoshop</li>
<li>Advanced Photoshop</li>
<li>Introduction to Lightwave 3D</li>
</ul>
<h2>References</h2>
<p><strong>David Foy</strong> | Senior Software Engineer | <em>Covius</em> | <a href="tel:+14079541245">407-954-1245</a></p>
<p><strong>Warren Wright</strong> | CEO | <em>SEAD Software</em> | <a href="tel:+12019881513">201-988-1513</a></p>
<p><strong>Ashley Park</strong> | Director | <em>Clarity Diagnostics</em> | <a href="tel:+15083415387">508-341-5387</a></p>
<p><strong>Douglas Radecki</strong> | CEO | <em>MyTap / Which Craft</em> | <a href="tel:+15054004636">505-400-4636</a></p></main></body></html>
-189
View File
@@ -1,189 +0,0 @@
# Alexander Herlan
**Senior Software Engineer | DevOps & IT Manager**
1207 El Portal NW, Albuquerque, NM 87107
Phone: [813-402-8692](tel:+18134028692)
Email: [alexherlandev@gmail.com](mailto:alexherlandev@gmail.com)
Website: [https://alex.herlan.dev](https://alex.herlan.dev)
LinkedIn: [https://linkedin.com/in/alexander-herlan](https://linkedin.com/in/alexander-herlan)
GitHub: [https://github.com/AlexanderHerlan](https://github.com/AlexanderHerlan)
## Professional Summary
Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.
Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.
## Work Experience
### Software Developer / Freelancer
*Self-employed*
Remote
*June 2024 - Present*
I provide independent software development, web application development, and IT consulting services.
### Senior Software Engineer
*Covius, LLC*
Pompano Beach, FL
*January 2022 - April 2024*
At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.
- Contributed to the complete redesign of a major legacy website containing extensive historical data.
- Helped manage and adapt a legacy database to support the redesigned platform.
- Built a responsive web application frontend for desktop and mobile browsers.
- Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.
- Developed frontend functionality using Angular and RxJS.
### Software Engineer
*SEAD Software*
Delray Beach, FL
*April 2021 - July 2022*
At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.
- Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.
- Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.
- Maintained and implemented Amazon Web Services infrastructure to support multiple projects
- Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure
- Maintained a large Git code repository for multiple clients
### Director of IT
*Clarity Diagnostics & Lab Solutions*
Boca Raton, FL
*September 2020 - January 2022*
Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.
- Implemented a physical keycard/badge access security system for the entire laboratory facility
- Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365
- Maintained client-facing websites
- Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment
- Managed and instructed other IT staff in their daily responsibilities
### Lead Developer
*MyTap, aka Which Craft*
Albuquerque, NM
*January 2016 - April 2020*
At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.
- Implemented a robust web scraper in Python using the Scrapy Python library
- Created a responsive web application frontend for mobile browsers
- Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.
- Maintained a Django backend serving data from a PostgreSQL database
### Production Support Specialist
*TriCore Reference Laboratories*
Albuquerque, NM
*April 2013 - January 2017*
Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.
- Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.
- Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.
- Guided medical staff through time-sensitive IT troubleshooting affecting patient care.
- Monitored critical hospital infrastructure for performance and errors, correcting them promptly.
- Trained new help desk employees on their daily tasks and responsibilities
- Remained on-call off hours for emergency assistance.
### Software Engineer, Web Application Developer, IT Consultant
*Desert Digital Consulting*
Remote
*October 2010 - January 2021*
Provided freelance services in software development, web design, information technology, and computer hardware design.
## Technical Skills
### Programming Languages
Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP, C, C++, CoffeeScript, HTML5, CSS3, Sass
### Database Technologies
- **SQL:** Microsoft SQL Server, MySQL Server, PostgreSQL Server
- **NoSQL:** MongoDB, CouchDB, Redis
- **Other:** Microsoft Access, Microsoft Excel
### Applications
- **Programming:** Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git
- **Design:** Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign
- **Productivity:** Microsoft Office, Google Docs (Drive), WordPerfect Suite
- **Virtualization:** VMware, VirtualBox, Docker, Kubernetes
### Cloud Technologies
- Microsoft 365 and Google Workspace Administration
- Amazon Web Services (AWS) Administration
- Microsoft Azure DevOps Administration
### Other
- Jira Agile Project Management skills
- Responsive web design
- Advanced (and remote) Linux administration
- Search engine optimization (SEO) for Google and Bing
- Social media presence implementation (Facebook, Twitter, Instagram, etc.)
## Education
### *University of New Mexico*
BS, Computer Science
*September 2003 - September 2008*
#### Certifications
- Beginning Programming in C++
- Intermediate Programming in C++
- Advanced Visual C++
- Beginning Visual Basic
- Intermediate Visual Basic
### *Central New Mexico Community College (aka TVI)*
- Beginning Photoshop
- Intermediate Photoshop
- Advanced Photoshop
- Introduction to Lightwave 3D
## References
**David Foy** | Senior Software Engineer | *Covius* | [407-954-1245](tel:+14079541245)
**Warren Wright** | CEO | *SEAD Software* | [201-988-1513](tel:+12019881513)
**Ashley Park** | Director | *Clarity Diagnostics* | [508-341-5387](tel:+15083415387)
**Douglas Radecki** | CEO | *MyTap / Which Craft* | [505-400-4636](tel:+15054004636)
Binary file not shown.
-198
View File
@@ -1,198 +0,0 @@
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="source-sha256" content="2bd7287ccb3f948edb49f1f9646aadcdd0d8aaf8e8dd8272e5573c9507ff72e4"><meta name="resume-layout" content="original"><title>Alexander Herlan | Resume</title><style>
@page { size: Letter; margin: 50pt 55.5pt 50pt 57.75pt; }
* { box-sizing: border-box; }
html { background: #e8e8e8; }
body {
width: 612pt; margin: 24px auto; padding: 50pt 55.5pt 50pt 57.75pt;
background: white; color: #111; font: 10pt/1.2 Lato, Arial, sans-serif;
-webkit-print-color-adjust: exact; print-color-adjust: exact;
}
header { display: grid; grid-template-columns: 166.5pt 1fr; gap: 18pt;
min-height: 124pt; break-inside: avoid; }
h1, h2, h3, h5, .contact-name { font-family: Raleway, Arial, sans-serif; }
h1 { font-size: 24pt; line-height: 1.16; margin: 0 0 5pt; }
.subtitle { font-size: 16pt; font-weight: bold; line-height: 1.2;
color: #38761d; margin: 0; }
.subtitle > span { display: block; }
.gradient-word { white-space: nowrap; }
.contact { border-top: 3pt solid #000; padding-top: 9pt; }
.contact-name { font-size: 12pt; font-weight: bold; margin: 0 0 3pt; }
.contact p { margin: 0 0 7pt; }
.contact-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 9pt 10pt; margin-top: 10pt; }
.contact-grid a { grid-column: span 2; display: block; min-width: 0;
border-left: 2pt solid #d6e7cb; padding-left: 7pt; font-size: 9pt;
line-height: 1.3; }
.contact-grid a.direct { grid-column: span 3; }
.contact-label { display: block; color: #72796d; font-size: 7pt;
letter-spacing: .8pt; text-transform: uppercase; margin-bottom: 2pt; }
.contact-value { display: inline-block; }
a { color: #38761d; text-decoration: none; overflow-wrap: anywhere; }
section { margin: 0 0 18pt 184.5pt; }
.section-start { display: grid; grid-template-columns: 166.5pt minmax(0, 1fr);
column-gap: 18pt; margin-left: -184.5pt; break-inside: avoid; break-after: avoid; }
.section-start > h2 + * { border-top: 3pt solid #000; padding-top: 10pt; }
h2 { width: 166.5pt;
font-size: 12pt; line-height: 1.2; margin: 0; }
h2::before { content: ''; display: block; width: 12pt;
border-top: 1.5pt solid #111; margin-bottom: 12pt; }
h3 { font-size: 12pt; line-height: 1.2; margin: 16pt 0 4pt; }
.section-start > h3 { margin-top: 0; }
h4 { color: #666; font-size: 10pt; margin: 8pt 0 4pt; }
h5, h6 { font-size: 11pt; margin: 12pt 0 4pt; }
h3, h4, h5, h6 { break-after: avoid; }
p { margin: 0 0 6pt; orphans: 3; widows: 3; }
p.dates { color: #666; font-size: 9pt; text-transform: uppercase;
margin-bottom: 8pt; break-after: avoid; }
p.dates em { font-style: normal; }
ul, ol { margin: 4pt 0 8pt; padding-left: 35pt; }
li { padding-left: 0; margin-bottom: 2pt; orphans: 2; widows: 2; break-inside: avoid; }
li > p { margin-bottom: 2pt; }
.references { list-style: none; padding: 0; }
.references li { margin-bottom: 6pt; break-inside: avoid; }
table { width: 100%; border-collapse: collapse; font-size: 9pt; }
th, td { text-align: left; vertical-align: top; padding: 4pt;
border-bottom: 1px solid #ddd; overflow-wrap: anywhere; }
tr { break-inside: avoid; }
img { max-width: 100%; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media print {
html { background: white; }
body { width: auto; margin: 0; padding: 0; }
}
</style></head><body><header><div><h1>Alexander Herlan</h1>
<p class="subtitle"><span><span class="gradient-word"><span style="color:#286414">S</span><span style="color:#2c6818">e</span><span style="color:#316c1b">n</span><span style="color:#35701f">i</span><span style="color:#397423">o</span><span style="color:#3d7826">r</span></span> <span class="gradient-word"><span style="color:#46802e">S</span><span style="color:#4a8432">o</span><span style="color:#4e8835">f</span><span style="color:#538c39">t</span><span style="color:#57903d">w</span><span style="color:#5b9340">a</span><span style="color:#5f9744">r</span><span style="color:#649b48">e</span></span> <span class="gradient-word"><span style="color:#6ca34f">E</span><span style="color:#70a753">n</span><span style="color:#75ab57">g</span><span style="color:#79af5a">i</span><span style="color:#7db35e">n</span><span style="color:#81b762">e</span><span style="color:#86bb65">e</span><span style="color:#8abf69">r</span></span></span><span><span class="gradient-word"><span style="color:#286414">D</span><span style="color:#2d6919">e</span><span style="color:#336e1d">v</span><span style="color:#387322">O</span><span style="color:#3e7827">p</span><span style="color:#437d2c">s</span></span> <span class="gradient-word"><span style="color:#4e8735">&amp;</span></span> <span class="gradient-word"><span style="color:#59923e">I</span><span style="color:#5e9743">T</span></span> <span class="gradient-word"><span style="color:#69a14d">M</span><span style="color:#6fa651">a</span><span style="color:#74ab56">n</span><span style="color:#7ab05b">a</span><span style="color:#7fb560">g</span><span style="color:#85ba64">e</span><span style="color:#8abf69">r</span></span></span></p></div><div class="contact"><p class="contact-name">Alexander Herlan</p><p>1207 El Portal NW, Albuquerque, NM 87107</p>
<nav class="contact-grid" aria-label="Contact and social links"><a href="tel:+18134028692" class="direct"><span class="contact-label">Phone</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">8</span><span style="color:#316c1c">1</span><span style="color:#3a7523">3</span><span style="color:#437d2b">-</span><span style="color:#4c8533">4</span><span style="color:#558d3b">0</span><span style="color:#5d9642">2</span><span style="color:#669e4a">-</span><span style="color:#6fa652">8</span><span style="color:#78ae5a">6</span><span style="color:#81b761">9</span><span style="color:#8abf69">2</span></span></span></a><a href="mailto:alexherlandev@gmail.com" class="direct"><span class="contact-label">Email</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">a</span><span style="color:#2c6818">l</span><span style="color:#316c1c">e</span><span style="color:#357020">x</span><span style="color:#3a7523">h</span><span style="color:#3e7927">e</span><span style="color:#437d2b">r</span><span style="color:#47812f">l</span><span style="color:#4c8533">a</span><span style="color:#508937">n</span><span style="color:#558d3b">d</span><span style="color:#59923e">e</span><span style="color:#5d9642">v</span><span style="color:#629a46">@</span><span style="color:#669e4a">g</span><span style="color:#6ba24e">m</span><span style="color:#6fa652">a</span><span style="color:#74aa56">i</span><span style="color:#78ae5a">l</span><span style="color:#7db35d">.</span><span style="color:#81b761">c</span><span style="color:#86bb65">o</span><span style="color:#8abf69">m</span></span></span></a><a href="https://alex.herlan.dev"><span class="contact-label">Website</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">a</span><span style="color:#2f6a1a">l</span><span style="color:#367120">e</span><span style="color:#3d7826">x</span><span style="color:#447e2c">.</span><span style="color:#4b8432">h</span><span style="color:#528b38">e</span><span style="color:#59923e">r</span><span style="color:#609845">l</span><span style="color:#679e4b">a</span><span style="color:#6ea551">n</span><span style="color:#75ac57">.</span><span style="color:#7cb25d">d</span><span style="color:#83b863">e</span><span style="color:#8abf69">v</span></span></span></a><a href="https://linkedin.com/in/alexander-herlan"><span class="contact-label">Profile</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">L</span><span style="color:#367120">i</span><span style="color:#447e2c">n</span><span style="color:#528b38">k</span><span style="color:#609845">e</span><span style="color:#6ea551">d</span><span style="color:#7cb25d">I</span><span style="color:#8abf69">n</span></span></span></a><a href="https://github.com/AlexanderHerlan"><span class="contact-label">Code</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">G</span><span style="color:#3c7625">i</span><span style="color:#4f8836">t</span><span style="color:#639b47">H</span><span style="color:#76ad58">u</span><span style="color:#8abf69">b</span></span></span></a></nav></div></header><main><section><div class="section-start"><h2>Overview</h2>
<p>Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.</p>
</div><p>Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.</p>
</section><section><div class="section-start"><h2>Experience</h2>
<h3>Independent Software Developer / Freelancer</h3>
</div><p class="dates"><em>June 2024 - Present</em></p>
<p>I develop and support web and Android applications for freelance clients, translating business requirements into working software. My work covers membership administration, automated document workflows, mobile object detection, and integrations with existing systems, from implementation through deployment and client feedback.</p>
<h4>Selected Projects</h4>
<h5>Irish Pensions Management</h5>
<p class="dates"><em>April 2025 - March 2026</em></p>
<ul>
<li>Expanded WordPress landing pages into a PHP and PostgreSQL membership application, working with an agency partner to translate administrative requirements into application workflows.</li>
<li>Implemented individual and organisational applications, qualification checks, annual payments, monthly course-progress reviews, and downloadable PDF certificates.</li>
<li>Built administrative dashboards and automated programme timelines, approved-leave handling, and certificate issuance to replace manual documentation tasks.</li>
</ul>
<p><strong>Technologies:</strong> WordPress, PHP, PostgreSQL</p>
<h5><a href="https://heroeyez.com">HeroEyez</a></h5>
<p class="dates"><em>June 2024 - June 2025</em></p>
<ul>
<li>Built two Android applications in Java and Kotlin and integrated them with the existing .NET HeroEyez portal, connecting device and IP-camera feeds to an incident-response workflow.</li>
<li>Implemented TensorFlow Lite firearm detection, screenshot and video evidence capture, alerts, and a Twilio-powered call workflow. Evaluated YOLO and trained and tested detection models using more than 10,000 images to address mobile hardware constraints.</li>
<li>Completed and deployed the end-to-end workflow in June 2025. Broader commercial rollout was subsequently paused because of market and regulatory constraints.</li>
</ul>
<p><strong>Technologies:</strong> Android, Java, Kotlin, TensorFlow Lite, Twilio, .NET integration</p>
<h3>Covius, LLC / Senior Software Engineer</h3>
<p class="dates"><em>January 2022 - April 2024 · Pompano Beach, FL</em></p>
<p>At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.</p>
<h4>Accomplishments</h4>
<ul>
<li>Contributed to the complete redesign of a major legacy website containing extensive historical data.</li>
<li>Helped manage and adapt a legacy database to support the redesigned platform.</li>
<li>Built a responsive web application frontend for desktop and mobile browsers.</li>
<li>Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.</li>
<li>Developed frontend functionality using Angular and RxJS.</li>
</ul>
<h3>SEAD Software / Software Engineer</h3>
<p class="dates"><em>April 2021 - July 2022 · Delray Beach, FL</em></p>
<p>At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.</p>
<h4>Accomplishments</h4>
<ul>
<li>Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.</li>
<li>Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.</li>
<li>Maintained and implemented Amazon Web Services infrastructure to support multiple projects</li>
<li>Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure</li>
<li>Maintained a large Git code repository for multiple clients</li>
</ul>
<h3>Clarity Diagnostics &amp; Lab Solutions / Director of IT</h3>
<p class="dates"><em>September 2020 - January 2022 · Boca Raton, FL</em></p>
<p>Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.</p>
<h4>Accomplishments</h4>
<ul>
<li>Implemented a physical keycard/badge access security system for the entire laboratory facility</li>
<li>Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365</li>
<li>Maintained client-facing websites</li>
<li>Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment</li>
<li>Managed and instructed other IT staff in their daily responsibilities</li>
</ul>
<h3>MyTap, aka Which Craft / Lead Developer</h3>
<p class="dates"><em>January 2016 - April 2020 · Albuquerque, NM</em></p>
<p>At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.</p>
<h4>Accomplishments</h4>
<ul>
<li>Implemented a robust web scraper in Python using the Scrapy Python library</li>
<li>Created a responsive web application frontend for mobile browsers</li>
<li>Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.</li>
<li>Maintained a Django backend serving data from a PostgreSQL database</li>
</ul>
<h3>TriCore Reference Laboratories / Production Support Specialist</h3>
<p class="dates"><em>April 2013 - January 2017 · Albuquerque, NM</em></p>
<p>Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.</p>
<h4>Accomplishments</h4>
<ul>
<li>Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.</li>
<li>Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.</li>
<li>Guided medical staff through time-sensitive IT troubleshooting affecting patient care.</li>
<li>Monitored critical hospital infrastructure for performance and errors, correcting them promptly.</li>
<li>Trained new help desk employees on their daily tasks and responsibilities</li>
<li>Remained on-call off hours for emergency assistance.</li>
</ul>
<h3>Desert Digital Consulting / Software Engineer, Web Application Developer, IT Consultant</h3>
<p class="dates"><em>October 2010 - January 2021 | Remote</em></p>
<p>Provided freelance services in software development, web design, information technology, and computer hardware design.</p>
</section><section><div class="section-start"><h2>Skills</h2>
<h3>Programming Languages</h3>
</div><p>Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP (WordPress), Java, Kotlin, C, C++, CoffeeScript, HTML5, CSS3, Sass</p>
<h3>Database Technologies</h3>
<ul>
<li><strong>SQL:</strong> Microsoft SQL Server, MySQL Server, PostgreSQL Server</li>
<li><strong>NoSQL:</strong> MongoDB, CouchDB, Redis</li>
<li><strong>Other:</strong> Microsoft Access, Microsoft Excel</li>
</ul>
<h3>Applications</h3>
<ul>
<li><strong>Programming:</strong> Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git</li>
<li><strong>Design:</strong> Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign</li>
<li><strong>Productivity:</strong> Microsoft Office, Google Docs (Drive), WordPerfect Suite</li>
<li><strong>Virtualization:</strong> VMware, VirtualBox, Docker, Kubernetes</li>
</ul>
<h3>Cloud Technologies</h3>
<ul>
<li>Microsoft 365 and Google Workspace Administration</li>
<li>Amazon Web Services (AWS) Administration</li>
<li>Microsoft Azure DevOps Administration</li>
</ul>
<h3>Other</h3>
<ul>
<li>Jira Agile Project Management skills</li>
<li>Responsive web design</li>
<li>Advanced (and remote) Linux administration</li>
<li>Search engine optimization (SEO) for Google and Bing</li>
<li>Social media presence implementation (Facebook, Twitter, Instagram, etc.)</li>
</ul>
</section><section><div class="section-start"><h2>Education</h2>
<h3>University of New Mexico</h3>
</div><p>BS, Computer Science</p>
<p class="dates"><em>September 2003 - September 2008</em></p>
<h4>Certifications</h4>
<ul>
<li>Beginning Programming in C++</li>
<li>Intermediate Programming in C++</li>
<li>Advanced Visual C++</li>
<li>Beginning Visual Basic</li>
<li>Intermediate Visual Basic</li>
</ul>
<h3>Central New Mexico Community College (aka TVI)</h3>
<ul>
<li>Beginning Photoshop</li>
<li>Intermediate Photoshop</li>
<li>Advanced Photoshop</li>
<li>Introduction to Lightwave 3D</li>
</ul>
</section><section><div class="section-start"><h2>References</h2>
<ul class="references"><li><strong>David Foy</strong> · <span>Senior Software Engineer</span> · <span>Covius</span>: <span><a href="tel:+14079541245">407-954-1245</a></span></li><li><strong>Warren Wright</strong> · <span>CEO</span> · <span>SEAD Software</span>: <span><a href="tel:+12019881513">201-988-1513</a></span></li><li><strong>Ashley Park</strong> · <span>Director</span> · <span>Clarity Diagnostics</span>: <span><a href="tel:+15083415387">508-341-5387</a></span></li><li><strong>Douglas Radecki</strong> · <span>CEO</span> · <span>MyTap / Which Craft</span>: <span><a href="tel:+15054004636">505-400-4636</a></span></li></ul></div></section></main></body></html>
-183
View File
@@ -1,183 +0,0 @@
# Alexander Herlan
**Senior Software Engineer · DevOps & IT Manager**
1207 El Portal NW, Albuquerque, NM 87107<br />
[813-402-8692](tel:+18134028692) · [alexherlandev@gmail.com](mailto:alexherlandev@gmail.com) · [alex.herlan.dev](https://alex.herlan.dev) · [LinkedIn](https://linkedin.com/in/alexander-herlan) · [GitHub](https://github.com/AlexanderHerlan)
## Overview
Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.
Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.
## Experience
### Independent Software Developer / Freelancer
*June 2024 - Present*
I develop and support web and Android applications for freelance clients, translating business requirements into working software. My work covers membership administration, automated document workflows, mobile object detection, and integrations with existing systems, from implementation through deployment and client feedback.
#### Selected Projects
##### Irish Pensions Management
*April 2025 - March 2026*
- Expanded WordPress landing pages into a PHP and PostgreSQL membership application, working with an agency partner to translate administrative requirements into application workflows.
- Implemented individual and organisational applications, qualification checks, annual payments, monthly course-progress reviews, and downloadable PDF certificates.
- Built administrative dashboards and automated programme timelines, approved-leave handling, and certificate issuance to replace manual documentation tasks.
**Technologies:** WordPress, PHP, PostgreSQL
##### [HeroEyez](https://heroeyez.com)
*June 2024 - June 2025*
- Built two Android applications in Java and Kotlin and integrated them with the existing .NET HeroEyez portal, connecting device and IP-camera feeds to an incident-response workflow.
- Implemented TensorFlow Lite firearm detection, screenshot and video evidence capture, alerts, and a Twilio-powered call workflow. Evaluated YOLO and trained and tested detection models using more than 10,000 images to address mobile hardware constraints.
- Completed and deployed the end-to-end workflow in June 2025. Broader commercial rollout was subsequently paused because of market and regulatory constraints.
**Technologies:** Android, Java, Kotlin, TensorFlow Lite, Twilio, .NET integration
### Covius, LLC / Senior Software Engineer
*January 2022 - April 2024 · Pompano Beach, FL*
At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.
#### Accomplishments
- Contributed to the complete redesign of a major legacy website containing extensive historical data.
- Helped manage and adapt a legacy database to support the redesigned platform.
- Built a responsive web application frontend for desktop and mobile browsers.
- Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.
- Developed frontend functionality using Angular and RxJS.
### SEAD Software / Software Engineer
*April 2021 - July 2022 · Delray Beach, FL*
At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.
#### Accomplishments
- Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.
- Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.
- Maintained and implemented Amazon Web Services infrastructure to support multiple projects
- Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure
- Maintained a large Git code repository for multiple clients
### Clarity Diagnostics & Lab Solutions / Director of IT
*September 2020 - January 2022 · Boca Raton, FL*
Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.
#### Accomplishments
- Implemented a physical keycard/badge access security system for the entire laboratory facility
- Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365
- Maintained client-facing websites
- Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment
- Managed and instructed other IT staff in their daily responsibilities
### MyTap, aka Which Craft / Lead Developer
*January 2016 - April 2020 · Albuquerque, NM*
At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.
#### Accomplishments
- Implemented a robust web scraper in Python using the Scrapy Python library
- Created a responsive web application frontend for mobile browsers
- Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.
- Maintained a Django backend serving data from a PostgreSQL database
### TriCore Reference Laboratories / Production Support Specialist
*April 2013 - January 2017 · Albuquerque, NM*
Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.
#### Accomplishments
- Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.
- Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.
- Guided medical staff through time-sensitive IT troubleshooting affecting patient care.
- Monitored critical hospital infrastructure for performance and errors, correcting them promptly.
- Trained new help desk employees on their daily tasks and responsibilities
- Remained on-call off hours for emergency assistance.
### Desert Digital Consulting / Software Engineer, Web Application Developer, IT Consultant
*October 2010 - January 2021 | Remote*
Provided freelance services in software development, web design, information technology, and computer hardware design.
## Skills
### Programming Languages
Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP (WordPress), Java, Kotlin, C, C++, CoffeeScript, HTML5, CSS3, Sass
### Database Technologies
- **SQL:** Microsoft SQL Server, MySQL Server, PostgreSQL Server
- **NoSQL:** MongoDB, CouchDB, Redis
- **Other:** Microsoft Access, Microsoft Excel
### Applications
- **Programming:** Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git
- **Design:** Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign
- **Productivity:** Microsoft Office, Google Docs (Drive), WordPerfect Suite
- **Virtualization:** VMware, VirtualBox, Docker, Kubernetes
### Cloud Technologies
- Microsoft 365 and Google Workspace Administration
- Amazon Web Services (AWS) Administration
- Microsoft Azure DevOps Administration
### Other
- Jira Agile Project Management skills
- Responsive web design
- Advanced (and remote) Linux administration
- Search engine optimization (SEO) for Google and Bing
- Social media presence implementation (Facebook, Twitter, Instagram, etc.)
## Education
### University of New Mexico
BS, Computer Science
*September 2003 - September 2008*
#### Certifications
- Beginning Programming in C++
- Intermediate Programming in C++
- Advanced Visual C++
- Beginning Visual Basic
- Intermediate Visual Basic
### Central New Mexico Community College (aka TVI)
- Beginning Photoshop
- Intermediate Photoshop
- Advanced Photoshop
- Introduction to Lightwave 3D
## References
| Name | Role | Organization | Phone |
| --- | --- | --- | --- |
| David Foy | Senior Software Engineer | Covius | [407-954-1245](tel:+14079541245) |
| Warren Wright | CEO | SEAD Software | [201-988-1513](tel:+12019881513) |
| Ashley Park | Director | Clarity Diagnostics | [508-341-5387](tel:+15083415387) |
| Douglas Radecki | CEO | MyTap / Which Craft | [505-400-4636](tel:+15054004636) |
Binary file not shown.
Binary file not shown.
-167
View File
@@ -1,167 +0,0 @@
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="source-sha256" content="e622b60b73611c2e232ea07dbbe82b1586cb3836f1f681e907eb0f214efbcca3"><meta name="resume-layout" content="autofill"><title>Alexander Herlan | Resume</title><style>
@page { size: Letter; margin: 40pt 43pt; }
* { box-sizing: border-box; }
body { max-width: 612pt; margin: 24px auto; padding: 40pt 43pt;
color: #111; background: white; font: 10.5pt/1.18 Arial, sans-serif; }
h1 { font-size: 22pt; margin: 0 0 6pt; }
h2 { font-size: 12pt; margin: 10pt 0 6pt; border-bottom: 1pt solid #777;
padding-bottom: 3pt; }
h3 { font-size: 11pt; margin: 6pt 0 3pt; }
h4, h5, h6 { font-size: 10.5pt; margin: 7pt 0 3pt; }
h1, h2, h3, h4, h5, h6 { break-after: avoid; }
p { margin: 0 0 3pt; orphans: 2; widows: 2; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 15pt; margin: 4pt 0 8pt; }
li { margin-bottom: 1.5pt; break-inside: avoid; }
li:has(> ul), li:has(> ol) { break-inside: auto; }
li > p:has(+ ul), li > p:has(+ ol) { break-after: avoid; }
.job-heading { break-inside: avoid; break-after: avoid; }
.job-heading p { margin-bottom: 2pt; }
em { font-style: italic; }
.dates, em.dates { color: #555; font-size: 9pt; font-style: normal; }
@media print { body { max-width: none; margin: 0; padding: 0; } }
</style></head><body><main><h1>Alexander Herlan</h1>
<p><strong>Senior Software Engineer | DevOps &amp; IT Manager</strong></p>
<p>1207 El Portal NW, Albuquerque, NM 87107</p>
<p>Phone: <a href="tel:+18134028692">813-402-8692</a></p>
<p>Email: <a href="mailto:alexherlandev@gmail.com">alexherlandev@gmail.com</a></p>
<p>Website: <a href="https://alex.herlan.dev">https://alex.herlan.dev</a></p>
<p>LinkedIn: <a href="https://linkedin.com/in/alexander-herlan">https://linkedin.com/in/alexander-herlan</a></p>
<p>GitHub: <a href="https://github.com/AlexanderHerlan">https://github.com/AlexanderHerlan</a></p>
<h2>Professional Summary</h2>
<p>Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.</p>
<p>Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.</p>
<h2>Work Experience</h2>
<div class="job-heading"><h3>Software Developer / Freelancer</h3>
<p><em>Self-employed</em></p>
<p>Remote</p>
<p class="dates"><em class="dates">June 2024 - Present</em></p>
</div><p>I develop and support web and Android applications for freelance clients, translating business requirements into working software. My work covers membership administration, automated document workflows, mobile object detection, and integrations with existing systems, from implementation through deployment and client feedback.</p>
<ul>
<li>
<p>Developed Irish Pensions Management as a freelance client project with an agency partner, expanding WordPress landing pages into a PHP/PostgreSQL membership application. Implemented individual and organisational applications, qualification checks, annual payments, course-progress reviews, administrative dashboards, and PDF certificates. Automated programme timelines, approved-leave handling, and certificate issuance.</p>
</li>
<li>
<p>Built two Java/Kotlin Android applications for the HeroEyez freelance client project and integrated them with its existing .NET portal. Implemented TensorFlow Lite firearm detection from device and IP-camera feeds, screenshot and video evidence capture, alerts, and a Twilio call workflow. Evaluated YOLO and trained and tested detection models using more than 10,000 images. Deployed the complete workflow in June 2025; broader rollout was later paused because of market and regulatory constraints.</p>
</li>
</ul>
<div class="job-heading"><h3>Senior Software Engineer</h3>
<p><em>Covius, LLC</em></p>
<p>Pompano Beach, FL</p>
<p class="dates"><em class="dates">January 2022 - April 2024</em></p>
</div><p>At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.</p>
<ul>
<li>Contributed to the complete redesign of a major legacy website containing extensive historical data.</li>
<li>Helped manage and adapt a legacy database to support the redesigned platform.</li>
<li>Built a responsive web application frontend for desktop and mobile browsers.</li>
<li>Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.</li>
<li>Developed frontend functionality using Angular and RxJS.</li>
</ul>
<div class="job-heading"><h3>Software Engineer</h3>
<p><em>SEAD Software</em></p>
<p>Delray Beach, FL</p>
<p class="dates"><em class="dates">April 2021 - July 2022</em></p>
</div><p>At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.</p>
<ul>
<li>Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.</li>
<li>Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.</li>
<li>Maintained and implemented Amazon Web Services infrastructure to support multiple projects</li>
<li>Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure</li>
<li>Maintained a large Git code repository for multiple clients</li>
</ul>
<div class="job-heading"><h3>Director of IT</h3>
<p><em>Clarity Diagnostics &amp; Lab Solutions</em></p>
<p>Boca Raton, FL</p>
<p class="dates"><em class="dates">September 2020 - January 2022</em></p>
</div><p>Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.</p>
<ul>
<li>Implemented a physical keycard/badge access security system for the entire laboratory facility</li>
<li>Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365</li>
<li>Maintained client-facing websites</li>
<li>Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment</li>
<li>Managed and instructed other IT staff in their daily responsibilities</li>
</ul>
<div class="job-heading"><h3>Lead Developer</h3>
<p><em>MyTap, aka Which Craft</em></p>
<p>Albuquerque, NM</p>
<p class="dates"><em class="dates">January 2016 - April 2020</em></p>
</div><p>At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.</p>
<ul>
<li>Implemented a robust web scraper in Python using the Scrapy Python library</li>
<li>Created a responsive web application frontend for mobile browsers</li>
<li>Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.</li>
<li>Maintained a Django backend serving data from a PostgreSQL database</li>
</ul>
<div class="job-heading"><h3>Production Support Specialist</h3>
<p><em>TriCore Reference Laboratories</em></p>
<p>Albuquerque, NM</p>
<p class="dates"><em class="dates">April 2013 - January 2017</em></p>
</div><p>Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.</p>
<ul>
<li>Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.</li>
<li>Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.</li>
<li>Guided medical staff through time-sensitive IT troubleshooting affecting patient care.</li>
<li>Monitored critical hospital infrastructure for performance and errors, correcting them promptly.</li>
<li>Trained new help desk employees on their daily tasks and responsibilities</li>
<li>Remained on-call off hours for emergency assistance.</li>
</ul>
<div class="job-heading"><h3>Software Engineer, Web Application Developer, IT Consultant</h3>
<p><em>Desert Digital Consulting</em></p>
<p>Remote</p>
<p class="dates"><em class="dates">October 2010 - January 2021</em></p>
</div><p>Provided freelance services in software development, web design, information technology, and computer hardware design.</p>
<h2>Technical Skills</h2>
<h3>Programming Languages</h3>
<p>Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP (WordPress), Java, Kotlin, C, C++, CoffeeScript, HTML5, CSS3, Sass</p>
<h3>Database Technologies</h3>
<ul>
<li><strong>SQL:</strong> Microsoft SQL Server, MySQL Server, PostgreSQL Server</li>
<li><strong>NoSQL:</strong> MongoDB, CouchDB, Redis</li>
<li><strong>Other:</strong> Microsoft Access, Microsoft Excel</li>
</ul>
<h3>Applications</h3>
<ul>
<li><strong>Programming:</strong> Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git</li>
<li><strong>Design:</strong> Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign</li>
<li><strong>Productivity:</strong> Microsoft Office, Google Docs (Drive), WordPerfect Suite</li>
<li><strong>Virtualization:</strong> VMware, VirtualBox, Docker, Kubernetes</li>
</ul>
<h3>Cloud Technologies</h3>
<ul>
<li>Microsoft 365 and Google Workspace Administration</li>
<li>Amazon Web Services (AWS) Administration</li>
<li>Microsoft Azure DevOps Administration</li>
</ul>
<h3>Other</h3>
<ul>
<li>Jira Agile Project Management skills</li>
<li>Responsive web design</li>
<li>Advanced (and remote) Linux administration</li>
<li>Search engine optimization (SEO) for Google and Bing</li>
<li>Social media presence implementation (Facebook, Twitter, Instagram, etc.)</li>
</ul>
<h2>Education</h2>
<div class="job-heading"><h3><em>University of New Mexico</em></h3>
<p>BS, Computer Science</p>
<p class="dates"><em class="dates">September 2003 - September 2008</em></p>
</div><h4>Certifications</h4>
<ul>
<li>Beginning Programming in C++</li>
<li>Intermediate Programming in C++</li>
<li>Advanced Visual C++</li>
<li>Beginning Visual Basic</li>
<li>Intermediate Visual Basic</li>
</ul>
<h3><em>Central New Mexico Community College (aka TVI)</em></h3>
<ul>
<li>Beginning Photoshop</li>
<li>Intermediate Photoshop</li>
<li>Advanced Photoshop</li>
<li>Introduction to Lightwave 3D</li>
</ul>
<h2>References</h2>
<p><strong>David Foy</strong> | Senior Software Engineer | <em>Covius</em> | <a href="tel:+14079541245">407-954-1245</a></p>
<p><strong>Warren Wright</strong> | CEO | <em>SEAD Software</em> | <a href="tel:+12019881513">201-988-1513</a></p>
<p><strong>Ashley Park</strong> | Director | <em>Clarity Diagnostics</em> | <a href="tel:+15083415387">508-341-5387</a></p>
<p><strong>Douglas Radecki</strong> | CEO | <em>MyTap / Which Craft</em> | <a href="tel:+15054004636">505-400-4636</a></p></main></body></html>
-193
View File
@@ -1,193 +0,0 @@
# Alexander Herlan
**Senior Software Engineer | DevOps & IT Manager**
1207 El Portal NW, Albuquerque, NM 87107
Phone: [813-402-8692](tel:+18134028692)
Email: [alexherlandev@gmail.com](mailto:alexherlandev@gmail.com)
Website: [https://alex.herlan.dev](https://alex.herlan.dev)
LinkedIn: [https://linkedin.com/in/alexander-herlan](https://linkedin.com/in/alexander-herlan)
GitHub: [https://github.com/AlexanderHerlan](https://github.com/AlexanderHerlan)
## Professional Summary
Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.
Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.
## Work Experience
### Software Developer / Freelancer
*Self-employed*
Remote
*June 2024 - Present*
I develop and support web and Android applications for freelance clients, translating business requirements into working software. My work covers membership administration, automated document workflows, mobile object detection, and integrations with existing systems, from implementation through deployment and client feedback.
- Developed Irish Pensions Management as a freelance client project with an agency partner, expanding WordPress landing pages into a PHP/PostgreSQL membership application. Implemented individual and organisational applications, qualification checks, annual payments, course-progress reviews, administrative dashboards, and PDF certificates. Automated programme timelines, approved-leave handling, and certificate issuance.
- Built two Java/Kotlin Android applications for the HeroEyez freelance client project and integrated them with its existing .NET portal. Implemented TensorFlow Lite firearm detection from device and IP-camera feeds, screenshot and video evidence capture, alerts, and a Twilio call workflow. Evaluated YOLO and trained and tested detection models using more than 10,000 images. Deployed the complete workflow in June 2025; broader rollout was later paused because of market and regulatory constraints.
### Senior Software Engineer
*Covius, LLC*
Pompano Beach, FL
*January 2022 - April 2024*
At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.
- Contributed to the complete redesign of a major legacy website containing extensive historical data.
- Helped manage and adapt a legacy database to support the redesigned platform.
- Built a responsive web application frontend for desktop and mobile browsers.
- Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.
- Developed frontend functionality using Angular and RxJS.
### Software Engineer
*SEAD Software*
Delray Beach, FL
*April 2021 - July 2022*
At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.
- Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.
- Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.
- Maintained and implemented Amazon Web Services infrastructure to support multiple projects
- Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure
- Maintained a large Git code repository for multiple clients
### Director of IT
*Clarity Diagnostics & Lab Solutions*
Boca Raton, FL
*September 2020 - January 2022*
Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.
- Implemented a physical keycard/badge access security system for the entire laboratory facility
- Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365
- Maintained client-facing websites
- Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment
- Managed and instructed other IT staff in their daily responsibilities
### Lead Developer
*MyTap, aka Which Craft*
Albuquerque, NM
*January 2016 - April 2020*
At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.
- Implemented a robust web scraper in Python using the Scrapy Python library
- Created a responsive web application frontend for mobile browsers
- Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.
- Maintained a Django backend serving data from a PostgreSQL database
### Production Support Specialist
*TriCore Reference Laboratories*
Albuquerque, NM
*April 2013 - January 2017*
Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.
- Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.
- Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.
- Guided medical staff through time-sensitive IT troubleshooting affecting patient care.
- Monitored critical hospital infrastructure for performance and errors, correcting them promptly.
- Trained new help desk employees on their daily tasks and responsibilities
- Remained on-call off hours for emergency assistance.
### Software Engineer, Web Application Developer, IT Consultant
*Desert Digital Consulting*
Remote
*October 2010 - January 2021*
Provided freelance services in software development, web design, information technology, and computer hardware design.
## Technical Skills
### Programming Languages
Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP (WordPress), Java, Kotlin, C, C++, CoffeeScript, HTML5, CSS3, Sass
### Database Technologies
- **SQL:** Microsoft SQL Server, MySQL Server, PostgreSQL Server
- **NoSQL:** MongoDB, CouchDB, Redis
- **Other:** Microsoft Access, Microsoft Excel
### Applications
- **Programming:** Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git
- **Design:** Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign
- **Productivity:** Microsoft Office, Google Docs (Drive), WordPerfect Suite
- **Virtualization:** VMware, VirtualBox, Docker, Kubernetes
### Cloud Technologies
- Microsoft 365 and Google Workspace Administration
- Amazon Web Services (AWS) Administration
- Microsoft Azure DevOps Administration
### Other
- Jira Agile Project Management skills
- Responsive web design
- Advanced (and remote) Linux administration
- Search engine optimization (SEO) for Google and Bing
- Social media presence implementation (Facebook, Twitter, Instagram, etc.)
## Education
### *University of New Mexico*
BS, Computer Science
*September 2003 - September 2008*
#### Certifications
- Beginning Programming in C++
- Intermediate Programming in C++
- Advanced Visual C++
- Beginning Visual Basic
- Intermediate Visual Basic
### *Central New Mexico Community College (aka TVI)*
- Beginning Photoshop
- Intermediate Photoshop
- Advanced Photoshop
- Introduction to Lightwave 3D
## References
**David Foy** | Senior Software Engineer | *Covius* | [407-954-1245](tel:+14079541245)
**Warren Wright** | CEO | *SEAD Software* | [201-988-1513](tel:+12019881513)
**Ashley Park** | Director | *Clarity Diagnostics* | [508-341-5387](tel:+15083415387)
**Douglas Radecki** | CEO | *MyTap / Which Craft* | [505-400-4636](tel:+15054004636)
Binary file not shown.
-206
View File
@@ -1,206 +0,0 @@
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="source-sha256" content="86c77883382c39f8eae1ec264bf5d7236a91f4f6b17785006712de4f8859bc29"><meta name="resume-layout" content="original"><title>Alexander Herlan | Resume</title><style>
@page { size: Letter; margin: 50pt 55.5pt 50pt 57.75pt; }
* { box-sizing: border-box; }
html { background: #e8e8e8; }
body {
width: 612pt; margin: 24px auto; padding: 50pt 55.5pt 50pt 57.75pt;
background: white; color: #111; font: 10pt/1.2 Lato, Arial, sans-serif;
-webkit-print-color-adjust: exact; print-color-adjust: exact;
}
header { display: grid; grid-template-columns: 166.5pt 1fr; gap: 18pt;
min-height: 124pt; break-inside: avoid; }
h1, h2, h3, h5, .contact-name { font-family: Raleway, Arial, sans-serif; }
h1 { font-size: 24pt; line-height: 1.16; margin: 0 0 5pt; }
.subtitle { font-size: 16pt; font-weight: bold; line-height: 1.2;
color: #38761d; margin: 0; }
.subtitle > span { display: block; }
.gradient-word { white-space: nowrap; }
.contact { border-top: 3pt solid #000; padding-top: 9pt; }
.contact-name { font-size: 12pt; font-weight: bold; margin: 0 0 3pt; }
.contact p { margin: 0 0 7pt; }
.contact-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 9pt 10pt; margin-top: 10pt; }
.contact-grid a { grid-column: span 2; display: block; min-width: 0;
border-left: 2pt solid #d6e7cb; padding-left: 7pt; font-size: 9pt;
line-height: 1.3; }
.contact-grid a.direct { grid-column: span 3; }
.contact-label { display: block; color: #72796d; font-size: 7pt;
letter-spacing: .8pt; text-transform: uppercase; margin-bottom: 2pt; }
.contact-value { display: inline-block; }
a { color: #38761d; text-decoration: none; overflow-wrap: anywhere; }
section { margin: 0 0 18pt 184.5pt; }
.section-start { display: grid; grid-template-columns: 166.5pt minmax(0, 1fr);
column-gap: 18pt; margin-left: -184.5pt; break-inside: avoid; break-after: avoid; }
.section-start > h2 + * { border-top: 3pt solid #000; padding-top: 10pt; }
h2 { width: 166.5pt;
font-size: 12pt; line-height: 1.2; margin: 0; }
h2::before { content: ''; display: block; width: 12pt;
border-top: 1.5pt solid #111; margin-bottom: 12pt; }
h3 { font-size: 12pt; line-height: 1.2; margin: 16pt 0 4pt; }
.section-start > h3 { margin-top: 0; }
h4 { color: #666; font-size: 10pt; margin: 8pt 0 4pt; }
h5, h6 { color: #38761d; font-size: 11pt; margin: 12pt 0 4pt; }
h3, h4, h5, h6 { break-after: avoid; }
p { margin: 0 0 6pt; orphans: 3; widows: 3; }
p.dates { color: #666; font-size: 9pt; text-transform: uppercase;
margin-bottom: 8pt; break-after: avoid; }
p.dates em { font-style: normal; }
ul, ol { margin: 4pt 0 8pt; padding-left: 35pt; }
li { padding-left: 0; margin-bottom: 2pt; orphans: 2; widows: 2; break-inside: avoid; }
li > p { margin-bottom: 2pt; }
.references { list-style: none; padding: 0; }
.references li { margin-bottom: 6pt; break-inside: avoid; }
table { width: 100%; border-collapse: collapse; font-size: 9pt; }
th, td { text-align: left; vertical-align: top; padding: 4pt;
border-bottom: 1px solid #ddd; overflow-wrap: anywhere; }
tr { break-inside: avoid; }
img { max-width: 100%; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media print {
html { background: white; }
body { width: auto; margin: 0; padding: 0; }
}
</style></head><body><header><div><h1>Alexander Herlan</h1>
<p class="subtitle"><span><span class="gradient-word"><span style="color:#286414">S</span><span style="color:#2c6818">e</span><span style="color:#316c1b">n</span><span style="color:#35701f">i</span><span style="color:#397423">o</span><span style="color:#3d7826">r</span></span> <span class="gradient-word"><span style="color:#46802e">S</span><span style="color:#4a8432">o</span><span style="color:#4e8835">f</span><span style="color:#538c39">t</span><span style="color:#57903d">w</span><span style="color:#5b9340">a</span><span style="color:#5f9744">r</span><span style="color:#649b48">e</span></span> <span class="gradient-word"><span style="color:#6ca34f">E</span><span style="color:#70a753">n</span><span style="color:#75ab57">g</span><span style="color:#79af5a">i</span><span style="color:#7db35e">n</span><span style="color:#81b762">e</span><span style="color:#86bb65">e</span><span style="color:#8abf69">r</span></span></span><span><span class="gradient-word"><span style="color:#286414">D</span><span style="color:#2d6919">e</span><span style="color:#336e1d">v</span><span style="color:#387322">O</span><span style="color:#3e7827">p</span><span style="color:#437d2c">s</span></span> <span class="gradient-word"><span style="color:#4e8735">&amp;</span></span> <span class="gradient-word"><span style="color:#59923e">I</span><span style="color:#5e9743">T</span></span> <span class="gradient-word"><span style="color:#69a14d">M</span><span style="color:#6fa651">a</span><span style="color:#74ab56">n</span><span style="color:#7ab05b">a</span><span style="color:#7fb560">g</span><span style="color:#85ba64">e</span><span style="color:#8abf69">r</span></span></span></p></div><div class="contact"><p class="contact-name">Alexander Herlan</p><p>1207 El Portal NW, Albuquerque, NM 87107</p>
<nav class="contact-grid" aria-label="Contact and social links"><a href="tel:+18134028692" class="direct"><span class="contact-label">Phone</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">8</span><span style="color:#316c1c">1</span><span style="color:#3a7523">3</span><span style="color:#437d2b">-</span><span style="color:#4c8533">4</span><span style="color:#558d3b">0</span><span style="color:#5d9642">2</span><span style="color:#669e4a">-</span><span style="color:#6fa652">8</span><span style="color:#78ae5a">6</span><span style="color:#81b761">9</span><span style="color:#8abf69">2</span></span></span></a><a href="mailto:alexherlandev@gmail.com" class="direct"><span class="contact-label">Email</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">a</span><span style="color:#2c6818">l</span><span style="color:#316c1c">e</span><span style="color:#357020">x</span><span style="color:#3a7523">h</span><span style="color:#3e7927">e</span><span style="color:#437d2b">r</span><span style="color:#47812f">l</span><span style="color:#4c8533">a</span><span style="color:#508937">n</span><span style="color:#558d3b">d</span><span style="color:#59923e">e</span><span style="color:#5d9642">v</span><span style="color:#629a46">@</span><span style="color:#669e4a">g</span><span style="color:#6ba24e">m</span><span style="color:#6fa652">a</span><span style="color:#74aa56">i</span><span style="color:#78ae5a">l</span><span style="color:#7db35d">.</span><span style="color:#81b761">c</span><span style="color:#86bb65">o</span><span style="color:#8abf69">m</span></span></span></a><a href="https://alex.herlan.dev"><span class="contact-label">Website</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">a</span><span style="color:#2f6a1a">l</span><span style="color:#367120">e</span><span style="color:#3d7826">x</span><span style="color:#447e2c">.</span><span style="color:#4b8432">h</span><span style="color:#528b38">e</span><span style="color:#59923e">r</span><span style="color:#609845">l</span><span style="color:#679e4b">a</span><span style="color:#6ea551">n</span><span style="color:#75ac57">.</span><span style="color:#7cb25d">d</span><span style="color:#83b863">e</span><span style="color:#8abf69">v</span></span></span></a><a href="https://linkedin.com/in/alexander-herlan"><span class="contact-label">Profile</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">L</span><span style="color:#367120">i</span><span style="color:#447e2c">n</span><span style="color:#528b38">k</span><span style="color:#609845">e</span><span style="color:#6ea551">d</span><span style="color:#7cb25d">I</span><span style="color:#8abf69">n</span></span></span></a><a href="https://github.com/AlexanderHerlan"><span class="contact-label">Code</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">G</span><span style="color:#3c7625">i</span><span style="color:#4f8836">t</span><span style="color:#639b47">H</span><span style="color:#76ad58">u</span><span style="color:#8abf69">b</span></span></span></a></nav></div></header><main><section><div class="section-start"><h2>Overview</h2>
<p>Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.</p>
</div><p>Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.</p>
</section><section><div class="section-start"><h2>Experience</h2>
<h3>Independent Software Developer / Freelancer</h3>
</div><p class="dates"><em>June 2024 - Present</em></p>
<p>I develop and support web and Android applications for freelance clients, translating business requirements into working software. My work covers membership administration, e-commerce, automated document workflows, mobile object detection, and integrations with existing systems, from implementation through deployment, client feedback, and ongoing maintenance.</p>
<h4>Selected Projects</h4>
<h5>Irish Pension Management</h5>
<p class="dates"><em>April 2025 - March 2026</em></p>
<ul>
<li>Expanded WordPress landing pages into a PHP and PostgreSQL membership application, working with an agency partner to translate administrative requirements into application workflows.</li>
<li>Implemented individual and organisational applications, qualification checks, annual payments, monthly course-progress reviews, and downloadable PDF certificates.</li>
<li>Built administrative dashboards and automated programme timelines, approved-leave handling, and certificate issuance to replace manual documentation tasks.</li>
</ul>
<p><strong>Technologies:</strong> WordPress, PHP, PostgreSQL</p>
<h5><a href="https://heroeyez.com">HeroEyez</a></h5>
<p class="dates"><em>June 2024 - June 2025</em></p>
<ul>
<li>Built two Android applications in Java and Kotlin and integrated them with the existing .NET HeroEyez portal, connecting device and IP-camera feeds to an incident-response workflow.</li>
<li>Implemented TensorFlow Lite firearm detection, screenshot and video evidence capture, alerts, and a Twilio-powered call workflow. Evaluated YOLO and trained and tested detection models using more than 10,000 images to address mobile hardware constraints.</li>
<li>Completed and deployed the end-to-end workflow in June 2025. Broader commercial rollout was subsequently paused because of market and regulatory constraints.</li>
</ul>
<p><strong>Technologies:</strong> Android, Java, Kotlin, TensorFlow Lite, Twilio, .NET integration</p>
<h5><a href="https://jamesandjamesfurniture.com/">James &amp; James Furniture</a></h5>
<p class="dates"><em>Original build: 2017; occasional maintenance ongoing</em></p>
<ul>
<li>Designed and developed the original e-commerce website in 2017 using WordPress and WooCommerce, customizing the theme to reflect the client's brand and creating responsive layouts for desktop and mobile shoppers.</li>
<li>Implemented product catalogs and galleries, customer reviews, inventory management, promotional discounts, shipping calculators, payment gateway integrations, and a streamlined checkout process.</li>
<li>Improved page loading through caching and image compression. Continue to provide occasional website maintenance and updates.</li>
</ul>
<p><strong>Technologies:</strong> WordPress, WooCommerce, PHP, responsive web design</p>
<h3>Covius, LLC / Senior Software Engineer</h3>
<p class="dates"><em>January 2022 - April 2024 · Pompano Beach, FL</em></p>
<p>At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.</p>
<h4>Accomplishments</h4>
<ul>
<li>Contributed to the complete redesign of a major legacy website containing extensive historical data.</li>
<li>Helped manage and adapt a legacy database to support the redesigned platform.</li>
<li>Built a responsive web application frontend for desktop and mobile browsers.</li>
<li>Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.</li>
<li>Developed frontend functionality using Angular and RxJS.</li>
</ul>
<h3>SEAD Software / Software Engineer</h3>
<p class="dates"><em>April 2021 - July 2022 · Delray Beach, FL</em></p>
<p>At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.</p>
<h4>Accomplishments</h4>
<ul>
<li>Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.</li>
<li>Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.</li>
<li>Maintained and implemented Amazon Web Services infrastructure to support multiple projects</li>
<li>Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure</li>
<li>Maintained a large Git code repository for multiple clients</li>
</ul>
<h3>Clarity Diagnostics &amp; Lab Solutions / Director of IT</h3>
<p class="dates"><em>September 2020 - January 2022 · Boca Raton, FL</em></p>
<p>Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.</p>
<h4>Accomplishments</h4>
<ul>
<li>Implemented a physical keycard/badge access security system for the entire laboratory facility</li>
<li>Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365</li>
<li>Maintained client-facing websites</li>
<li>Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment</li>
<li>Managed and instructed other IT staff in their daily responsibilities</li>
</ul>
<h3>MyTap, aka Which Craft / Lead Developer</h3>
<p class="dates"><em>January 2016 - April 2020 · Albuquerque, NM</em></p>
<p>At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.</p>
<h4>Accomplishments</h4>
<ul>
<li>Implemented a robust web scraper in Python using the Scrapy Python library</li>
<li>Created a responsive web application frontend for mobile browsers</li>
<li>Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.</li>
<li>Maintained a Django backend serving data from a PostgreSQL database</li>
</ul>
<h3>TriCore Reference Laboratories / Production Support Specialist</h3>
<p class="dates"><em>April 2013 - January 2017 · Albuquerque, NM</em></p>
<p>Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.</p>
<h4>Accomplishments</h4>
<ul>
<li>Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.</li>
<li>Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.</li>
<li>Guided medical staff through time-sensitive IT troubleshooting affecting patient care.</li>
<li>Monitored critical hospital infrastructure for performance and errors, correcting them promptly.</li>
<li>Trained new help desk employees on their daily tasks and responsibilities</li>
<li>Remained on-call off hours for emergency assistance.</li>
</ul>
<h3>Desert Digital Consulting / Software Engineer, Web Application Developer, IT Consultant</h3>
<p class="dates"><em>October 2010 - January 2021 | Remote</em></p>
<p>Provided freelance services in software development, web design, information technology, and computer hardware design.</p>
</section><section><div class="section-start"><h2>Skills</h2>
<h3>Programming Languages</h3>
</div><p>Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP (WordPress, WooCommerce), Java, Kotlin, C, C++, CoffeeScript, HTML5, CSS3, Sass</p>
<h3>Database Technologies</h3>
<ul>
<li><strong>SQL:</strong> Microsoft SQL Server, MySQL Server, PostgreSQL Server</li>
<li><strong>NoSQL:</strong> MongoDB, CouchDB, Redis</li>
<li><strong>Other:</strong> Microsoft Access, Microsoft Excel</li>
</ul>
<h3>Applications</h3>
<ul>
<li><strong>Programming:</strong> Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git</li>
<li><strong>Design:</strong> Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign</li>
<li><strong>Productivity:</strong> Microsoft Office, Google Docs (Drive), WordPerfect Suite</li>
<li><strong>Virtualization:</strong> VMware, VirtualBox, Docker, Kubernetes</li>
</ul>
<h3>Cloud Technologies</h3>
<ul>
<li>Microsoft 365 and Google Workspace Administration</li>
<li>Amazon Web Services (AWS) Administration</li>
<li>Microsoft Azure DevOps Administration</li>
</ul>
<h3>Other</h3>
<ul>
<li>Jira Agile Project Management skills</li>
<li>Responsive web design</li>
<li>Advanced (and remote) Linux administration</li>
<li>Search engine optimization (SEO) for Google and Bing</li>
<li>Social media presence implementation (Facebook, Twitter, Instagram, etc.)</li>
</ul>
</section><section><div class="section-start"><h2>Education</h2>
<h3>University of New Mexico</h3>
</div><p>BS, Computer Science</p>
<p class="dates"><em>September 2003 - September 2008</em></p>
<h4>Certifications</h4>
<ul>
<li>Beginning Programming in C++</li>
<li>Intermediate Programming in C++</li>
<li>Advanced Visual C++</li>
<li>Beginning Visual Basic</li>
<li>Intermediate Visual Basic</li>
</ul>
<h3>Central New Mexico Community College (aka TVI)</h3>
<ul>
<li>Beginning Photoshop</li>
<li>Intermediate Photoshop</li>
<li>Advanced Photoshop</li>
<li>Introduction to Lightwave 3D</li>
</ul>
</section><section><div class="section-start"><h2>References</h2>
<ul class="references"><li><strong>David Foy</strong> · <span>Senior Software Engineer</span> · <span>Covius</span>: <span><a href="tel:+14079541245">407-954-1245</a></span></li><li><strong>Warren Wright</strong> · <span>CEO</span> · <span>SEAD Software</span>: <span><a href="tel:+12019881513">201-988-1513</a></span></li><li><strong>Ashley Park</strong> · <span>Director</span> · <span>Clarity Diagnostics</span>: <span><a href="tel:+15083415387">508-341-5387</a></span></li><li><strong>Douglas Radecki</strong> · <span>CEO</span> · <span>MyTap / Which Craft</span>: <span><a href="tel:+15054004636">505-400-4636</a></span></li></ul></div></section></main></body></html>
-193
View File
@@ -1,193 +0,0 @@
# Alexander Herlan
**Senior Software Engineer · DevOps & IT Manager**
1207 El Portal NW, Albuquerque, NM 87107<br />
[813-402-8692](tel:+18134028692) · [alexherlandev@gmail.com](mailto:alexherlandev@gmail.com) · [alex.herlan.dev](https://alex.herlan.dev) · [LinkedIn](https://linkedin.com/in/alexander-herlan) · [GitHub](https://github.com/AlexanderHerlan)
## Overview
Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.
Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.
## Experience
### Independent Software Developer / Freelancer
*June 2024 - Present*
I develop and support web and Android applications for freelance clients, translating business requirements into working software. My work covers membership administration, e-commerce, automated document workflows, mobile object detection, and integrations with existing systems, from implementation through deployment, client feedback, and ongoing maintenance.
#### Selected Projects
##### Irish Pension Management
*April 2025 - March 2026*
- Expanded WordPress landing pages into a PHP and PostgreSQL membership application, working with an agency partner to translate administrative requirements into application workflows.
- Implemented individual and organisational applications, qualification checks, annual payments, monthly course-progress reviews, and downloadable PDF certificates.
- Built administrative dashboards and automated programme timelines, approved-leave handling, and certificate issuance to replace manual documentation tasks.
**Technologies:** WordPress, PHP, PostgreSQL
##### [HeroEyez](https://heroeyez.com)
*June 2024 - June 2025*
- Built two Android applications in Java and Kotlin and integrated them with the existing .NET HeroEyez portal, connecting device and IP-camera feeds to an incident-response workflow.
- Implemented TensorFlow Lite firearm detection, screenshot and video evidence capture, alerts, and a Twilio-powered call workflow. Evaluated YOLO and trained and tested detection models using more than 10,000 images to address mobile hardware constraints.
- Completed and deployed the end-to-end workflow in June 2025. Broader commercial rollout was subsequently paused because of market and regulatory constraints.
**Technologies:** Android, Java, Kotlin, TensorFlow Lite, Twilio, .NET integration
##### [James & James Furniture](https://jamesandjamesfurniture.com/)
*Original build: 2017; occasional maintenance ongoing*
- Designed and developed the original e-commerce website in 2017 using WordPress and WooCommerce, customizing the theme to reflect the client's brand and creating responsive layouts for desktop and mobile shoppers.
- Implemented product catalogs and galleries, customer reviews, inventory management, promotional discounts, shipping calculators, payment gateway integrations, and a streamlined checkout process.
- Improved page loading through caching and image compression. Continue to provide occasional website maintenance and updates.
**Technologies:** WordPress, WooCommerce, PHP, responsive web design
### Covius, LLC / Senior Software Engineer
*January 2022 - April 2024 · Pompano Beach, FL*
At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.
#### Accomplishments
- Contributed to the complete redesign of a major legacy website containing extensive historical data.
- Helped manage and adapt a legacy database to support the redesigned platform.
- Built a responsive web application frontend for desktop and mobile browsers.
- Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.
- Developed frontend functionality using Angular and RxJS.
### SEAD Software / Software Engineer
*April 2021 - July 2022 · Delray Beach, FL*
At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.
#### Accomplishments
- Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.
- Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.
- Maintained and implemented Amazon Web Services infrastructure to support multiple projects
- Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure
- Maintained a large Git code repository for multiple clients
### Clarity Diagnostics & Lab Solutions / Director of IT
*September 2020 - January 2022 · Boca Raton, FL*
Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.
#### Accomplishments
- Implemented a physical keycard/badge access security system for the entire laboratory facility
- Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365
- Maintained client-facing websites
- Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment
- Managed and instructed other IT staff in their daily responsibilities
### MyTap, aka Which Craft / Lead Developer
*January 2016 - April 2020 · Albuquerque, NM*
At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.
#### Accomplishments
- Implemented a robust web scraper in Python using the Scrapy Python library
- Created a responsive web application frontend for mobile browsers
- Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.
- Maintained a Django backend serving data from a PostgreSQL database
### TriCore Reference Laboratories / Production Support Specialist
*April 2013 - January 2017 · Albuquerque, NM*
Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.
#### Accomplishments
- Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.
- Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.
- Guided medical staff through time-sensitive IT troubleshooting affecting patient care.
- Monitored critical hospital infrastructure for performance and errors, correcting them promptly.
- Trained new help desk employees on their daily tasks and responsibilities
- Remained on-call off hours for emergency assistance.
### Desert Digital Consulting / Software Engineer, Web Application Developer, IT Consultant
*October 2010 - January 2021 | Remote*
Provided freelance services in software development, web design, information technology, and computer hardware design.
## Skills
### Programming Languages
Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP (WordPress, WooCommerce), Java, Kotlin, C, C++, CoffeeScript, HTML5, CSS3, Sass
### Database Technologies
- **SQL:** Microsoft SQL Server, MySQL Server, PostgreSQL Server
- **NoSQL:** MongoDB, CouchDB, Redis
- **Other:** Microsoft Access, Microsoft Excel
### Applications
- **Programming:** Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git
- **Design:** Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign
- **Productivity:** Microsoft Office, Google Docs (Drive), WordPerfect Suite
- **Virtualization:** VMware, VirtualBox, Docker, Kubernetes
### Cloud Technologies
- Microsoft 365 and Google Workspace Administration
- Amazon Web Services (AWS) Administration
- Microsoft Azure DevOps Administration
### Other
- Jira Agile Project Management skills
- Responsive web design
- Advanced (and remote) Linux administration
- Search engine optimization (SEO) for Google and Bing
- Social media presence implementation (Facebook, Twitter, Instagram, etc.)
## Education
### University of New Mexico
BS, Computer Science
*September 2003 - September 2008*
#### Certifications
- Beginning Programming in C++
- Intermediate Programming in C++
- Advanced Visual C++
- Beginning Visual Basic
- Intermediate Visual Basic
### Central New Mexico Community College (aka TVI)
- Beginning Photoshop
- Intermediate Photoshop
- Advanced Photoshop
- Introduction to Lightwave 3D
## References
| Name | Role | Organization | Phone |
| --- | --- | --- | --- |
| David Foy | Senior Software Engineer | Covius | [407-954-1245](tel:+14079541245) |
| Warren Wright | CEO | SEAD Software | [201-988-1513](tel:+12019881513) |
| Ashley Park | Director | Clarity Diagnostics | [508-341-5387](tel:+15083415387) |
| Douglas Radecki | CEO | MyTap / Which Craft | [505-400-4636](tel:+15054004636) |
Binary file not shown.
Binary file not shown.
-170
View File
@@ -1,170 +0,0 @@
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="source-sha256" content="4691448f54f474f91280f84b00b0633ec552737064634b4811800e474b03bf39"><meta name="resume-layout" content="autofill"><title>Alexander Herlan | Resume</title><style>
@page { size: Letter; margin: 40pt 43pt; }
* { box-sizing: border-box; }
body { max-width: 612pt; margin: 24px auto; padding: 40pt 43pt;
color: #111; background: white; font: 10.5pt/1.18 Arial, sans-serif; }
h1 { font-size: 22pt; margin: 0 0 6pt; }
h2 { font-size: 12pt; margin: 10pt 0 6pt; border-bottom: 1pt solid #777;
padding-bottom: 3pt; }
h3 { font-size: 11pt; margin: 6pt 0 3pt; }
h4, h5, h6 { font-size: 10.5pt; margin: 7pt 0 3pt; }
h1, h2, h3, h4, h5, h6 { break-after: avoid; }
p { margin: 0 0 3pt; orphans: 2; widows: 2; }
a { color: inherit; text-decoration: none; }
ul, ol { padding-left: 15pt; margin: 4pt 0 8pt; }
li { margin-bottom: 1.5pt; break-inside: avoid; }
li:has(> ul), li:has(> ol) { break-inside: auto; }
li > p:has(+ ul), li > p:has(+ ol) { break-after: avoid; }
.job-heading { break-inside: avoid; break-after: avoid; }
.job-heading p { margin-bottom: 2pt; }
em { font-style: italic; }
.dates, em.dates { color: #555; font-size: 9pt; font-style: normal; }
@media print { body { max-width: none; margin: 0; padding: 0; } }
</style></head><body><main><h1>Alexander Herlan</h1>
<p><strong>Senior Software Engineer | DevOps &amp; IT Manager</strong></p>
<p>1207 El Portal NW, Albuquerque, NM 87107</p>
<p>Phone: <a href="tel:+18134028692">813-402-8692</a></p>
<p>Email: <a href="mailto:alexherlandev@gmail.com">alexherlandev@gmail.com</a></p>
<p>Website: <a href="https://alex.herlan.dev">https://alex.herlan.dev</a></p>
<p>LinkedIn: <a href="https://linkedin.com/in/alexander-herlan">https://linkedin.com/in/alexander-herlan</a></p>
<p>GitHub: <a href="https://github.com/AlexanderHerlan">https://github.com/AlexanderHerlan</a></p>
<h2>Professional Summary</h2>
<p>Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.</p>
<p>Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.</p>
<h2>Work Experience</h2>
<div class="job-heading"><h3>Software Developer / Freelancer</h3>
<p><em>Self-employed</em></p>
<p>Remote</p>
<p class="dates"><em class="dates">June 2024 - Present</em></p>
</div><p>I develop and support web and Android applications for freelance clients, translating business requirements into working software. My work covers membership administration, e-commerce, automated document workflows, mobile object detection, and integrations with existing systems, from implementation through deployment, client feedback, and ongoing maintenance.</p>
<ul>
<li>
<p>Developed Irish Pension Management as a freelance client project with an agency partner, expanding WordPress landing pages into a PHP/PostgreSQL membership application. Implemented individual and organisational applications, qualification checks, annual payments, course-progress reviews, administrative dashboards, and PDF certificates. Automated programme timelines, approved-leave handling, and certificate issuance.</p>
</li>
<li>
<p>Built two Java/Kotlin Android applications for the HeroEyez freelance client project and integrated them with its existing .NET portal. Implemented TensorFlow Lite firearm detection from device and IP-camera feeds, screenshot and video evidence capture, alerts, and a Twilio call workflow. Evaluated YOLO and trained and tested detection models using more than 10,000 images. Deployed the complete workflow in June 2025; broader rollout was later paused because of market and regulatory constraints.</p>
</li>
<li>
<p>Provide occasional website maintenance and updates for James &amp; James Furniture, whose original WordPress and WooCommerce store I designed and developed in 2017. Customized a branded, responsive theme and implemented product catalogs, galleries, customer reviews, inventory management, promotional discounts, shipping calculators, payment gateway integrations, and checkout. Improved page loading through caching and image compression.</p>
</li>
</ul>
<div class="job-heading"><h3>Senior Software Engineer</h3>
<p><em>Covius, LLC</em></p>
<p>Pompano Beach, FL</p>
<p class="dates"><em class="dates">January 2022 - April 2024</em></p>
</div><p>At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.</p>
<ul>
<li>Contributed to the complete redesign of a major legacy website containing extensive historical data.</li>
<li>Helped manage and adapt a legacy database to support the redesigned platform.</li>
<li>Built a responsive web application frontend for desktop and mobile browsers.</li>
<li>Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.</li>
<li>Developed frontend functionality using Angular and RxJS.</li>
</ul>
<div class="job-heading"><h3>Software Engineer</h3>
<p><em>SEAD Software</em></p>
<p>Delray Beach, FL</p>
<p class="dates"><em class="dates">April 2021 - July 2022</em></p>
</div><p>At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.</p>
<ul>
<li>Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.</li>
<li>Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.</li>
<li>Maintained and implemented Amazon Web Services infrastructure to support multiple projects</li>
<li>Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure</li>
<li>Maintained a large Git code repository for multiple clients</li>
</ul>
<div class="job-heading"><h3>Director of IT</h3>
<p><em>Clarity Diagnostics &amp; Lab Solutions</em></p>
<p>Boca Raton, FL</p>
<p class="dates"><em class="dates">September 2020 - January 2022</em></p>
</div><p>Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.</p>
<ul>
<li>Implemented a physical keycard/badge access security system for the entire laboratory facility</li>
<li>Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365</li>
<li>Maintained client-facing websites</li>
<li>Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment</li>
<li>Managed and instructed other IT staff in their daily responsibilities</li>
</ul>
<div class="job-heading"><h3>Lead Developer</h3>
<p><em>MyTap, aka Which Craft</em></p>
<p>Albuquerque, NM</p>
<p class="dates"><em class="dates">January 2016 - April 2020</em></p>
</div><p>At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.</p>
<ul>
<li>Implemented a robust web scraper in Python using the Scrapy Python library</li>
<li>Created a responsive web application frontend for mobile browsers</li>
<li>Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.</li>
<li>Maintained a Django backend serving data from a PostgreSQL database</li>
</ul>
<div class="job-heading"><h3>Production Support Specialist</h3>
<p><em>TriCore Reference Laboratories</em></p>
<p>Albuquerque, NM</p>
<p class="dates"><em class="dates">April 2013 - January 2017</em></p>
</div><p>Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.</p>
<ul>
<li>Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.</li>
<li>Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.</li>
<li>Guided medical staff through time-sensitive IT troubleshooting affecting patient care.</li>
<li>Monitored critical hospital infrastructure for performance and errors, correcting them promptly.</li>
<li>Trained new help desk employees on their daily tasks and responsibilities</li>
<li>Remained on-call off hours for emergency assistance.</li>
</ul>
<div class="job-heading"><h3>Software Engineer, Web Application Developer, IT Consultant</h3>
<p><em>Desert Digital Consulting</em></p>
<p>Remote</p>
<p class="dates"><em class="dates">October 2010 - January 2021</em></p>
</div><p>Provided freelance services in software development, web design, information technology, and computer hardware design.</p>
<h2>Technical Skills</h2>
<h3>Programming Languages</h3>
<p>Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP (WordPress, WooCommerce), Java, Kotlin, C, C++, CoffeeScript, HTML5, CSS3, Sass</p>
<h3>Database Technologies</h3>
<ul>
<li><strong>SQL:</strong> Microsoft SQL Server, MySQL Server, PostgreSQL Server</li>
<li><strong>NoSQL:</strong> MongoDB, CouchDB, Redis</li>
<li><strong>Other:</strong> Microsoft Access, Microsoft Excel</li>
</ul>
<h3>Applications</h3>
<ul>
<li><strong>Programming:</strong> Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git</li>
<li><strong>Design:</strong> Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign</li>
<li><strong>Productivity:</strong> Microsoft Office, Google Docs (Drive), WordPerfect Suite</li>
<li><strong>Virtualization:</strong> VMware, VirtualBox, Docker, Kubernetes</li>
</ul>
<h3>Cloud Technologies</h3>
<ul>
<li>Microsoft 365 and Google Workspace Administration</li>
<li>Amazon Web Services (AWS) Administration</li>
<li>Microsoft Azure DevOps Administration</li>
</ul>
<h3>Other</h3>
<ul>
<li>Jira Agile Project Management skills</li>
<li>Responsive web design</li>
<li>Advanced (and remote) Linux administration</li>
<li>Search engine optimization (SEO) for Google and Bing</li>
<li>Social media presence implementation (Facebook, Twitter, Instagram, etc.)</li>
</ul>
<h2>Education</h2>
<div class="job-heading"><h3><em>University of New Mexico</em></h3>
<p>BS, Computer Science</p>
<p class="dates"><em class="dates">September 2003 - September 2008</em></p>
</div><h4>Certifications</h4>
<ul>
<li>Beginning Programming in C++</li>
<li>Intermediate Programming in C++</li>
<li>Advanced Visual C++</li>
<li>Beginning Visual Basic</li>
<li>Intermediate Visual Basic</li>
</ul>
<h3><em>Central New Mexico Community College (aka TVI)</em></h3>
<ul>
<li>Beginning Photoshop</li>
<li>Intermediate Photoshop</li>
<li>Advanced Photoshop</li>
<li>Introduction to Lightwave 3D</li>
</ul>
<h2>References</h2>
<p><strong>David Foy</strong> | Senior Software Engineer | <em>Covius</em> | <a href="tel:+14079541245">407-954-1245</a></p>
<p><strong>Warren Wright</strong> | CEO | <em>SEAD Software</em> | <a href="tel:+12019881513">201-988-1513</a></p>
<p><strong>Ashley Park</strong> | Director | <em>Clarity Diagnostics</em> | <a href="tel:+15083415387">508-341-5387</a></p>
<p><strong>Douglas Radecki</strong> | CEO | <em>MyTap / Which Craft</em> | <a href="tel:+15054004636">505-400-4636</a></p></main></body></html>
-195
View File
@@ -1,195 +0,0 @@
# Alexander Herlan
**Senior Software Engineer | DevOps & IT Manager**
1207 El Portal NW, Albuquerque, NM 87107
Phone: [813-402-8692](tel:+18134028692)
Email: [alexherlandev@gmail.com](mailto:alexherlandev@gmail.com)
Website: [https://alex.herlan.dev](https://alex.herlan.dev)
LinkedIn: [https://linkedin.com/in/alexander-herlan](https://linkedin.com/in/alexander-herlan)
GitHub: [https://github.com/AlexanderHerlan](https://github.com/AlexanderHerlan)
## Professional Summary
Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.
Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.
## Work Experience
### Software Developer / Freelancer
*Self-employed*
Remote
*June 2024 - Present*
I develop and support web and Android applications for freelance clients, translating business requirements into working software. My work covers membership administration, e-commerce, automated document workflows, mobile object detection, and integrations with existing systems, from implementation through deployment, client feedback, and ongoing maintenance.
- Developed Irish Pension Management as a freelance client project with an agency partner, expanding WordPress landing pages into a PHP/PostgreSQL membership application. Implemented individual and organisational applications, qualification checks, annual payments, course-progress reviews, administrative dashboards, and PDF certificates. Automated programme timelines, approved-leave handling, and certificate issuance.
- Built two Java/Kotlin Android applications for the HeroEyez freelance client project and integrated them with its existing .NET portal. Implemented TensorFlow Lite firearm detection from device and IP-camera feeds, screenshot and video evidence capture, alerts, and a Twilio call workflow. Evaluated YOLO and trained and tested detection models using more than 10,000 images. Deployed the complete workflow in June 2025; broader rollout was later paused because of market and regulatory constraints.
- Provide occasional website maintenance and updates for James & James Furniture, whose original WordPress and WooCommerce store I designed and developed in 2017. Customized a branded, responsive theme and implemented product catalogs, galleries, customer reviews, inventory management, promotional discounts, shipping calculators, payment gateway integrations, and checkout. Improved page loading through caching and image compression.
### Senior Software Engineer
*Covius, LLC*
Pompano Beach, FL
*January 2022 - April 2024*
At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.
- Contributed to the complete redesign of a major legacy website containing extensive historical data.
- Helped manage and adapt a legacy database to support the redesigned platform.
- Built a responsive web application frontend for desktop and mobile browsers.
- Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.
- Developed frontend functionality using Angular and RxJS.
### Software Engineer
*SEAD Software*
Delray Beach, FL
*April 2021 - July 2022*
At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.
- Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.
- Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.
- Maintained and implemented Amazon Web Services infrastructure to support multiple projects
- Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure
- Maintained a large Git code repository for multiple clients
### Director of IT
*Clarity Diagnostics & Lab Solutions*
Boca Raton, FL
*September 2020 - January 2022*
Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.
- Implemented a physical keycard/badge access security system for the entire laboratory facility
- Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365
- Maintained client-facing websites
- Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment
- Managed and instructed other IT staff in their daily responsibilities
### Lead Developer
*MyTap, aka Which Craft*
Albuquerque, NM
*January 2016 - April 2020*
At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.
- Implemented a robust web scraper in Python using the Scrapy Python library
- Created a responsive web application frontend for mobile browsers
- Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.
- Maintained a Django backend serving data from a PostgreSQL database
### Production Support Specialist
*TriCore Reference Laboratories*
Albuquerque, NM
*April 2013 - January 2017*
Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.
- Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.
- Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.
- Guided medical staff through time-sensitive IT troubleshooting affecting patient care.
- Monitored critical hospital infrastructure for performance and errors, correcting them promptly.
- Trained new help desk employees on their daily tasks and responsibilities
- Remained on-call off hours for emergency assistance.
### Software Engineer, Web Application Developer, IT Consultant
*Desert Digital Consulting*
Remote
*October 2010 - January 2021*
Provided freelance services in software development, web design, information technology, and computer hardware design.
## Technical Skills
### Programming Languages
Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP (WordPress, WooCommerce), Java, Kotlin, C, C++, CoffeeScript, HTML5, CSS3, Sass
### Database Technologies
- **SQL:** Microsoft SQL Server, MySQL Server, PostgreSQL Server
- **NoSQL:** MongoDB, CouchDB, Redis
- **Other:** Microsoft Access, Microsoft Excel
### Applications
- **Programming:** Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git
- **Design:** Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign
- **Productivity:** Microsoft Office, Google Docs (Drive), WordPerfect Suite
- **Virtualization:** VMware, VirtualBox, Docker, Kubernetes
### Cloud Technologies
- Microsoft 365 and Google Workspace Administration
- Amazon Web Services (AWS) Administration
- Microsoft Azure DevOps Administration
### Other
- Jira Agile Project Management skills
- Responsive web design
- Advanced (and remote) Linux administration
- Search engine optimization (SEO) for Google and Bing
- Social media presence implementation (Facebook, Twitter, Instagram, etc.)
## Education
### *University of New Mexico*
BS, Computer Science
*September 2003 - September 2008*
#### Certifications
- Beginning Programming in C++
- Intermediate Programming in C++
- Advanced Visual C++
- Beginning Visual Basic
- Intermediate Visual Basic
### *Central New Mexico Community College (aka TVI)*
- Beginning Photoshop
- Intermediate Photoshop
- Advanced Photoshop
- Introduction to Lightwave 3D
## References
**David Foy** | Senior Software Engineer | *Covius* | [407-954-1245](tel:+14079541245)
**Warren Wright** | CEO | *SEAD Software* | [201-988-1513](tel:+12019881513)
**Ashley Park** | Director | *Clarity Diagnostics* | [508-341-5387](tel:+15083415387)
**Douglas Radecki** | CEO | *MyTap / Which Craft* | [505-400-4636](tel:+15054004636)
Binary file not shown.
-206
View File
@@ -1,206 +0,0 @@
<!doctype html>
<html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><meta name="source-sha256" content="254ce48eec8aa82fdfc793fb7eab1f5eae4817baebcb14cd90f6a23f89e16874"><meta name="resume-layout" content="original"><title>Alexander Herlan | Resume</title><style>
@page { size: Letter; margin: 50pt 55.5pt 50pt 57.75pt; }
* { box-sizing: border-box; }
html { background: #e8e8e8; }
body {
width: 612pt; margin: 24px auto; padding: 50pt 55.5pt 50pt 57.75pt;
background: white; color: #111; font: 10pt/1.2 Lato, Arial, sans-serif;
-webkit-print-color-adjust: exact; print-color-adjust: exact;
}
header { display: grid; grid-template-columns: 166.5pt 1fr; gap: 18pt;
min-height: 124pt; break-inside: avoid; }
h1, h2, h3, h5, .contact-name { font-family: Raleway, Arial, sans-serif; }
h1 { font-size: 24pt; line-height: 1.16; margin: 0 0 5pt; }
.subtitle { font-size: 16pt; font-weight: bold; line-height: 1.2;
color: #38761d; margin: 0; }
.subtitle > span { display: block; }
.gradient-word { white-space: nowrap; }
.contact { border-top: 3pt solid #000; padding-top: 9pt; }
.contact-name { font-size: 12pt; font-weight: bold; margin: 0 0 3pt; }
.contact p { margin: 0 0 7pt; }
.contact-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
gap: 9pt 10pt; margin-top: 10pt; }
.contact-grid a { grid-column: span 2; display: block; min-width: 0;
border-left: 2pt solid #d6e7cb; padding-left: 7pt; font-size: 9pt;
line-height: 1.3; }
.contact-grid a.direct { grid-column: span 3; }
.contact-label { display: block; color: #72796d; font-size: 7pt;
letter-spacing: .8pt; text-transform: uppercase; margin-bottom: 2pt; }
.contact-value { display: inline-block; }
a { color: #38761d; text-decoration: none; overflow-wrap: anywhere; }
section { margin: 0 0 18pt 184.5pt; }
.section-start { display: grid; grid-template-columns: 166.5pt minmax(0, 1fr);
column-gap: 18pt; margin-left: -184.5pt; break-inside: avoid; break-after: avoid; }
.section-start > h2 + * { border-top: 3pt solid #000; padding-top: 10pt; }
h2 { width: 166.5pt;
font-size: 12pt; line-height: 1.2; margin: 0; }
h2::before { content: ''; display: block; width: 12pt;
border-top: 1.5pt solid #111; margin-bottom: 12pt; }
h3 { font-size: 12pt; line-height: 1.2; margin: 16pt 0 4pt; }
.section-start > h3 { margin-top: 0; }
h4 { color: #666; font-size: 10pt; margin: 8pt 0 4pt; }
h5, h6 { color: #38761d; font-size: 11pt; margin: 12pt 0 4pt; }
h3, h4, h5, h6 { break-after: avoid; }
p { margin: 0 0 6pt; orphans: 3; widows: 3; }
p.dates { color: #666; font-size: 9pt; text-transform: uppercase;
margin-bottom: 8pt; break-after: avoid; }
p.dates em { font-style: normal; }
ul, ol { margin: 4pt 0 8pt; padding-left: 35pt; }
li { padding-left: 0; margin-bottom: 2pt; orphans: 2; widows: 2; break-inside: avoid; }
li > p { margin-bottom: 2pt; }
.references { list-style: none; padding: 0; }
.references li { margin-bottom: 6pt; break-inside: avoid; }
table { width: 100%; border-collapse: collapse; font-size: 9pt; }
th, td { text-align: left; vertical-align: top; padding: 4pt;
border-bottom: 1px solid #ddd; overflow-wrap: anywhere; }
tr { break-inside: avoid; }
img { max-width: 100%; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media print {
html { background: white; }
body { width: auto; margin: 0; padding: 0; }
}
</style></head><body><header><div><h1>Alexander Herlan</h1>
<p class="subtitle"><span><span class="gradient-word"><span style="color:#286414">S</span><span style="color:#2c6818">e</span><span style="color:#316c1b">n</span><span style="color:#35701f">i</span><span style="color:#397423">o</span><span style="color:#3d7826">r</span></span> <span class="gradient-word"><span style="color:#46802e">S</span><span style="color:#4a8432">o</span><span style="color:#4e8835">f</span><span style="color:#538c39">t</span><span style="color:#57903d">w</span><span style="color:#5b9340">a</span><span style="color:#5f9744">r</span><span style="color:#649b48">e</span></span> <span class="gradient-word"><span style="color:#6ca34f">E</span><span style="color:#70a753">n</span><span style="color:#75ab57">g</span><span style="color:#79af5a">i</span><span style="color:#7db35e">n</span><span style="color:#81b762">e</span><span style="color:#86bb65">e</span><span style="color:#8abf69">r</span></span></span><span><span class="gradient-word"><span style="color:#286414">D</span><span style="color:#2d6919">e</span><span style="color:#336e1d">v</span><span style="color:#387322">O</span><span style="color:#3e7827">p</span><span style="color:#437d2c">s</span></span> <span class="gradient-word"><span style="color:#4e8735">&amp;</span></span> <span class="gradient-word"><span style="color:#59923e">I</span><span style="color:#5e9743">T</span></span> <span class="gradient-word"><span style="color:#69a14d">M</span><span style="color:#6fa651">a</span><span style="color:#74ab56">n</span><span style="color:#7ab05b">a</span><span style="color:#7fb560">g</span><span style="color:#85ba64">e</span><span style="color:#8abf69">r</span></span></span></p></div><div class="contact"><p class="contact-name">Alexander Herlan</p><p>1207 El Portal NW, Albuquerque, NM 87107</p>
<nav class="contact-grid" aria-label="Contact and social links"><a href="tel:+18134028692" class="direct"><span class="contact-label">Phone</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">8</span><span style="color:#316c1c">1</span><span style="color:#3a7523">3</span><span style="color:#437d2b">-</span><span style="color:#4c8533">4</span><span style="color:#558d3b">0</span><span style="color:#5d9642">2</span><span style="color:#669e4a">-</span><span style="color:#6fa652">8</span><span style="color:#78ae5a">6</span><span style="color:#81b761">9</span><span style="color:#8abf69">2</span></span></span></a><a href="mailto:alexherlandev@gmail.com" class="direct"><span class="contact-label">Email</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">a</span><span style="color:#2c6818">l</span><span style="color:#316c1c">e</span><span style="color:#357020">x</span><span style="color:#3a7523">h</span><span style="color:#3e7927">e</span><span style="color:#437d2b">r</span><span style="color:#47812f">l</span><span style="color:#4c8533">a</span><span style="color:#508937">n</span><span style="color:#558d3b">d</span><span style="color:#59923e">e</span><span style="color:#5d9642">v</span><span style="color:#629a46">@</span><span style="color:#669e4a">g</span><span style="color:#6ba24e">m</span><span style="color:#6fa652">a</span><span style="color:#74aa56">i</span><span style="color:#78ae5a">l</span><span style="color:#7db35d">.</span><span style="color:#81b761">c</span><span style="color:#86bb65">o</span><span style="color:#8abf69">m</span></span></span></a><a href="https://alex.herlan.dev"><span class="contact-label">Website</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">a</span><span style="color:#2f6a1a">l</span><span style="color:#367120">e</span><span style="color:#3d7826">x</span><span style="color:#447e2c">.</span><span style="color:#4b8432">h</span><span style="color:#528b38">e</span><span style="color:#59923e">r</span><span style="color:#609845">l</span><span style="color:#679e4b">a</span><span style="color:#6ea551">n</span><span style="color:#75ac57">.</span><span style="color:#7cb25d">d</span><span style="color:#83b863">e</span><span style="color:#8abf69">v</span></span></span></a><a href="https://linkedin.com/in/alexander-herlan"><span class="contact-label">Profile</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">L</span><span style="color:#367120">i</span><span style="color:#447e2c">n</span><span style="color:#528b38">k</span><span style="color:#609845">e</span><span style="color:#6ea551">d</span><span style="color:#7cb25d">I</span><span style="color:#8abf69">n</span></span></span></a><a href="https://github.com/AlexanderHerlan"><span class="contact-label">Code</span><span class="contact-value"><span class="gradient-word"><span style="color:#286414">G</span><span style="color:#3c7625">i</span><span style="color:#4f8836">t</span><span style="color:#639b47">H</span><span style="color:#76ad58">u</span><span style="color:#8abf69">b</span></span></span></a></nav></div></header><main><section><div class="section-start"><h2>Overview</h2>
<p>Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.</p>
</div><p>Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.</p>
</section><section><div class="section-start"><h2>Experience</h2>
<h3>Independent Software Developer / Freelancer</h3>
</div><p class="dates"><em>2017 - Present</em></p>
<p>I develop and support web and Android applications for freelance clients, translating business requirements into working software. My work covers membership administration, e-commerce, automated document workflows, mobile object detection, and integrations with existing systems, from implementation through deployment, client feedback, and ongoing maintenance.</p>
<h4>Selected Projects</h4>
<h5>Irish Pension Management</h5>
<p class="dates"><em>April 2025 - March 2026</em></p>
<ul>
<li>Expanded WordPress landing pages into a PHP and PostgreSQL membership application, working with an agency partner to translate administrative requirements into application workflows.</li>
<li>Implemented individual and organisational applications, qualification checks, annual payments, monthly course-progress reviews, and downloadable PDF certificates.</li>
<li>Built administrative dashboards and automated programme timelines, approved-leave handling, and certificate issuance to replace manual documentation tasks.</li>
</ul>
<p><strong>Technologies:</strong> WordPress, PHP, PostgreSQL</p>
<h5><a href="https://heroeyez.com">HeroEyez</a></h5>
<p class="dates"><em>June 2024 - June 2025</em></p>
<ul>
<li>Built two Android applications in Java and Kotlin and integrated them with the existing .NET HeroEyez portal, connecting device and IP-camera feeds to an incident-response workflow.</li>
<li>Implemented TensorFlow Lite firearm detection, screenshot and video evidence capture, alerts, and a Twilio-powered call workflow. Evaluated YOLO and trained and tested detection models using more than 10,000 images to address mobile hardware constraints.</li>
<li>Completed and deployed the end-to-end workflow in June 2025. Broader commercial rollout was subsequently paused because of market and regulatory constraints.</li>
</ul>
<p><strong>Technologies:</strong> Android, Java, Kotlin, TensorFlow Lite, Twilio, .NET integration</p>
<h5><a href="https://jamesandjamesfurniture.com/">James &amp; James Furniture</a></h5>
<p class="dates"><em>Original build: 2017; occasional maintenance ongoing</em></p>
<ul>
<li>Designed and developed the original e-commerce website in 2017 using WordPress and WooCommerce, customizing the theme to reflect the client's brand and creating responsive layouts for desktop and mobile shoppers.</li>
<li>Implemented product catalogs and galleries, customer reviews, inventory management, promotional discounts, shipping calculators, payment gateway integrations, and a streamlined checkout process.</li>
<li>Improved page loading through caching and image compression. Continue to provide occasional website maintenance and updates.</li>
</ul>
<p><strong>Technologies:</strong> WordPress, WooCommerce, PHP, responsive web design</p>
<h3>Covius, LLC / Senior Software Engineer</h3>
<p class="dates"><em>January 2022 - April 2024 · Pompano Beach, FL</em></p>
<p>At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.</p>
<h4>Accomplishments</h4>
<ul>
<li>Contributed to the complete redesign of a major legacy website containing extensive historical data.</li>
<li>Helped manage and adapt a legacy database to support the redesigned platform.</li>
<li>Built a responsive web application frontend for desktop and mobile browsers.</li>
<li>Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.</li>
<li>Developed frontend functionality using Angular and RxJS.</li>
</ul>
<h3>SEAD Software / Software Engineer</h3>
<p class="dates"><em>April 2021 - July 2022 · Delray Beach, FL</em></p>
<p>At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.</p>
<h4>Accomplishments</h4>
<ul>
<li>Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.</li>
<li>Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.</li>
<li>Maintained and implemented Amazon Web Services infrastructure to support multiple projects</li>
<li>Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure</li>
<li>Maintained a large Git code repository for multiple clients</li>
</ul>
<h3>Clarity Diagnostics &amp; Lab Solutions / Director of IT</h3>
<p class="dates"><em>September 2020 - January 2022 · Boca Raton, FL</em></p>
<p>Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.</p>
<h4>Accomplishments</h4>
<ul>
<li>Implemented a physical keycard/badge access security system for the entire laboratory facility</li>
<li>Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365</li>
<li>Maintained client-facing websites</li>
<li>Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment</li>
<li>Managed and instructed other IT staff in their daily responsibilities</li>
</ul>
<h3>MyTap, aka Which Craft / Lead Developer</h3>
<p class="dates"><em>January 2016 - April 2020 · Albuquerque, NM</em></p>
<p>At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.</p>
<h4>Accomplishments</h4>
<ul>
<li>Implemented a robust web scraper in Python using the Scrapy Python library</li>
<li>Created a responsive web application frontend for mobile browsers</li>
<li>Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.</li>
<li>Maintained a Django backend serving data from a PostgreSQL database</li>
</ul>
<h3>TriCore Reference Laboratories / Production Support Specialist</h3>
<p class="dates"><em>April 2013 - January 2017 · Albuquerque, NM</em></p>
<p>Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.</p>
<h4>Accomplishments</h4>
<ul>
<li>Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.</li>
<li>Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.</li>
<li>Guided medical staff through time-sensitive IT troubleshooting affecting patient care.</li>
<li>Monitored critical hospital infrastructure for performance and errors, correcting them promptly.</li>
<li>Trained new help desk employees on their daily tasks and responsibilities</li>
<li>Remained on-call off hours for emergency assistance.</li>
</ul>
<h3>Desert Digital Consulting / Software Engineer, Web Application Developer, IT Consultant</h3>
<p class="dates"><em>October 2010 - January 2021 | Remote</em></p>
<p>Provided freelance services in software development, web design, information technology, and computer hardware design.</p>
</section><section><div class="section-start"><h2>Skills</h2>
<h3>Programming Languages</h3>
</div><p>Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP (WordPress, WooCommerce), Java, Kotlin, C, C++, CoffeeScript, HTML5, CSS3, Sass</p>
<h3>Database Technologies</h3>
<ul>
<li><strong>SQL:</strong> Microsoft SQL Server, MySQL Server, PostgreSQL Server</li>
<li><strong>NoSQL:</strong> MongoDB, CouchDB, Redis</li>
<li><strong>Other:</strong> Microsoft Access, Microsoft Excel</li>
</ul>
<h3>Applications</h3>
<ul>
<li><strong>Programming:</strong> Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git</li>
<li><strong>Design:</strong> Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign</li>
<li><strong>Productivity:</strong> Microsoft Office, Google Docs (Drive), WordPerfect Suite</li>
<li><strong>Virtualization:</strong> VMware, VirtualBox, Docker, Kubernetes</li>
</ul>
<h3>Cloud Technologies</h3>
<ul>
<li>Microsoft 365 and Google Workspace Administration</li>
<li>Amazon Web Services (AWS) Administration</li>
<li>Microsoft Azure DevOps Administration</li>
</ul>
<h3>Other</h3>
<ul>
<li>Jira Agile Project Management skills</li>
<li>Responsive web design</li>
<li>Advanced (and remote) Linux administration</li>
<li>Search engine optimization (SEO) for Google and Bing</li>
<li>Social media presence implementation (Facebook, Twitter, Instagram, etc.)</li>
</ul>
</section><section><div class="section-start"><h2>Education</h2>
<h3>University of New Mexico</h3>
</div><p>BS, Computer Science</p>
<p class="dates"><em>September 2003 - September 2008</em></p>
<h4>Certifications</h4>
<ul>
<li>Beginning Programming in C++</li>
<li>Intermediate Programming in C++</li>
<li>Advanced Visual C++</li>
<li>Beginning Visual Basic</li>
<li>Intermediate Visual Basic</li>
</ul>
<h3>Central New Mexico Community College (aka TVI)</h3>
<ul>
<li>Beginning Photoshop</li>
<li>Intermediate Photoshop</li>
<li>Advanced Photoshop</li>
<li>Introduction to Lightwave 3D</li>
</ul>
</section><section><div class="section-start"><h2>References</h2>
<ul class="references"><li><strong>David Foy</strong> · <span>Senior Software Engineer</span> · <span>Covius</span>: <span><a href="tel:+14079541245">407-954-1245</a></span></li><li><strong>Warren Wright</strong> · <span>CEO</span> · <span>SEAD Software</span>: <span><a href="tel:+12019881513">201-988-1513</a></span></li><li><strong>Ashley Park</strong> · <span>Director</span> · <span>Clarity Diagnostics</span>: <span><a href="tel:+15083415387">508-341-5387</a></span></li><li><strong>Douglas Radecki</strong> · <span>CEO</span> · <span>MyTap / Which Craft</span>: <span><a href="tel:+15054004636">505-400-4636</a></span></li></ul></div></section></main></body></html>
-193
View File
@@ -1,193 +0,0 @@
# Alexander Herlan
**Senior Software Engineer · DevOps & IT Manager**
1207 El Portal NW, Albuquerque, NM 87107<br />
[813-402-8692](tel:+18134028692) · [alexherlandev@gmail.com](mailto:alexherlandev@gmail.com) · [alex.herlan.dev](https://alex.herlan.dev) · [LinkedIn](https://linkedin.com/in/alexander-herlan) · [GitHub](https://github.com/AlexanderHerlan)
## Overview
Senior software engineer with over 27 years of hands-on technology experience spanning software engineering, web design, database engineering, IT management, computer repair, and user experience design. My primary focus is full-stack web application development with Python and JavaScript.
Through professional roles, freelance work, and side projects, I have expanded my skills in DevOps, Docker, Kubernetes, cloud deployment, and resource management. I continue to explore Web3 and emerging technologies, and I am seeking a software engineering role where I can build reliable applications and contribute across the development lifecycle.
## Experience
### Independent Software Developer / Freelancer
*2017 - Present*
I develop and support web and Android applications for freelance clients, translating business requirements into working software. My work covers membership administration, e-commerce, automated document workflows, mobile object detection, and integrations with existing systems, from implementation through deployment, client feedback, and ongoing maintenance.
#### Selected Projects
##### Irish Pension Management
*April 2025 - March 2026*
- Expanded WordPress landing pages into a PHP and PostgreSQL membership application, working with an agency partner to translate administrative requirements into application workflows.
- Implemented individual and organisational applications, qualification checks, annual payments, monthly course-progress reviews, and downloadable PDF certificates.
- Built administrative dashboards and automated programme timelines, approved-leave handling, and certificate issuance to replace manual documentation tasks.
**Technologies:** WordPress, PHP, PostgreSQL
##### [HeroEyez](https://heroeyez.com)
*June 2024 - June 2025*
- Built two Android applications in Java and Kotlin and integrated them with the existing .NET HeroEyez portal, connecting device and IP-camera feeds to an incident-response workflow.
- Implemented TensorFlow Lite firearm detection, screenshot and video evidence capture, alerts, and a Twilio-powered call workflow. Evaluated YOLO and trained and tested detection models using more than 10,000 images to address mobile hardware constraints.
- Completed and deployed the end-to-end workflow in June 2025. Broader commercial rollout was subsequently paused because of market and regulatory constraints.
**Technologies:** Android, Java, Kotlin, TensorFlow Lite, Twilio, .NET integration
##### [James & James Furniture](https://jamesandjamesfurniture.com/)
*Original build: 2017; occasional maintenance ongoing*
- Designed and developed the original e-commerce website in 2017 using WordPress and WooCommerce, customizing the theme to reflect the client's brand and creating responsive layouts for desktop and mobile shoppers.
- Implemented product catalogs and galleries, customer reviews, inventory management, promotional discounts, shipping calculators, payment gateway integrations, and a streamlined checkout process.
- Improved page loading through caching and image compression. Continue to provide occasional website maintenance and updates.
**Technologies:** WordPress, WooCommerce, PHP, responsive web design
### Covius, LLC / Senior Software Engineer
*January 2022 - April 2024 · Pompano Beach, FL*
At Covius, a nationwide real estate technology and holdings company, I contributed to the frontend and backend redesign of RealtyBid.com, an online real estate auction platform. The platform combined a REST API backend, a responsive JavaScript frontend, and asynchronous updates to provide users with real-time auction status. I also built internal tools for website administration and customer support.
#### Accomplishments
- Contributed to the complete redesign of a major legacy website containing extensive historical data.
- Helped manage and adapt a legacy database to support the redesigned platform.
- Built a responsive web application frontend for desktop and mobile browsers.
- Refined the user experience with QA testers and business partners through iterative sprints and testing sessions.
- Developed frontend functionality using Angular and RxJS.
### SEAD Software / Software Engineer
*April 2021 - July 2022 · Delray Beach, FL*
At SEAD Software, I used Python and web development skills to build web applications and deliver business analytics for healthcare and legal clients. I also improved company-wide development operations with Azure DevOps and development pipelines to streamline team coordination.
#### Accomplishments
- Designed and implemented Python code using the Google Cloud Vision API to recognize and digitally categorize physical laboratory documents.
- Developed a text messaging web application using the Twilio API to automate customer responses and generate leads for law firms.
- Maintained and implemented Amazon Web Services infrastructure to support multiple projects
- Implemented and trained staff on Microsoft Azure DevOps development platform infrastructure
- Maintained a large Git code repository for multiple clients
### Clarity Diagnostics & Lab Solutions / Director of IT
*September 2020 - January 2022 · Boca Raton, FL*
Managed IT operations and technology decisions for a medical testing laboratory and diagnostics test manufacturing business. Supported the company's expansion to work with organizations nationwide, including local and state governments. I also managed software quality control, deployment, and training for its sister company, SEAD Software.
#### Accomplishments
- Implemented a physical keycard/badge access security system for the entire laboratory facility
- Implemented and maintained security standards for email and cloud-based applications in Google Workspace and Microsoft 365
- Maintained client-facing websites
- Expanded laboratory infrastructure and assisted with quality assurance testing of medical equipment
- Managed and instructed other IT staff in their daily responsibilities
### MyTap, aka Which Craft / Lead Developer
*January 2016 - April 2020 · Albuquerque, NM*
At this startup, I collaborated with a team of designers to build a craft beer recommendation engine using web scraping and natural language processing (NLP) of online beer reviews. This work introduced me to practical applications of machine learning and AI.
#### Accomplishments
- Implemented a robust web scraper in Python using the Scrapy Python library
- Created a responsive web application frontend for mobile browsers
- Designed custom natural language processing code in Python to create craft beer flavor profiles based on adjective frequency in craft beer review text.
- Maintained a Django backend serving data from a PostgreSQL database
### TriCore Reference Laboratories / Production Support Specialist
*April 2013 - January 2017 · Albuquerque, NM*
Provided technology support to staff across multiple regional hospitals. Responsibilities included urgent password resets, troubleshooting healthcare applications such as Sunquest, retrieving patient medical records and diagnostic information, and monitoring systems for performance issues and errors.
#### Accomplishments
- Solely monitored and supported the company production environment overnight, handling troubleshooting and escalation for an environment supported by 60 staff during the day.
- Monitored the transmission of patient records between hospitals using different medical record systems and healthcare applications.
- Guided medical staff through time-sensitive IT troubleshooting affecting patient care.
- Monitored critical hospital infrastructure for performance and errors, correcting them promptly.
- Trained new help desk employees on their daily tasks and responsibilities
- Remained on-call off hours for emergency assistance.
### Desert Digital Consulting / Software Engineer, Web Application Developer, IT Consultant
*October 2010 - January 2021 | Remote*
Provided freelance services in software development, web design, information technology, and computer hardware design.
## Skills
### Programming Languages
Python (Flask, Django), JavaScript (Node.js, jQuery, Angular, AngularJS, RxJS), TypeScript, Go, PHP (WordPress, WooCommerce), Java, Kotlin, C, C++, CoffeeScript, HTML5, CSS3, Sass
### Database Technologies
- **SQL:** Microsoft SQL Server, MySQL Server, PostgreSQL Server
- **NoSQL:** MongoDB, CouchDB, Redis
- **Other:** Microsoft Access, Microsoft Excel
### Applications
- **Programming:** Microsoft Visual Studio, Visual Studio Code, PyCharm, Sublime Text 3, Devart dbForge, Microsoft SQL Studio, Vim, Eclipse, Git
- **Design:** Adobe Photoshop, Adobe Dreamweaver, Adobe Illustrator, Adobe Edge, Adobe InDesign
- **Productivity:** Microsoft Office, Google Docs (Drive), WordPerfect Suite
- **Virtualization:** VMware, VirtualBox, Docker, Kubernetes
### Cloud Technologies
- Microsoft 365 and Google Workspace Administration
- Amazon Web Services (AWS) Administration
- Microsoft Azure DevOps Administration
### Other
- Jira Agile Project Management skills
- Responsive web design
- Advanced (and remote) Linux administration
- Search engine optimization (SEO) for Google and Bing
- Social media presence implementation (Facebook, Twitter, Instagram, etc.)
## Education
### University of New Mexico
BS, Computer Science
*September 2003 - September 2008*
#### Certifications
- Beginning Programming in C++
- Intermediate Programming in C++
- Advanced Visual C++
- Beginning Visual Basic
- Intermediate Visual Basic
### Central New Mexico Community College (aka TVI)
- Beginning Photoshop
- Intermediate Photoshop
- Advanced Photoshop
- Introduction to Lightwave 3D
## References
| Name | Role | Organization | Phone |
| --- | --- | --- | --- |
| David Foy | Senior Software Engineer | Covius | [407-954-1245](tel:+14079541245) |
| Warren Wright | CEO | SEAD Software | [201-988-1513](tel:+12019881513) |
| Ashley Park | Director | Clarity Diagnostics | [508-341-5387](tel:+15083415387) |
| Douglas Radecki | CEO | MyTap / Which Craft | [505-400-4636](tel:+15054004636) |
Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More