Rebuilding an Information Portal with AI in Two Hours: A Practical Guide

    This article walks through how a developer used an AI coding tool to build a curated video portal in two hours, and what that workflow reveals. It covers turning a plain-language request into a structured spec, designing a content curation pipeline with an explainable consensus score, making pragmatic storage choices for small-to-medium datasets, and ranking content with lightweight personalization. It also breaks the build into reusable steps and lists common pitfalls, showing how explainable rules and observable feedback loops return control over information consumption to the user.

    1. What “Rebuilding an Information Portal in Two Hours” Actually Means

    A senior developer was frustrated late on a Friday night by the clickbait covers and repetitive topics flooding a homepage recommendation feed. The next day, using an AI coding tool, he described his needs in a single natural-language prompt and built a video site within two hours that only featured content repeatedly recommended by a community over time.

    The significance of this case is not that it “replicated a page layout.” It validated a new engineering path: the cost of expressing requirements dropped sharply, while the transparency of the implementation path rose significantly.

    Building a video portal with browsing, categorization, search, and personalized recommendations used to require weeks of collaboration across product, frontend, backend, data, and operations teams. When natural language can directly drive code generation, one person can close the loop from idea to a live, accessible site within a single workday. The real change is this: the authority to define an information portal has shifted from platform algorithms back to the individual.

    2. Requirement Abstraction: Translating “What I Want to Watch” into Computable Rules

    The original request was highly colloquial, but it actually contained four layers of executable engineering semantics:

    1. Form constraints: The visuals and interactions follow the common conventions of mainstream video sites (left navigation, right-side recommendation feed, cover dimensions, publish time, and view count).
    2. Content constraints: Only include content that has been repeatedly recommended over time in a specific technical community, rather than the full set of public content.
    3. Scale constraints: The content pool is on the order of a few thousand items, a typical small-to-medium dataset.
    4. Experience constraints: Support topic-based browsing and personalized recommendations, with detail pages showing the source discussion and recommendation heat.

    In engineering terms, this should be rewritten into a structured specification and then handed to the AI coding tool to generate a skeleton. An example:

    1. site:
    2. layout: classic_video_portal # navigation + recommendation feed
    3. content:
    4. source: curated_community # manual/community-consensus filtering
    5. scale: ~6000 items
    6. metadata: [title, cover, duration, published_at, view_count, topics]
    7. features:
    8. browse_by_topic: true
    9. search: true
    10. recommendation: light_rank
    11. detail_page: {discussion: true, recommender_count: true}

    The value of this step is that it turns vague preferences into verifiable acceptance criteria. Every generated result can then be checked against them, avoiding outcomes that “look right but are logically wrong.”

    3. Content Layer Design: The Filtering Mechanism Is the Real Asset

    Pages can be replicated; the real moat is the content admission rules. A usable filtering pipeline typically has four stages:

    • Collection: Crawl candidate items from public data sources within a time window, then deduplicate and normalize them (unified formatting for title, link, and timestamp).
    • Heat aggregation: Merge multiple appearances of the same content, count the number of unique recommenders and the first/last seen times, and form a “consensus score.”
    • Quality filtering: Remove dead links, duplicate reposts, and low-information items; detect clickbait features in titles (all caps, stacked exclamation marks, suspense-style phrasing).
    • Topic tagging: Apply keyword rules plus a lightweight classification model to tag items into categories such as art, software engineering, history, business, and gaming.

    The consensus score can use an explainable weighted formula that is easy to tune and reproduce:

    1. score = w1 * log(1 + unique_recommenders)
    2. + w2 * recency_factor(last_seen)
    3. + w3 * topic_authority(topic)
    4. - w4 * clickbait_penalty(title)

    The deliberate avoidance of an unexplainable “black-box heat” matters here, because only explainable rules can be trusted and actively corrected by users.

    4. Data and Storage: Pragmatic Choices at Small-to-Medium Scale

    A few thousand content items plus user behavior is a lightweight workload. A pragmatic approach is to put structured metadata in a relational database, store covers and thumbnails in object storage, and write access logs and behavior events asynchronously to storage via a message queue, then observe runtime status through logging services and a monitoring/alerting system. If deployed on a container platform, frontend static assets can be served by a content delivery network to reduce first-screen latency.

    There are three key design points:

    1. Read-heavy, write-light: Build composite indexes on the metadata table for topic, publish time, and consensus score, and route recommendation feed queries through covering indexes.
    2. Asynchronous processing: Enqueue play, click, and favorite events first to avoid slowing down the main request.
    3. Rollback capability: Make filtering rules and ranking weights configurable so rule changes can be rolled out gradually and reverted.

    5. Recommendation and Ranking: From “Platform Feeding” to “User Calibration”

    Personalization does not have to rely on complex models. During cold start, a lightweight ranking of “consensus score + topic preference vector” can be used: user clicks and completion behavior accumulate onto topic weights, the candidate set is linearly blended by topic match and consensus score, and a diversity penalty is added to prevent the feed from being dominated by a single topic.

    1. def rank(candidates, user_topic_w, alpha=0.6, beta=0.4):
    2. scored = []
    3. for c in candidates:
    4. match = sum(user_topic_w.get(t, 0) * c.topic_affinity(t) for t in c.topics)
    5. scored.append((alpha * c.consensus + beta * match, c))
    6. scored.sort(key=lambda x: x[0], reverse=True)
    7. return diversify(scored, window=10) # sliding-window dedup for diversity

    It is worth emphasizing that the goal of the recommendation system is not to extend dwell time, but to increase the hit rate of “this visit was worth it.” So the evaluation metrics should shift to effective watch rate, favorite rate, and active search success rate, rather than clicks alone.

    6. The Generative Development Workflow: Breaking Two Hours into Reusable Steps

    1. One-sentence request → specification: First have the tool output the directory structure, data model, and API list; after manual confirmation, generate the code.
    2. Layered generation: Generate the data layer, API layer, and page layer separately to avoid producing a large block of code that is hard to review all at once.
    3. Immediate validation: Run locally after each layer is done, and check rendering and filtering results against a small set of sample data.
    4. Externalized rules: Put filtering thresholds, weights, and classification vocabularies in configuration files so non-developers can adjust them too.
    5. Launch and observe: Deploy to a container platform, connect logging and monitoring, try it on a small scale first, then open it up gradually.

    One practical tip: explicitly stating in the prompt “do not introduce unspecified external dependencies,” “all data comes from a local dataset,” and “do not fabricate fields” significantly reduces hallucinated implementations.

    7. Common Pitfalls and How to Avoid Them

    • Rule overfitting: Too much weight on the consensus score makes the content pool rigid, so reserve a proportion of slots for exploring new content.
    • Copyright and compliance: Caching and display require attention to content licensing, source attribution, and access rate limits; keeping the original source link on the detail page is a basic practice.
    • Privacy boundaries: Collect only necessary behavior fields, and manage anonymization and retention periods.
    • Maintainability: Generated code must include type annotations and basic tests, otherwise no one will dare to change it two weeks later.

    8. A Transferable General Pattern

    This method is not limited to video. Any information portal that is “fed by algorithms” can be rebuilt: tech news feeds, paper reading lists, industry report aggregations, internal knowledge base homepages. The core formula is always: clear admission rules + explainable ranking + lightweight personalization + an observable feedback loop.

    When the marginal cost of implementation approaches zero, the individual’s scarce resource is no longer coding ability, but judgment—what you want your attention to be occupied by. The engineering significance of rebuilding a portal in two hours lies precisely here: it returns the initiative of information consumption to the user.