← Back to ConnectUs AI

How It All Works

Simple architecture, maximum security, minimum cost. Every app runs in an isolated container behind Cloudflare.

Request Flow

When someone visits any tool, here's exactly what happens:

User Request → Response
User
Browser
phone / laptop
CDN + SSL
Cloudflare
HTTPS, DDoS, cache
Reverse Proxy
nginx
routes by URL path
App Container
Docker
isolated per app
Response
HTML/JSON
back to user
Key point: Each app runs in its own Docker container. If one crashes, nothing else is affected. They can't see each other's data. This is the same isolation model that AWS, Google Cloud, and every bank uses.

The Stack

Cloudflare
Global CDN with 300+ data centers
Free plan — SSL, DDoS, caching
nginx
Routes /qr → port 9100, /invoice → port 8800, etc.
Open source — reverse proxy
Docker
Each app = isolated container with its own filesystem
docker-compose per project
FastAPI (Python)
Handles API requests, serves HTML, runs AI calls
uvicorn ASGI server
Vanilla HTML/CSS/JS
No React, no build step, no node_modules — just files
Loads instantly, works everywhere

How Deployment Works

Push to Deploy
Developer
git push
one command
CI/CD
GitHub Actions
auto-triggered
Transfer
SCP to VPS
encrypted SSH
Build
Docker Build
fresh container
Live
Running
health checked
Zero-downtime deploys: Push code → GitHub Actions automatically builds, transfers, and restarts only the affected container. Every other app keeps running. Total deploy time: ~2 minutes.

Security Layers

7 layers of security with zero additional cost:

🔒

HTTPS Everywhere

Cloudflare provides free SSL certificates. All traffic is encrypted end-to-end. HSTS headers enforce HTTPS.

✓ Automatic, free
🛡️

DDoS Protection

Cloudflare absorbs attacks before they reach the server. 300+ data centers filter malicious traffic globally.

✓ Always on, free tier
📦

Container Isolation

Each app runs in its own Docker container with its own filesystem. If one app is compromised, others are unaffected.

✓ Process + network isolation
🚪

No Public Ports

Containers bind to localhost only (127.0.0.1). The only public entry point is nginx on port 80. No direct container access from the internet.

✓ Zero attack surface
🙈

Hidden Server IP

Cloudflare proxy hides the real server IP address. Attackers can't find or target the VPS directly.

✓ Proxied via Cloudflare
🔑

Secrets Management

API keys and passwords stored in GitHub Secrets. Injected at deploy time. Never in code, never in Git history.

✓ Zero secrets in source code
🧹

Auto Cleanup

Weekly Docker prune removes old images and build cache. Prevents disk fill and stale container vulnerabilities.

✓ Automated maintenance
🌐

Client-Side by Default

Most tools (password, QR, countdown, invoice) run 100% in the browser. No data sent to any server. Privacy by design.

✓ Your data stays local

Running Containers

Each project gets its own container on a dedicated port. nginx routes by URL path:

homepage
:9200 → /
Landing page
memory-api
:8100 → /api/v1/
Agent memory + ideas
crypto-bots
:8600 → /login
Trading dashboard
qr-gen
:9100 → /qr/
QR code generator
countdown
:9000 → /countdown/
Event countdown
password-gen
:8900 → /password/
Password generator
invoice-gen
:8800 → /invoice/
Invoice creator
name-generator
:8700 → /namegen/
Business names
compare-ai
:8500 → /compare/
Tool comparison
fullstack-tutorial
:8300 → /fullstacktutorial/
Course site
claude-code-guide
:8400 → /claudecode/
Beginner guide
xcaret-map
:8200 → /xcaret/
GPS resort map

Monthly Cost

Everything runs on one VPS. Total cost for 12 live applications:

ServiceWhat it doesCost
Contabo VPS (CX22)4 vCPU, 8GB RAM, 50GB SSD — runs all containers$6.99/mo
GoDaddy Domainconnectusai.com$1.00/mo
CloudflareCDN, SSL, DDoS protection, DNSFREE
GitHubCode hosting, CI/CD, secrets managementFREE
DockerContainer runtimeFREE
nginxReverse proxyFREE
OpenRouter APIAI for name generator (Gemini Flash)~$0.50/mo
Total~$8.50/mo
$8.50/month for 12 live applications with SSL, CDN, DDoS protection, auto-deploy, and container isolation. That's $0.71 per application per month. Enterprise-grade infrastructure at hobby prices.

Build Your Own

This entire platform was built by one person using Claude Code. You can learn the exact same setup:

🎓

Step 1: Install Claude Code

Complete beginner guide. Install, authenticate, write your first prompt. 10 minutes.

→ Start here
🚀

Step 2: Full Stack Tutorial

Set up VPS, domain, Cloudflare, Docker, GitHub Actions. Deploy your first app.

→ Learn the stack
💡

Step 3: Pick an Idea

260+ project ideas with revenue models, tech stacks, and priority rankings.

→ Browse ideas