Rebuilding an Information Portal in Two Hours: A Practical Guide to AI-Generated Prototypes

    This article examines how AI coding agents compress the cost of validating an information portal, such as a video site, from weeks of cross-role work to a single afternoon. It breaks the architecture into seven layers, explains how to write natural-language specifications with data models, API contracts, and acceptance criteria, and shows how to keep generated code maintainable with static checks, contract tests, async failure drills, and rate limits. It also covers compliance boundaries around scraping and reverse engineering, cloud capabilities that support the prototype, and the limits of a two-hour build compared with a production product.

    The Real Problem: The Information Portal Is Being Redefined

    A recent case in developer communities involved a well-known engineer who used an AI coding tool to build a runnable replica of a video platform in about two hours. The discussion split into two camps. One focused on model capability, arguing that at medium reasoning effort, a code-generation agent is already enough to deliver an end-to-end prototype. The other complained about tighter usage limits, noting that reverse-engineering and scraping requests often hit safety guardrails, and that some users experienced model downgrades after submitting tasks judged as “training a competitor.”

    Setting aside the emotional debate, the part that matters most to engineers is the last point: for the first time, ordinary individuals can rebuild an information portal at low cost. Building a video site used to require at least five roles, frontend, backend, transcoding, storage, search, and recommendation, working together for weeks. Now one person can get the main flow running in an afternoon. This does not mean production-grade systems are trivial; it means the cost of validation has collapsed. The distance from an idea to an interactive prototype has shifted from “scheduling” to “conversation turns.”

    This article does not replicate any specific product. Instead, it abstracts this kind of practice into a general engineering method that developers can reuse in their own scenarios.

    Module Breakdown: The Minimum Complete Set for an Information Portal

    Whether the format is video, articles, or audio, the technical skeleton of an information portal is highly isomorphic. A practical approach is to break it into seven layers, then decide which layers can be “good enough” during prototyping.

    1. Access layer: Web or mobile pages responsible for the feed, detail pages, and playback or reading pages.
    2. Content model layer: A unified content entity (title, cover, duration, tags, author, visibility).
    3. Storage layer: Metadata in a relational database, media files in object storage, linked by keys.
    4. Media processing layer: Upload, transcoding, slicing, and thumbnail generation, usually made asynchronous.
    5. Search layer: Keyword recall plus tag filtering; a database index is enough for a prototype.
    6. Ranking layer: Start with reverse chronological order plus a popularity counter, and leave recommendations for later iterations.
    7. Operations layer: Logging, monitoring and alerting, rate limiting, and quotas.

    The key judgment in the prototype stage is this: keep the synchronous path thin and get the asynchronous path right. Heavy work such as upload and transcoding must be asynchronous, or requests will time out; list queries must be synchronous and cacheable.

    Driving Generation with Natural Language: Write Requirements as Verifiable Specifications

    The quality of AI coding tools depends heavily on input quality. A vague “build me a video site” produces vague results. A four-part description is recommended: role + data model + API contract + acceptance criteria.

    1. Role: You are a senior backend engineer.
    2. Data model: Content(id, title, cover_url, duration, tags[], created_at, status)
    3. API contract:
    4. GET /api/contents?page=&tag= returns {items, total}
    5. POST /api/contents creates a draft with status=draft
    6. POST /api/contents/{id}/publish triggers asynchronous transcoding
    7. Acceptance criteria:
    8. 1. The list endpoint returns p95 < 100ms with 10,000 records
    9. 2. On transcoding failure, status is set to failed and a log entry is written
    10. 3. All write endpoints validate required fields

    The value of this approach is turning “does it feel right” into “does it run.” After the code is generated, check it against the acceptance criteria one by one instead of skimming it visually.

    Safety Guardrails and Compliance Boundaries: Why Your Task Gets Blocked

    Complaints about hitting walls in the community essentially mix three types of requests:

    • Feature development for your own system: entirely legitimate.
    • Format conversion and slicing of your own media files: legitimate, and part of routine engineering.
    • Bypassing access controls on other platforms, bulk scraping, or reverse-engineering other clients’ protocols: high risk, likely to be blocked by safety policies, and potentially in violation of laws, regulations, and platform terms.

    The right approach is not to find a way around the guardrails, but to rewrite the requirement into a compliant form: request an official open API or a licensed dataset when you need data; implement interoperability based on public protocols; export your own content when you need migration. Guardrails are not obstacles; they pull your plan back onto a sustainable engineering track.

    The downgrade triggered by a task judged as “training a competitor” is a reminder: do not treat the agent as an indiscriminate automation executor. Tasks involving data egress, bulk scraping, or model training should explicitly state the data source and authorization status, and be split into separate sessions when necessary.

    Quality Checks: From “Runnable” to “Maintainable”

    Running in two hours does not mean it is ready to ship. Four gates are recommended:

    1. Static checks: type annotations, formatting, and basic linting to block low-level errors first.
    2. Contract tests: a minimal test case for each endpoint, covering normal, empty, and out-of-range inputs.
    3. Async path drill: deliberately fail transcoding once to confirm the state machine and logging behave correctly.
    4. Quotas and rate limits: add size and frequency limits to the upload endpoint so the prototype is not overwhelmed.

    An illustrative state machine constraint:

    1. ALLOWED = {
    2. "draft": {"publish"},
    3. "processing": {"ready", "failed"},
    4. "ready": {"unpublish"},
    5. "failed": {"publish"},
    6. }
    7. def transition(state, action):
    8. if action not in ALLOWED.get(state, set()):
    9. raise ValueError(f"illegal transition: {state} -> {action}")
    10. return action

    A state machine moves “illegal transitions” from runtime bugs to design-time constraints, which is the lowest-cost way to move a prototype toward stability.

    Cost and Deployment: Rely on General Cloud Capabilities

    For a prototype to be used, several general cloud capabilities need to work together: object storage for media files, a container platform for stateless services, a message queue to decouple transcoding tasks, and logging plus monitoring and alerting for observability. These are standard categories across the industry. When choosing among them, focus on three points: whether cold starts are acceptable, whether egress traffic costs are predictable, and whether usage-based scaling is supported. Vendors such as Baidu AI Cloud offer these general categories, which can be configured elastically according to the actual load of the prototype stage, avoiding an excessive upfront investment.

    Capability Boundaries: Do Not Treat a Prototype as a Product

    It is important to be clear: what gets rebuilt in two hours is the interaction skeleton, not the content ecosystem, rights system, recommendation quality, or resistance to attacks. The real moat lies in content supply and distribution efficiency, not in the pages. The practical value of an individual rebuilding an information portal is building a vertical, tiny scenario (an internal team knowledge feed, course replays, a home media library) and owning the loop of “subscribe, consume, redistribute” yourself.

    Action Checklist

    1. Write the data model and API contract clearly using the four-part specification.
    2. Keep the synchronous path thin and get the asynchronous path right.
    3. Rewrite requirements into compliant forms, and stay away from the gray areas of scraping and reverse engineering.
    4. Do not skip any of the four quality gates.
    5. Use general cloud capabilities on a usage basis, get it running first, then optimize.

    When the cost of validation collapses, the truly scarce resource is no longer “can it be built,” but “what is worth building.” That is the biggest dividend of the information portal rebuilding wave for developers.