Back to Blog

Claude Code Tutorial for Beginners — Build Your First App with AI (2026)

By Ayyaz Zafar
Claude Code Tutorial for Beginners — Build an Expense Tracker App with AI

Watch the Full Tutorial

If you've been hearing about AI coding tools but haven't actually tried one yet, this is the tutorial for you. We're going to install Claude Code, build a complete expense tracker app from scratch with a single prompt, and then iterate on it — all without writing a single line of code manually.

By the end, you'll understand why Claude Code is different from chatbot-style AI tools and how to use it in your own projects.

What is Claude Code?

Claude Code is a command-line tool by Anthropic that lives right inside your terminal. Unlike ChatGPT or other AI chatbots where you copy-paste code back and forth, Claude Code actually understands your entire project — every file, every folder, the full context. It reads your codebase, creates files, edits them, and runs commands directly.

Think of it as having a developer sitting next to you who can see your whole screen and make changes in real time.

Step 1: Install Claude Code

Open your terminal and run this single command:

curl -fsSL https://claude.ai/install.sh | bash

That's it. One line and you're done.

Step 2: Login and Subscription

After installing, you'll need to log in. Claude Code requires either:

  • Claude Pro — $20/month
  • Claude Max — $100/month (higher usage limits)

If you don't want to pay, you can also use Ollama to run free local models on your machine. But for the best experience, the Pro plan is the sweet spot for most developers.

Step 3: Create Your Project and Launch Claude Code

Create a folder for your project and start Claude Code inside it:

mkdir expense-tracker
cd expense-tracker
claude

Once Claude Code starts, you'll see a prompt where you can type natural language instructions.

Step 4: Plan Before You Build

Here's a pro tip most beginners miss: don't jump straight into building. Use Claude Code's Plan mode first.

Press Shift+Tab to cycle through modes until you're in Plan mode. This tells Claude Code to think through the architecture and give you a plan before writing any code.

Review the plan, make sure it makes sense, and then approve it. This saves you from going down the wrong path and having to start over.

Step 5: Build the Entire App with One Prompt

Now for the fun part. Here's the exact prompt I used to build the expense tracker:

Build an expense tracker app with Next.js and Tailwind CSS.
It should have:
- An expense form with categories (food, transport, entertainment, bills, other)
- A list of expenses sorted by date
- A summary section showing totals per category
- Use a JSON file as the database
- Dark theme
- Fully responsive design

Hit enter, and watch Claude Code go to work. It will:

  1. Scaffold the entire Next.js project
  2. Set up Tailwind CSS
  3. Create the expense form with category dropdowns
  4. Build the expense list sorted by date
  5. Add a summary section with category totals
  6. Store everything in a JSON file
  7. Apply a dark theme throughout
  8. Make it responsive for mobile and desktop

Tip: When Claude Code asks for permissions to create files or run commands, you can enable auto-accept for a smoother workflow so you don't have to approve every single action.

Step 6: Iterate — Add a Pie Chart with One Sentence

This is where Claude Code really shines. Want to add a feature? Just describe it:

Add a pie chart that shows spending by category. Use CSS-only, no external libraries.

That's a single sentence, and Claude Code will add a fully working pie chart to your app — no chart library needed, pure CSS. It knows exactly where to put the code because it already understands the entire project structure.

This is the key difference between Claude Code and a regular AI chatbot. A chatbot gives you a code snippet in isolation. Claude Code sees the full picture and makes changes that fit perfectly into what already exists.

3 Beginner Tips for Using Claude Code

1. Use the /compact Command

As your conversation gets longer, Claude Code's context window fills up. Run /compact to compress the conversation history while keeping the important parts. This keeps things fast and focused.

2. Create a CLAUDE.md File

Drop a CLAUDE.md file in your project root. This acts as a set of rules and preferences for Claude Code — things like your preferred coding style, folder structure, or tech stack. Claude Code reads it automatically every time you start a session.

3. Be Specific with Your Prompts

The more detail you give, the better the output. Instead of "make it look nice," say "use a dark theme with rounded cards and a sidebar navigation." Specificity is your best friend.

Where Else Can You Use Claude Code?

Claude Code isn't just a terminal tool anymore. You can also use it as:

  • A VS Code extension — integrated right into your editor
  • A desktop app — standalone interface
  • With MCP (Model Context Protocol) support — connect it to external tools and services

Deploy Your App

Once your expense tracker (or any app) is ready, you'll want to put it online. You can deploy to Vercel for free, but if you need a VPS for full control — running databases, backend services, or multiple projects — I use Hostinger VPS for my projects. It's affordable, fast to set up, and handles Node.js/Next.js deployments well.

Related Tutorials

If you found this helpful, check out these related posts:

Wrapping Up

Claude Code is one of the most practical AI tools for developers right now. You don't need to be an expert to use it — as you saw, we built a full expense tracker with dark theme, categories, sorting, summaries, and even a pie chart, all from natural language prompts.

The workflow is simple: install, plan, prompt, iterate. Start with something small, get comfortable with the tool, and then tackle bigger projects.

If you have questions or want to see more Claude Code tutorials, drop a comment on the YouTube video. I read every single one.

Share this article