From Assets to Launch: How AI-Assisted Coding Made a Two-Hour Website Build Possible

    This article walks through a real website rebuild completed in about two hours using an AI coding tool with file access, command execution, and cloud resource orchestration. It explains how to turn vague requirements into an executable task card with acceptance criteria, how to choose a deployment approach for a content site (static hosting, containers, or edge/managed functions), and how to let the tool execute while the developer makes only key decisions. It also covers maintainability practices, common pitfalls such as requirement drift and stale caches, and why speed comes from making the process explicit rather than skipping steps.

    1. Background: Why a Two-Hour Launch Is Now Feasible

    Around this time last year, I delivered a content website for a client. This year he came back with new visual and content requirements and wanted a rebuild. The requirements themselves were not complex: a content site centered on reading reflections, positioned around “finding answers in text and responding to real-life confusion through reading.” The page structure was mainly an article list, detail pages, and an about page, plus a subscription entry and basic analytics.

    For this kind of project, the time-consuming part used to be three things, not writing code: clarifying the requirements, setting up the environment, and wiring up the release pipeline. Today, with an AI coding tool capable of file read/write, command execution, and cloud resource orchestration, all three can be compressed into a very short window. Throughout the process, I played only two roles: providing the assets and explaining the goal. Implementation, debugging, and deployment were handled by the tool.

    To be clear, “fast” does not mean skipping steps. It means making the process explicit and verifiable. The sections below follow the actual order of work.

    2. Step 1: Translate Vague Requirements into an Executable Spec

    The biggest risk with an AI tool is not insufficient capability but an unclear goal. So the first step is not to let it write code, but to force yourself to write the requirements into a spec it can execute.

    I provide four categories of information:

    1. Site goal and audience: a content website for reading enthusiasts, focused on reading experience and retrieval efficiency.
    2. Information architecture: home (featured and latest), category archive, post detail, about, and subscribe.
    3. Visual and interaction constraints: typography first, generous whitespace, mobile first, optional dark mode.
    4. Acceptance criteria: accessible, navigable, subscribable, crawlable by search engines, and no obvious layout shift above the fold.

    A reusable “task card” looks like this (pseudocode, structure only):

    1. task:
    2. goal: build a content website
    3. pages: [home, archive, post, about, subscribe]
    4. constraints:
    5. - mobile_first
    6. - semantic_html
    7. - lighthouse_performance >= 90
    8. deliverables:
    9. - source_code
    10. - build_artifacts
    11. - deploy_plan
    12. acceptance:
    13. - all_links_ok
    14. - sitemap_and_robots_present

    Writing acceptance criteria into the task card is the prerequisite for letting the tool self-verify. Automation without acceptance criteria just produces uncertainty faster.

    3. Step 2: Choose a Deployment Approach, Weighing Managed Hosting Against Self-Hosting

    The second step is choosing a deployment approach, and this is exactly the step that gets underestimated. A content website has a traffic profile of “read-heavy, write-light, bursty but not sustained,” so the choice should revolve around three lines: cost, operational burden, and control.

    1. Option A: Static Hosting (Evaluate First)

    Build the site as pure static assets, host them on object storage or a static site hosting service, and put a content delivery network in front. The advantages are low cost, natural resilience to read traffic, and a small attack surface. The downside is the lack of server-side logic, so subscription and analytics need external general-purpose capabilities (such as a form service, message queue, logging, and monitoring alerts).

    2. Option B: Containerized Deployment

    Package the site as an image and run it on a container platform. This suits scenarios needing server-side rendering or lightweight APIs. The advantages are environment consistency and good elasticity. The downside is the operational cost of image builds, orchestration configuration, and log collection.

    3. Option C: Edge Functions and Managed Functions

    Push small logic such as subscription and likes down into functions, separating static assets from dynamic logic. The advantages are small cold starts and per-invocation billing. The downside is significant vendor differences, so migration cost must be evaluated in advance.

    The conclusion for this project leaned toward Option A, with dynamic capabilities externalized. The reason is straightforward: a content site’s core competitiveness is content quality and reading experience, not infrastructure complexity.

    4. Step 3: Let the Tool Execute While the Human Makes Only Two Key Decisions

    In the execution phase, I stick to two iron rules: least privilege and rollback capability.

    • Least privilege: grant only the resource permissions necessary for this delivery, for example read/write on a single storage bucket and trigger permission for a single build project, without opening global administrative access.
    • Rollback capability: before each change, keep the previous version’s artifacts and a configuration snapshot; publish using versioned directories, and switch via an alias or pointer.

    The tool’s behavior at this stage can be abstracted as the following pipeline:

    1. read assets -> generate page templates -> build static artifacts -> verify links and metadata
    2. -> upload to object storage -> refresh CDN cache -> run acceptance script -> output the URL

    “Verify links and metadata” is the step most likely to be skipped and the one that should never be skipped. It checks for dead links, a missing sitemap, and duplicate page titles and descriptions. These details directly determine the first impression on search engines and social sharing.

    5. Quality and Maintainability: Fast Does Not Mean Sloppy

    The sustainability of a two-hour delivery depends on whether maintainable assets are left behind:

    1. Replaceable content: articles are maintained as structured data files and injected into pages at build time, avoiding coupling between body content and templates.
    2. Evolvable styles: design tokens (colors, spacing, font sizes) are managed centrally, so re-skinning does not change the structure.
    3. Traceable releases: each release generates a change record containing the time, scope, and rollback point.
    4. Closed-loop observability: connect a general-purpose logging service and monitoring alerts, with thresholds set for availability, response latency, and error rate.

    An illustrative content structure:

    1. post:
    2. title: Finding Answers in Text
    3. date: 2024-05-01
    4. tags: [reading, method]
    5. body: |
    6. Real confusion often comes not from a lack of answers, but from a lack of precision in the questions.

    6. Common Pitfalls and How to Avoid Them

    • Requirement drift: lock the scope with the task card and acceptance criteria; new requirements go through a change process rather than verbal additions.
    • Excessive permissions: authorize by resource and by action; avoid “granting full access to save effort.”
    • Cache not refreshed: actively refresh the CDN cache after publishing, otherwise users still see the old version.
    • Mobile layout collapse: after building, walk through the above-the-fold view and navigation at a narrow viewport.
    • No rollback path: any release must be able to revert to the previous version within one minute.

    7. Conclusion: Spend the Time on Judgment

    This rebuild once again confirmed a judgment: when implementation cost is greatly reduced by tools, the developer’s value concentrates at both ends. On the front end, it is defining the requirements clearly; on the back end, it is guarding quality and risk. A two-hour launch is not showing off, but the natural result of making the process explicit. For a content site, leaving complexity to the tool and keeping judgment for yourself is what makes efficiency sustainable.