DEV Community

Cover image for How I Built a React App with AI, VS Code, and Pure Vibes!
Summiya ali
Summiya ali

Posted on

How I Built a React App with AI, VS Code, and Pure Vibes!

Spoiler alert: There’s a cat. And it’s zesty.


Idea Spark: Talking to AI While Half-Asleep

One fine day (or night, who knows anymore), I had a thought:

"What if I had a sleepy cat in my React app that would sass me every time I clicked it?"

Normal people would sleep.
I opened VS Code and said:

"Yo ChatGPT, help me make a zesty cat app."

And just like that, I began coding a full React project — powered by a bash script, AI code generation, and zero patience for googling things manually.


The Setup: VS Code, Git Bash & Me

Tools I Used:

  • Visual Studio Code (because real devs use dark mode with pride)
  • Git Bash (for terminal drama)
  • ChatGPT (my unpaid AI intern)
  • OneDrive Desktop (accidentally. Don't judge.)

My Working Directory?

Image description

Yep. I know. Even the folder names scream “this user is chaotic neutral.”


Phase 1: Writing the Bash Script Like a Boss

I told ChatGPT:

“Write me a bash script that sets up a full React project with a ZestyCat component.”

It spat out gold. A script that:

  1. Runs npx create-react-app
  2. Creates a ZestyCat.js component and CSS file
  3. Injects personality (and sass) into the cat
  4. Updates App.js to feature the cat as the main character

And I saved it as:
create-zesty-cat.sh


Phase 2: "Why Won’t You Run?!"

Of course, no dev journey is complete without errors that question your sanity.

Problem:

Running the bash script in Git Bash gave me:

Image description

Me:

“I literally just told you to create it!”

Realization:

The create-react-app command was after the cd in the script.
I was trying to walk into a house before it was built.

Fix: I moved the npx create-react-app line to the top of the script.


Phase 3: React App is Born... and Broken

I ran:

Image description

Boom shakalakaaa! The app was created. Files in place. Components looking good.
I ran:

Image description
And React said:

Image description

My Reaction:

“AJ-who? I don’t even know that guy!”

Fix:

I did what any experienced dev would do:

rm -rf node_modules package-lock.json
npm cache clean --force
npm install
Enter fullscreen mode Exit fullscreen mode

A cup of coffee later, it finally worked.


Meet ZestyCat: Your Judgmental Dev Buddy

ZestyCat is a React component with one job — to sass you when you click it.

Features:

  • Sleeps peacefully until disturbed
  • Gets angry when clicked
  • Judges you with a "😾" face
  • Tells you to stop bothering it because “it can vibe-code later”

Just like a real dev cat.

Image description


The Look: Pure Comic Sans Chaos

The cat is styled with:

Image description

Yes. Comic Sans. Because nothing says “I take front-end seriously” like Comic Sans in a dashed border.


The Final Test: npm start

With everything in place, the moment of truth:

Image description

Boom.
My local server came alive. ZestyCat was breathing but sleeping.

Image description
I clicked it because it is annoying to let him sleep while I cant.

Image description
It got angry — as it should. My mission was complete.


TL;DR: How I Did It (So You Can Too)

  1. Talk to ChatGPT — Tell it what you want. Be as chaotic as you like.
  2. Write a bash script — Let the AI generate it.
  3. Run it in Git Bash — Fix paths if needed.
  4. Fix broken node_modules — It's a React tradition.
  5. Launch your app — Watch your digital cat get annoyed.

Final Thoughts

I didn’t just build a React app.
I built a sassy, sleepy cat with attitude — entirely from talking to AI and using VS Code.

No Stack Overflow. No Googling. Just me, my terminal, and my virtual cat overlord.


Want the full source code or help customizing it?
Drop a 🐱 below, or just poke ChatGPT again — it never sleeps.

Happy Hacking!


Top comments (5)

Collapse
 
vikkio88 profile image
Vincenzo

this is gross

Collapse
 
summiya_ali profile image
Summiya ali

I am just a beginner. can you explain why it is gross please.

Collapse
 
vikkio88 profile image
Vincenzo

many things, the vibing approach for starters,create-react-app has been deprecated. making a bash script to run few commands you don't understand is gross also. why git bash? why one drive where do you use those tools?

if you want to break from being a beginner you should study and understand what you do before vibing it.

I bet you also used chatgpt to write this post too?

Thread Thread
 
summiya_ali profile image
Summiya ali

thank you for your concern. I highly appreciate your opinion. but you do understand i am not working in nasa right. neither this post is added in my portfolio. on top of that, this is the second ever post i ever did in my life. now since you have mentioned the negative points i need to work on, can u also please tell me how to do that...judging from your response, you have a great experience in tech writing. so kindly guide me as i want to be a freelance tech writer.

p.s
none of what i said is sarcasm.

Thread Thread
 
vikkio88 profile image
Vincenzo

take a course, a basic online, free course on React, or even better in Javascript. how to work with it, what to do and how to do it.
create some sideproject from scratch without ai helper, then use it in the next side project.

that is how you learn, AI-agents should be helpers, not directors, otherwise you will never learn