AI-Assisted End-to-End Development: Building and Launching a Vocabulary Mini App from Prototype

    This article walks through a practical workflow for building a vocabulary mini program with AI assistance, taking it from an initial idea to a deployable prototype within half a day. It covers how to use a project-based workspace, generate high-fidelity prototypes from reference products, convert a PDF word list into structured JSON, drive code generation, add visual assets, debug in native tooling, and archive the project for reuse. The goal is to show how AI compresses repetitive development work so you can focus on requirements, quality control, and product decisions.

    Why AI-Assisted Development Needs a Project Workspace, Not One-Off Prompts

    A friend working on community O2O products is about to go abroad for further study and needs to prepare for a PET-level English vocabulary exam in a short time. She asked for something simple: a lightweight mini app that helps her memorize words. As the technical response, I tried an AI-assisted development approach and pushed this tool from idea to deployable prototype within half a day. It is far from polished, but at least the question “do we have something or not” was answered first.

    This was not a traditional “write every line of code from scratch” exercise. Instead, it used an intelligent development workflow that chained together prototype design, data preparation, code generation, asset completion, and debugging and deployment into a reusable pipeline. Below, I break down the process stage by stage and extract methods that can be transferred to other projects.

    A single question-and-answer AI interaction is good at solving isolated problems, but it struggles to support a product’s full lifecycle from birth to growth. The key to real efficiency is to first set up a project-based workspace that gathers scattered information into a unified space:

    • Assets and configuration: Put requirements docs, reference materials, and design drafts into the project’s asset area for team sharing. The AI can also read this context automatically.
    • Plan board: A single instruction such as “split A to the frontend and B to the backend” generates a to-do list, making responsibilities clear. Progress can be commented on and reminded.
    • Task collaboration: Multiple people can work in the same session, and a handoff can be completed in full, with context and results carried over seamlessly.
    • Scheduled tasks: Recurring work such as daily report summaries and scheduled data scraping can run automatically once rules are configured.

    The value of a project-based approach is that it converges people, materials, tasks, and pace into the same context. Every later step avoids repeatedly explaining the background, so AI output is more coherent and better aligned with real constraints. This becomes especially clear in multi-person collaboration or projects that span multiple days, where context no longer leaks away.

    Produce a High-Fidelity Prototype Fast by Referencing Mature Products

    Prototype first, code second. My approach was to research a few well-regarded products in the same category, capture their key screens as references, and then give those reference images to the AI together with clear requirements: use blue as the primary color and lay out the core vocabulary-learning actions—word list browsing, card flipping, spelling quizzes, a wrong-word book, and progress statistics—to generate a high-fidelity prototype.

    The key here is not to ask the AI to invent something from nothing, but to “borrow the shell of a mature product and fill it with your own requirements.” Referencing proven solutions significantly lowers communication costs and keeps the direction from drifting. The transferable lesson for readers is simple: the more specific the input to the AI (reference object + constraints + core feature list), the more usable the first prototype version and the less rework it requires.

    From PDF to JSON: Sourcing and Structuring the Word List

    The core of a vocabulary mini app is the word list. Most word lists on the market exist as PDFs, while the program needs structured data. This step is essentially a data engineering task: extracting and cleaning unstructured text into JSON that the frontend can consume.

    For a high-frequency PET word list, an entry typically contains the word, phonetic transcription, meaning, example sentence, translation, and tags. A reasonable data model looks like this:

    1. {
    2. "word": "abandon",
    3. "phonetic": "/əˈbændən/",
    4. "meaning": "v. to give up, to abandon",
    5. "example": "He abandoned his car in the snow.",
    6. "translation": "He left his car in the snow.",
    7. "tags": ["PET", "high-frequency"]
    8. }

    The extraction approach from PDF to this structure is not complex. The core is “extract text → split with regex → normalize fields → export JSON.” Example code:

    1. import re
    2. import json
    3. def parse_wordlist(text: str):
    4. entries = []
    5. # Match the basic "word phonetic meaning" pattern line by line
    6. pattern = re.compile(r"^([a-zA-Z\-]+)\s+(/.*?/)?\s*(.+)$")
    7. for line in text.splitlines():
    8. line = line.strip()
    9. if not line:
    10. continue
    11. m = pattern.match(line)
    12. if m:
    13. entries.append({
    14. "word": m.group(1),
    15. "phonetic": m.group(2) or "",
    16. "meaning": m.group(3).strip(),
    17. })
    18. return entries
    19. # Export as JSON for the mini app to read
    20. data = parse_wordlist(pdf_text)
    21. with open("words.json", "w", encoding="utf-8") as f:
    22. json.dump(data, f, ensure_ascii=False, indent=2)

    In real projects, PDF layouts are often irregular (multiple columns, broken lines, special characters, phonetic symbols), so pure regex easily misses matches. In that case, combine a PDF text extraction library to obtain text blocks with coordinates, then reconstruct the reading order based on the layout structure. The pragmatic engineering approach is to use rules to cover 80% of regular entries and pull out the remaining anomalies for manual review, rather than piling up endless rules to chase 100% automation. Word list quality directly determines the product experience. It is better to spend ten extra minutes cleaning than to let users memorize words against a pile of misaligned data.

    Drive Code Generation Once the Prototype and Data Are Ready

    When the high-fidelity prototype and the structured word list are both ready, the quality of code generation improves noticeably—because the AI has two strong constraints: “what it looks like” and “what the data is.” The prompt at this point should contain three parts: the tech stack of the target platform, the page list corresponding to the prototype, and the JSON structure definition of the word list.

    Take data loading as an example. You can clearly tell the AI the expected behavior: fetch the word list asynchronously when entering the home page, paginate by learning progress, and cache loaded data to avoid duplicate requests. The generated logic looks roughly like this:

    1. async function loadWords(page = 1, size = 20) {
    2. const res = await fetch(`/api/words?page=${page}&size=${size}`);
    3. const { list, total } = await res.json();
    4. return { list, total };
    5. }

    It is worth emphasizing that AI-generated code is a “high-quality first draft,” not a finished product ready to ship. Developers still need to review edge handling, exception catching, and state management section by section to confirm they meet expectations. Treating the AI as a senior colleague who quickly produces skeletons, rather than an automatic writer you can fully hand off to, is the right mindset for this kind of workflow.

    Add Visual Assets: Icons and Avatars

    A mini app ready to launch also needs visual assets such as icons, a launch page, and illustrations. This step can leverage AI tools with image generation capabilities. Based on a unified style description (blue primary color, flat design, simplicity), generate candidate images in batches, then select and fine-tune them before adding them to the project. Visual assets do not occupy core functionality, but they directly affect users’ first impression of the product and are worth the investment. After generation, unify size specifications and the color system so that multiple images look consistent when placed together.

    Import into Developer Tools, Debug, and Launch

    Once the code and assets are ready, enter the engineering phase: import the source code into the platform’s native development tools, run locally, get the core flow working, fix compile and runtime errors, then submit for review and release. This stage should focus on validating three categories of issues:

    • Functional correctness: whether word list browsing, card flipping, spelling judgment, and wrong-word recording work as expected.
    • Boundaries and exceptions: whether scenarios such as an empty word list, an overly long definition, network failure, and repeated answers degrade gracefully.
    • Performance and experience: whether first-screen loading speed, scrolling smoothness, and package size are under control.

    After the product gains a certain user base, you can further connect general cloud capabilities to ensure stability, such as using object storage to host static resources, using a container platform to run backend services, and using log services and monitoring alerts to observe online issues. Taking Baidu AI Cloud as an example, such general cloud products can support the full loop of this kind of lightweight app from development to operation. Whether to introduce them and which ones to introduce should be decided based on actual load and cost trade-offs, not blindly piled up.

    Archive Results and Capture Knowledge

    The last stage, often overlooked but highly valuable, is to archive the final deliverables—source code, word list, design drafts, and key decision records—into the project’s asset library. Archiving serves two purposes. First, it forms reusable assets, so the next time you build a similar tool you can stand on existing results. Second, it captures decision context, so team members taking over do not need to step on the same pitfalls again. For AI-assisted development, high-quality archiving can also become high-quality input for the next project, turning “referencing mature solutions” from external borrowing into internal accumulation.

    Conclusion

    Looking back at the whole process, getting a prototype running in half a day did not rely on any single capability. It was the combined result of “project-based context + mature solution references + structured data + AI-generated code drafts + human review and gating.” What AI-assisted development truly changes is the cost structure of R&D: it compresses a large number of repetitive and mechanical steps to the extreme, letting people concentrate their energy on requirements judgment, quality control, and product decisions—things that cannot be replaced. For individual developers and small teams, this means the distance from an idea to a usable product is being shortened more than ever before.