<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Hung Tran</title>
    <description>The latest articles on DEV Community by Hung Tran (@hungxplorer).</description>
    <link>https://dev.to/hungxplorer</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2943479%2Fe3b5a9ec-b1a6-45fb-99b6-1de0909e98ad.jpg</url>
      <title>DEV Community: Hung Tran</title>
      <link>https://dev.to/hungxplorer</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/hungxplorer"/>
    <language>en</language>
    <item>
      <title>Building an Open Source Project with 100% AI-Generated Code</title>
      <dc:creator>Hung Tran</dc:creator>
      <pubDate>Mon, 17 Mar 2025 16:34:48 +0000</pubDate>
      <link>https://dev.to/hungxplorer/building-an-open-source-project-with-100-ai-generated-code-1p8i</link>
      <guid>https://dev.to/hungxplorer/building-an-open-source-project-with-100-ai-generated-code-1p8i</guid>
      <description>&lt;h2&gt;
  
  
  Introduction
&lt;/h2&gt;

&lt;p&gt;I wanted to customize an LLM by wrapping it with a system prompt that I define to create an API for specific processing. This led me to build this open-source project.&lt;/p&gt;

&lt;h2&gt;
  
  
  About This Open Source Project
&lt;/h2&gt;

&lt;p&gt;This project allows you to create a backend API wrapping an LLM in just one minute. All you need to do is enter the API path, request schema, response schema, and system prompt—then it's ready to go!&lt;/p&gt;

&lt;h2&gt;
  
  
  How I Built It
&lt;/h2&gt;

&lt;h3&gt;
  
  
  Technology Stack
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;em&gt;Frontend&lt;/em&gt;: React + Vite, because I specialize in React, and Vite offers fast builds.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Backend&lt;/em&gt;: Node.js.&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Database&lt;/em&gt;: PostgreSQL, as I am familiar with it.
&lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Migrations&lt;/em&gt;: Knex.js (I had never used it before—AI generated it for me).&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Tools Used
&lt;/h3&gt;

&lt;ul&gt;
&lt;li&gt;Cursor IDE combined with &lt;strong&gt;Claude 3.7 Sonnet&lt;/strong&gt;. &lt;/li&gt;
&lt;li&gt;
&lt;em&gt;Custom Rules&lt;/em&gt; for precise data handling, sourced from: &lt;a href="https://github.com/PatrickJS/awesome-cursorrules" rel="noopener noreferrer"&gt;Awesome Cursor Rules&lt;/a&gt;.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh8wk9nl2hit8it65t0ng.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fh8wk9nl2hit8it65t0ng.png" alt="Claude 3.7 sonnet is the best" width="764" height="192"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  Prompting Strategy
&lt;/h3&gt;

&lt;p&gt;I used &lt;strong&gt;role-based prompting&lt;/strong&gt; to make AI act as both a &lt;strong&gt;Senior Developer&lt;/strong&gt; and a &lt;strong&gt;UI/UX Designer&lt;/strong&gt;, ensuring a modern and aesthetically pleasing UI.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw5ncz5756mnd9gof9c8z.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fw5ncz5756mnd9gof9c8z.png" alt="Role-based prompting" width="766" height="230"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Development Steps
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Define AI agent roles&lt;/strong&gt;: I described the AI agent's role and the project requirements, then asked it to initialize the frontend and backend source code.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend development&lt;/strong&gt;: Since the role was predefined, I directly described the required features and workflows to generate the frontend.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Backend development&lt;/strong&gt;: I instructed the AI to read the entire frontend codebase and generate a corresponding backend. Surprisingly, it generated exactly what I expected!&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Docker deployment&lt;/strong&gt;: I asked AI to generate Docker configurations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend-Backend Integration&lt;/strong&gt;: I provided a prompt to make AI integrate the generated backend API into the frontend.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Testing &amp;amp; Debugging&lt;/strong&gt;: Finally, I manually tested the project and asked AI to fix the bugs. This step could be automated, but I chose to review manually.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Results
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;100% of the code was generated by AI.&lt;/strong&gt;
&lt;/li&gt;
&lt;li&gt;I made approximately &lt;strong&gt;150 requests to Claude 3.7 sonnet&lt;/strong&gt; to complete the project. &lt;/li&gt;
&lt;li&gt;The entire development process took &lt;strong&gt;3 hours&lt;/strong&gt;, with an additional &lt;strong&gt;2 hours for bug fixes&lt;/strong&gt; (still fully AI-driven).&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;English grammar checker API demo:&lt;/strong&gt;&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/wF2G0HhhmbQ"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Javascript mentor API demo&lt;/strong&gt;&lt;br&gt;
&lt;iframe width="710" height="399" src="https://www.youtube.com/embed/UvLXyXWF_Kg"&gt;
&lt;/iframe&gt;
&lt;/p&gt;

&lt;h2&gt;
  
  
  Conclusion
&lt;/h2&gt;

&lt;p&gt;Building a fully AI-generated open-source project is not only fast but also entirely feasible. However, this poses a serious risk to junior developers, as AI can potentially replace them. Two years ago, no one could have imagined AI reaching this level. I strongly believe that in a year, AI will be capable of replacing mid-level developers. In the near future, a large project may only require one senior developer and multiple AI assistants to be successfully completed.&lt;/p&gt;

&lt;h2&gt;
  
  
  Open Sourcing and Community Support
&lt;/h2&gt;

&lt;p&gt;I have open-sourced this project on GitHub: &lt;a href="https://github.com/hungxplorer/ez-ai-agent" rel="noopener noreferrer"&gt;https://github.com/hungxplorer/ez-ai-agent&lt;/a&gt; &lt;/p&gt;

&lt;p&gt;If you find it useful, please give it a ⭐ so I can continue building more AI-powered projects. Thank you!&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
