๐Ÿค– AI Setup Guide

Set Up Your AI Tools

Use Ollama + Claude Code to build your portfolio faster and smarter. Free, private, and powerful!

Browse Templates โ†’ Kids Track

๐Ÿ“‹ What You'll Learn

โœ…

Install and use Ollama (free local AI)

โœ…

Use Claude Code to customize your portfolio

โœ…

Connect the AI chat widget to real Ollama

โœ…

Generate content with AI prompts

Prerequisites ๐Ÿ’ป Any computer (Windows / Mac / Linux) โฑ๏ธ 30โ€“45 minutes
Part 1

Install Ollama

๐Ÿฆ™ What is Ollama?

Ollama is a free tool that runs AI locally on your computer โ€” no internet needed after installation, no subscriptions, completely private.

๐Ÿ’ฐ

Free Forever

No payments, no subscriptions

๐Ÿ”’

Private

Your conversations stay on your computer

โšก

Works Offline

No internet needed after install

๐Ÿ“ฅ Step 1.1 โ€” Download & Install

1

Download Ollama

Go to ollama.com and click Download for your OS

2

Run the installer

Open the downloaded file and follow the steps โ€” it's like any other app

3

Open your terminal

Windows: search "Command Prompt" ยท Mac: search "Terminal"

๐Ÿค– Step 1.2 โ€” Download an AI Model

AI models are the "brains" that Ollama uses. This downloads about 2โ€“4 GB โ€” grab a snack while you wait!

ollama pull llama3.2

๐Ÿงช Step 1.3 โ€” Test Ollama

ollama --version

Then start the server:

ollama serve
๐Ÿ’ก Keep Ollama running in the background while you work!
Part 2

Install Claude Code (Optional)

๐Ÿง  What is Claude Code?

Claude Code is an AI coding assistant that lives in your terminal. You talk to it in plain English and it edits your code for you!

1

Install

Run in your terminal:

npm install -g @anthropic-ai/claude-code
2

Sign in

Run claude and follow the sign-in link

3

Try it!

Navigate to your project folder and ask Claude to help

Part 3

Customize with AI

๐Ÿ’ฌ Method A โ€” Claude Code

Open terminal in your portfolio folder and describe what you want:

Update my portfolio with: - Name: "Alex Chen" - Location: "Tokyo, Japan" - Skills: Python, JavaScript, Unity, Blender - Projects: 1. "TaskMaster" - React todo app 2. "GameAI" - Python game 3. "Portfolio" - Personal site - Colors: Purple theme (#a855f7, #8b5cf6)

Claude edits your HTML file automatically!

๐Ÿฆ™ Method B โ€” Ollama in Terminal

ollama run llama3.2

Then ask it anything, like:

Generate HTML for a skill card with icon ๐ŸŽฎ, title 'Game Dev', description 'Creating games with Unity'

๐Ÿ“‹ Method C โ€” Copy-Paste AI Prompts

Use these ready-made prompts with any AI:

Change colors:

Replace the :root CSS variables in portfolio-basic/index.html with: - --accent: #a855f7 (purple) - --accent-secondary: #8b5cf6 (light purple) - --bg-primary: #0f0f1a (dark purple bg) - --bg-card: #1a1a2e (card bg)

Add projects:

Generate HTML for 3 project cards: 1. "Weather App" - React weather app - tags: React, API 2. "Chat Bot" - Python Discord bot - tags: Python, AI 3. "Portfolio" - This portfolio - tags: HTML, CSS

Generate a bio:

Write a 2-paragraph developer bio for someone who: - Is named [YOUR NAME] from [YOUR CITY] - Knows [YOUR SKILLS] - Loves [YOUR INTERESTS]
Part 4

Connect AI Chat Widget

๐Ÿ”Œ Link Ollama to Your Portfolio Chat

The AI portfolio template has a built-in chat widget. Here's how to connect it to your local Ollama!

1

Open portfolio-ai/index.html

Use VS Code or any text editor

2

Find the sendMessage function

Search for async function sendMessage

3

Replace the fetch call

Use the code below to connect to Ollama:

const response = await fetch('http://localhost:11434/api/generate', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ model: 'llama3.2', prompt: `You are a portfolio AI for ${portfolioData.name}. Skills: ${portfolioData.skills.join(', ')}. User asked: ${text} Give a friendly, helpful answer:`, stream: false }) }); const data = await response.json(); addMessage(data.response);
๐Ÿ’ก Make sure ollama serve is running before testing the chat!

๐Ÿ”ง Troubleshooting

Ollama not starting?

tasklist | findstr ollama

Check if it's already running in the background

Chat not connecting?

1. Make sure ollama serve is running
2. Check URL is http://localhost:11434
3. Try: curl http://localhost:11434

Claude Code not working?

Make sure you're in the project folder:
cd path/to/your/portfolio
Then try: claude "help me"

๐ŸŽ‰ You're All Set!

Now you can use AI to build and customize anything. Next step โ€” pick a template and make it yours!

Browse Templates โ†’ Back to Kids Track