Full-Stack Website Generation: From Generated Pages to Delivered Systems and Acceptance Checks

    AI coding tools can produce polished front ends and some backend logic, but that does not mean they have delivered a production system. Using a commercial company website as a sample, this article breaks full-stack generation into three capability levels—visual system generation, interactive components, and backend logic—and explains how to run acceptance checks on each layer. It also covers concurrency, idempotency, unique constraints, persistence testing, structured prompts, and pre-launch engineering checks for security, performance, observability, and deployment.

    Open-source large models have been iterating rapidly, and scores on multiple coding and agent benchmarks are constantly being refreshed. For developers, scores only show a model’s potential. The more practical question is whether it can independently deliver a website with a complete backend, and how many steps remain between the deliverable and launch.

    This article uses a commercial company website as a sample to break the capability into three levels and explain how to verify each level.

    Three Levels of Capability

    Early code generation tools mostly stayed at function completion and code snippets. Architecture design, API integration, and styling adjustments were still left to developers. The new generation of intelligent coding tools can be divided into three levels.

    The first level is the overall generation of a visual system. Based on a brand description, a model can provide fonts, color palettes, motion rhythm, and information hierarchy in one pass. In the test sample, the model generated for a fictional commercial aerospace company a full-screen video background, a flight data panel in monospace type, status indicator lights with a breathing effect, and a scrolling narrative structure driven by a vertical timeline. Each narrative node was also associated with corresponding data metrics and images, and the overall style remained consistent.

    The second level is the implementation of interactive components. Interactions such as a seat selection map, specification cards, and split-screen scrolling used to require front-end engineers to spend hours debugging. Now the model can directly generate runnable interaction code with a clear structure that is also easy to maintain later.

    The third level is the implementation of backend logic. Whether this level can be completed is the key distinction between a demo page and a real system.

    A Runnable Backend: Functional Loop and Its Boundaries

    The flight booking module in the test sample has a complete business flow. Users select a date, choose seats, and fill in passenger information in sequence, and state can flow correctly between front end and backend. Booking records are written to the storage layer. Each flight has a cap of six seats, and seats are automatically locked when sold out.

    To implement these features, the model cannot just generate forms. It also needs to design data models, API protocols, and constraint validation.

    But the sample code has clear boundaries. It demonstrates the business rule for capacity checks, but it does not handle concurrency. The naive approach is to count booked seats first and then write records. When two requests arrive at the same time, both may pass the check, resulting in overselling. Therefore, the illustrative code below cannot be used directly in production; it only shows the mechanisms that need to be added.

    1. # Illustrative code only; not for production use
    2. @app.post("/api/bookings")
    3. def create_booking(req: BookingRequest):
    4. with db.transaction():
    5. # Lock the row for the flight and date so only one transaction can pass the capacity check at a time
    6. flight = db.select_flight_for_update(req.flight_id, req.date)
    7. if db.find_booking_by_key(req.idempotency_key):
    8. return {"status": "confirmed"} # Duplicate submission; return the existing result
    9. booked = db.count_seats(req.flight_id, req.date)
    10. if booked + len(req.seats) > flight.capacity:
    11. raise HTTPException(409, "Not enough seats")
    12. for seat in req.seats:
    13. db.insert_booking(flight.id, req.date, seat, req.passenger, req.idempotency_key)
    14. return {"status": "confirmed"}

    The three mechanisms above solve different problems. Row locking ensures that capacity checks for the same flight are executed serially. An idempotency key ensures that when a network retry occurs, the same request does not occupy seats repeatedly. A unique constraint on (flight, date, seat) in the database is the last line of defense: even if there is a flaw in the application layer, two records for the same seat will not be written. The specific behavior of row locking depends on the database type, version, and transaction isolation level, and must be confirmed in the target environment.

    Before launch, the following validations also need to be completed:

    • Document the database type, version, and isolation level, and verify them in the deployment environment.
    • Create a unique constraint and confirm that it actually exists in the production database.
    • Write concurrency tests that send booking requests exceeding capacity at the same time, and confirm that the number of successful bookings does not exceed the limit.
    • Run persistence tests: restart the service under the real storage configuration and confirm that booking records still exist.

    Reusing the Generation Method with Structured Prompts

    In the test sample, the same tool used the same prompt structure and consistently produced pages with very different styles. The prompt contains three parts: brand positioning, core functionality, and visual tone.

    • For a fictional deep-sea research institute, the generated website opened with a camera move plunging vertically from the sea surface into the water. When the view crossed the waterline, the screen split, and the color temperature gradually changed. The submersible specification cards included propulsion type and viewport size. The page also included a field notes section with bylines from multiple characters.
    • For a fictional high-end perfume brand, the generated page presented the texture of liquid rotating inside the bottle and light passing through glass to cast caustic patterns, paired with serif typography.

    These results show that the model can map brand tone to visual language and interaction patterns rather than applying a single template. Users can fix the prompt into the following structure and add acceptance criteria:

    • Brand positioning: target users, industry, and business goals.
    • Core functionality: actions that the page and backend need to complete, such as querying, booking, and writing records.
    • Visual tone: fonts, color palettes, motion rhythm, and information hierarchy.
    • Acceptance criteria: for example, the overselling test passes, data still exists after refresh, and the mobile layout works properly.

    With acceptance criteria added, generated results can be checked directly against them, and revisions become more targeted.

    Engineering Checks Before Launch

    There are still several steps where humans need to check the output delivered by an agent before it reaches production.

    1. Security audit: Authentication, payment, and data access code must be reviewed by humans, with a focus on injection and privilege escalation issues.
    2. Performance optimization: Lock granularity, caching strategy, and index design under high concurrency still require judgment from senior engineers.
    3. Observability: Integrate logging services, monitoring alerts, and distributed tracing so that issues can be located when they occur.
    4. Deployment and operations: Use containers for packaging, place static assets in object storage, and form a standardized delivery pipeline. Teams can use container, storage, and logging products from mainstream cloud providers to build this pipeline.

    Conclusion

    Intelligent coding tools are changing the division of labor in development. Requirements definition, architecture decisions, and quality control are handled by people, while repetitive implementation work is handed to agents. Teams that want to use these tools well can start with three things: describe requirements in a structured way, verify generated results layer by layer, and set clear baselines for security and performance.

    Benchmark scores can show a model’s potential, but they cannot replace delivery acceptance. The key question when judging whether a tool is valuable is whether the system it delivers can pass real concurrency, persistence, and security tests.