RUNLOCALAIv38
->Will it run?Best GPUCompareTroubleshootStartLearnPulseModelsHardwareToolsBench
Run check
RUNLOCALAI

Independently operated catalog for local-AI hardware and software. Hand-written verdicts. Source-cited claims. Reproducible commands when we have them.

OP·Eruo Fredoline
DIR
  • Models
  • Hardware
  • Tools
  • Benchmarks
TOOLS
  • Will it run?
  • Compare hardware
  • Cost vs cloud
  • Choose my GPU
  • Prompting kits
  • Quick answers
REF
  • All buyer guides
  • Learn local AI
  • Methodology
  • Glossary
  • Errors KB
  • Trust
EDITOR
  • About
  • Author
  • How we make money
  • Editorial policy
  • Contact
LEGAL
  • Privacy
  • Terms
  • Sitemap
MAIL · MONTHLY DIGEST
Get monthly local AI changes
Monthly recap. No spam.
DISCLOSURE

Some links on this site are affiliate links (Amazon Associates and other first-class retailers). When you buy through them, we earn a small commission at no extra cost to you. Affiliate links do not influence our verdicts — there are cards we rate highly that we don't have affiliate relationships with, and cards that sell well that we refuse to recommend. Read more →

© 2026 runlocalai.coIndependently operated
RUNLOCALAI · v38
  1. >
  2. Home
  3. /Learn
  4. /Courses
  5. /Capstone: Full-Stack AI App
  6. /Ch. 1
Capstone: Full-Stack AI App

01. Capstone Scope

Chapter 1 of 18 · 10 min
KEY INSIGHT

Scope creep kills projects—define boundaries early and resist adding features until the core loop works in production.

This capstone brings together every layer of a production AI application. The goal is not to build a demo—it is to ship something that handles real traffic, fails gracefully, and can be maintained by a team. The scope covers model serving infrastructure, API gateway design, frontend implementation, integration testing, security hardening, Docker Compose deployment, CI/CD automation, monitoring, and documentation.

The project is a document Q&A application. Users upload PDFs and ask questions in natural language. The backend uses a local LLM for inference. This setup tests every component in a realistic scenario: file handling, async processing, streaming responses, rate limiting, and monitoring queue depth.

Key technical decisions shape the scope. The model serving layer uses llama.cpp for CPU inference or vLLM for GPU acceleration—vLLM provides better throughput for multi-user scenarios but requires CUDA. The API gateway runs nginx with Lua scripting for request routing and authentication. The frontend is a single-page React application with Server-Sent Events for streaming. PostgreSQL stores user data and conversation history. Redis handles session state and caching. All services containerize with Docker Compose, with Kubernetes manifests provided for production clusters.

Failure modes determine scope boundaries. Long-running inference jobs need timeout handling. Large PDF uploads require size limits and virus scanning. Rate limiting prevents resource exhaustion. Circuit breakers protect against downstream service failures. These concerns drive architecture decisions throughout the course.

Local verification checkpoint

Run the smallest example from this chapter in a local workspace and record the package version, runtime, data path, and observed output. If the result depends on model size, vector count, CPU/GPU backend, or available memory, note that constraint beside the exercise so the lesson remains reproducible.

Local verification checkpoint

Run the smallest example from this chapter in a local workspace and record the package version, runtime, data path, and observed output. If the result depends on model size, vector count, CPU/GPU backend, or available memory, note that constraint beside the exercise so the lesson remains reproducible.

EXERCISE

Write a one-page specification document covering the user flow, API endpoints, infrastructure requirements, and explicit out-of-scope items.

← Overview
Capstone: Full-Stack AI App
Chapter 2 →
Architecture Design