<?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: SANJAY M SANTHOSH</title>
    <description>The latest articles on DEV Community by SANJAY M SANTHOSH (@sanjumsanthosh).</description>
    <link>https://dev.to/sanjumsanthosh</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%2F2735182%2F2b0881da-e8c2-4977-a07e-9ed8c6ce0fe5.png</url>
      <title>DEV Community: SANJAY M SANTHOSH</title>
      <link>https://dev.to/sanjumsanthosh</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/sanjumsanthosh"/>
    <language>en</language>
    <item>
      <title>What Went Wrong: Reflecting on Past Habits to Build a Better Future - 1-Day Build Challenge</title>
      <dc:creator>SANJAY M SANTHOSH</dc:creator>
      <pubDate>Sun, 19 Jan 2025 22:03:45 +0000</pubDate>
      <link>https://dev.to/sanjumsanthosh/what-went-wrong-reflecting-on-past-habits-to-build-a-better-future-1-day-build-challenge-2bf6</link>
      <guid>https://dev.to/sanjumsanthosh/what-went-wrong-reflecting-on-past-habits-to-build-a-better-future-1-day-build-challenge-2bf6</guid>
      <description>&lt;p&gt;&lt;em&gt;This is a submission for the &lt;a href="https://dev.to/challenges/github"&gt;GitHub Copilot Challenge &lt;/a&gt;: Fresh Starts&lt;/em&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  What I Built
&lt;/h2&gt;

&lt;p&gt;Hi All. So, for the GitHub Copilot 1-Day Build Challenge, I built an app called What Went Wrong. The idea is simple: it helps you analyze why your habits or resolutions didn’t work out and gives you actionable steps to fix them. It’s a Next.js application that asks you thoughtful questions about your past attempts at building habits. Based on your answers, it formulates follow-up questions, digs into what might have gone wrong, and provides tailored solutions to help you do better next time.&lt;/p&gt;

&lt;p&gt;What’s cool is that the app doesn’t just stop at asking questions—it actually analyzes your responses to figure out patterns and challenges. It supports both Groq and Github models. Whether it’s figuring out why you stopped exercising or why journaling didn’t stick, this app is designed to give you clarity and practical advice in a friendly, conversational way.&lt;/p&gt;

&lt;h2&gt;
  
  
  Demo
&lt;/h2&gt;


&lt;div class="crayons-card c-embed text-styles text-styles--secondary"&gt;
    &lt;a href="https://what-went-wrong.vercel.app/" rel="noopener noreferrer"&gt;
      what-went-wrong.vercel.app
    &lt;/a&gt;
&lt;/div&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%2Fp4pqqadaul6qe00wdib8.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%2Fp4pqqadaul6qe00wdib8.png" alt="Image description" width="800" height="428"&gt;&lt;/a&gt;&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%2Fokfphbr96ithl9m5zwco.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%2Fokfphbr96ithl9m5zwco.png" alt="Image description" width="800" height="428"&gt;&lt;/a&gt;&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%2F99izethszkfv0se5nkby.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%2F99izethszkfv0se5nkby.png" alt="Image description" width="800" height="428"&gt;&lt;/a&gt;&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%2Fbo1zwd9m8olc2rblhwdk.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%2Fbo1zwd9m8olc2rblhwdk.png" alt="Image description" width="800" height="539"&gt;&lt;/a&gt;&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%2Fm0092s3lvt3ht89gbtqn.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%2Fm0092s3lvt3ht89gbtqn.png" alt="Image description" width="800" height="539"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  Repo
&lt;/h2&gt;


&lt;div class="ltag-github-readme-tag"&gt;
  &lt;div class="readme-overview"&gt;
    &lt;h2&gt;
      &lt;img src="https://media2.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fassets.dev.to%2Fassets%2Fgithub-logo-5a155e1f9a670af7944dd5e12375bc76ed542ea80224905ecaf878b9157cdefc.svg" alt="GitHub logo"&gt;
      &lt;a href="https://github.com/sanjumsanthosh" rel="noopener noreferrer"&gt;
        sanjumsanthosh
      &lt;/a&gt; / &lt;a href="https://github.com/sanjumsanthosh/What-went-wrong" rel="noopener noreferrer"&gt;
        What-went-wrong
      &lt;/a&gt;
    &lt;/h2&gt;
    &lt;h3&gt;
      
    &lt;/h3&gt;
  &lt;/div&gt;
  &lt;div class="ltag-github-body"&gt;
    
&lt;div id="readme" class="md"&gt;
&lt;div class="markdown-heading"&gt;
&lt;h1 class="heading-element"&gt;What Went Wrong&lt;/h1&gt;
&lt;/div&gt;
&lt;p&gt;A Next.js application that helps users analyze and understand their failed habits or resolutions using AI-powered insights. The app provides a conversational interface that adapts to user responses and generates personalized analysis and solutions.&lt;/p&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Features&lt;/h2&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;🤖 AI-powered question generation using Groq or Azure models&lt;/li&gt;
&lt;li&gt;🔄 Dynamic conversation flow that adapts to user responses&lt;/li&gt;
&lt;li&gt;📊 Detailed analysis of habit failures and patterns&lt;/li&gt;
&lt;li&gt;💡 Personalized action steps and solutions&lt;/li&gt;
&lt;li&gt;🎨 Beautiful, responsive UI with dark mode support&lt;/li&gt;
&lt;li&gt;🔒 Secure token-based API authentication&lt;/li&gt;
&lt;li&gt;💾 Persistent storage with easy reset option&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h2 class="heading-element"&gt;Getting Started&lt;/h2&gt;
&lt;/div&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Prerequisites&lt;/h3&gt;

&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Node.js 18+&lt;/li&gt;
&lt;li&gt;npm/yarn/pnpm&lt;/li&gt;
&lt;li&gt;A Groq API key or Azure OpenAI key&lt;/li&gt;
&lt;/ul&gt;
&lt;div class="markdown-heading"&gt;
&lt;h3 class="heading-element"&gt;Installation&lt;/h3&gt;

&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Clone the repository:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;git clone https://github.com/yourusername/what-went-wrong.git
&lt;span class="pl-c1"&gt;cd&lt;/span&gt; what-went-wrong&lt;/pre&gt;

&lt;/div&gt;
&lt;ol start="2"&gt;
&lt;li&gt;Install dependencies:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;npm install&lt;/pre&gt;

&lt;/div&gt;
&lt;ol start="3"&gt;
&lt;li&gt;Create a &lt;code&gt;.env.local&lt;/code&gt; file in the root directory:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight highlight-source-dotenv notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;&lt;span class="pl-v"&gt;GROQ_API_KEY&lt;/span&gt;&lt;span class="pl-k"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;your_groq_api_key&lt;/span&gt;
&lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt; Or for Azure:&lt;/span&gt;
&lt;span class="pl-v"&gt;AZURE_AI_KEY&lt;/span&gt;&lt;span class="pl-k"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;your_azure_key&lt;/span&gt;
&lt;span class="pl-v"&gt;AZURE_ENDPOINT&lt;/span&gt;&lt;span class="pl-k"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;your_azure_endpoint&lt;/span&gt;
&lt;span class="pl-v"&gt;AZURE_MODEL_NAME&lt;/span&gt;&lt;span class="pl-k"&gt;=&lt;/span&gt;&lt;span class="pl-s"&gt;your_model_name&lt;/span&gt;&lt;/pre&gt;

&lt;/div&gt;
&lt;ol start="4"&gt;
&lt;li&gt;Start the development server:&lt;/li&gt;
&lt;/ol&gt;
&lt;div class="highlight highlight-source-shell notranslate position-relative overflow-auto js-code-highlight"&gt;
&lt;pre&gt;npm run dev
&lt;span class="pl-c"&gt;&lt;span class="pl-c"&gt;#&lt;/span&gt; or&lt;/span&gt;&lt;/pre&gt;…
&lt;/div&gt;
&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="gh-btn-container"&gt;&lt;a class="gh-btn" href="https://github.com/sanjumsanthosh/What-went-wrong" rel="noopener noreferrer"&gt;View on GitHub&lt;/a&gt;&lt;/div&gt;
&lt;/div&gt;


&lt;h2&gt;
  
  
  Copilot Experience
&lt;/h2&gt;

&lt;p&gt;Using GitHub Copilot throughout the development process was an amazing experience—it. The standout feature for me was Copilot Edits, which cut my development time in half. If you have a clear idea, this tool helps you bring it to life effortlessly. The autocomplete feature was incredibly fast and responsive to changes, adapting seamlessly as I refined my code. Even the readme fine is generated by it. &lt;/p&gt;

&lt;p&gt;The integration with VS Code made everything super smooth. The slash commands, especially /fix, were fantastic at identifying and resolving issues quickly. With well-crafted prompts, Copilot handled all the AI integration work effortlessly, including complex tasks like Zustand integration and maintaining clean code by generating new files where needed—this was hands down one of the best features. My only wish? That the Copilot editor could handle more than 10 working sets at once!&lt;/p&gt;

&lt;h2&gt;
  
  
  GitHub Models
&lt;/h2&gt;

&lt;p&gt;Yes i did use the models for prototyping the question generation part and the analysis part. I also kept this feature available in my final code.&lt;/p&gt;

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

&lt;p&gt;Overall, this was a great experience, and I got to see the potential of using this type of development framework. For about 6 hours of work—from learning to deploying—I think the end result turned out pretty decent. Of course, there’s still room for improvement and refinement, but I had a lot of fun building this project. Big thanks to GitHub for the 1-Day Build Challenge—it was an awesome opportunity to push myself and try something new!&lt;/p&gt;

</description>
      <category>devchallenge</category>
      <category>githubchallenge</category>
      <category>webdev</category>
      <category>ai</category>
    </item>
  </channel>
</rss>
