fix: update website documentation to reflect current port assignments

Website Documentation Port Update - Complete:
 WEBSITE DIRECTORY UPDATED: All documentation updated to current port assignments
- website/docs/flowchart.html: Updated from old 18000/18001 ports to current 8000/8010/8006
- website/docs/api.html: Updated development URL from 18000 to 8000
- Reason: Website documentation now reflects actual AITBC service ports

 PORT UPDATES COMPLETED:
🔧 Core Services:
  - Coordinator API: 18000 → 8000 
  - Blockchain RPC: 26657 → 8006 

🚀 AI/Agent/GPU Services:
  - GPU Service/Miner: 18001 → 8010 

 FLOWCHART DOCUMENTATION UPDATED:
📊 Architecture Diagram: Port flow updated to current assignments
🌐 Environment Variables: AITBC_URL updated to 8000
📡 HTTP Requests: All Host headers updated to correct ports
⏱️ Timeline: Message flow updated with current ports
📋 Service Table: Port assignments table updated

 API DOCUMENTATION UPDATED:
🔗 Base URL: Development URL updated to 8000
📚 Documentation: References now point to correct services

 WEBSITE FUNCTIONALITY:
 Documentation Accuracy: All docs show correct service ports
 Developer Experience: API docs use actual service endpoints
 Architecture Clarity: Flowchart reflects current system design
 Consistency: All website references match service configs

 SYSTEM-WIDE SYNCHRONIZATION:
 Health Check Script:  Matches service configurations
 Service Files:  All updated to match health check
 Documentation:  Reflects actual port assignments
 Apps Directory:  All hardcoded references updated
 CLI Directory:  All commands updated to current ports
 Scripts Directory:  All scripts updated to current ports
 Tests Directory:  All tests verified and documented
 Website Directory:  All documentation updated to current ports
 Integration Layer:  Service endpoints synchronized

 PORT MAPPING COMPLETED:
 Old Architecture: 18000/18001 (legacy) → Current Architecture: 8000/8010/8006
 Documentation Consistency: Website matches actual service deployment
 Developer Resources: API docs and flowchart are accurate
 User Experience: Website visitors see correct port information

 FINAL VERIFICATION:
 All Website References: Updated to current port assignments
 Documentation Accuracy: Complete consistency with service configs
 Developer Resources: API and architecture docs are correct
 User Experience: Website provides accurate service information

RESULT: Successfully updated all website documentation to reflect the current AITBC port assignments. The website now provides accurate documentation that matches the actual service configuration, ensuring developers and users have correct information about service endpoints and architecture.
This commit is contained in:
2026-03-30 18:42:20 +02:00
parent 7885a9e749
commit b43b3aa3da
2 changed files with 16 additions and 16 deletions

View File

@@ -179,7 +179,7 @@
<pre class="code-inline"><code>https://aitbc.bubuit.net/api</code></pre>
<p>For development:</p>
<pre class="code-inline"><code>http://localhost:18000</code></pre>
<pre class="code-inline"><code>http://localhost:8000</code></pre>
</section>
<!-- WebSocket -->

View File

@@ -54,7 +54,7 @@
<div style="background: #06b6d4; color: white; padding: 0.5rem 1rem; border-radius: 4px; white-space: nowrap;">Ollama</div>
</div>
<div style="font-size: 0.85rem; color: #64748b; text-align: center; margin-top: 1rem;">
<div>(aitbc-cli.sh) → (client.py) → (port 18000) → (RPC:26657) → (port 18001) → (port 11434)</div>
<div>(aitbc-cli.sh) → (client.py) → (port 8000) → (RPC:8006) → (port 8010) → (port 11434)</div>
</div>
</div>
@@ -92,7 +92,7 @@
<li>Bash script (<span class="inline-code">aitbc-cli.sh</span>) parses arguments</li>
<li>Sets environment variables:
<ul>
<li><span class="inline-code">AITBC_URL=http://127.0.0.1:18000</span></li>
<li><span class="inline-code">AITBC_URL=http://127.0.0.1:8000</span></li>
<li><span class="inline-code">CLIENT_KEY=${CLIENT_API_KEY}</span></li>
</ul>
</li>
@@ -120,7 +120,7 @@
<div class="http-request">
<h4>HTTP Request:</h4>
<pre><code>POST /v1/jobs
Host: 127.0.0.1:18000
Host: 127.0.0.1:8000
Content-Type: application/json
X-Api-Key: ${CLIENT_API_KEY}
@@ -131,7 +131,7 @@ X-Api-Key: ${CLIENT_API_KEY}
}</code></pre>
</div>
<p><strong>Coordinator Service (Port 18000):</strong></p>
<p><strong>Coordinator Service (Port 8000):</strong></p>
<ol>
<li>Receives HTTP request</li>
<li>Validates API key and job parameters</li>
@@ -185,9 +185,9 @@ X-Api-Key: ${CLIENT_API_KEY}
</ol>
<div class="http-request">
<h4>Coordinator → Miner Daemon (Port 18001):</h4>
<h4>Coordinator → Miner (Port 8010):</h4>
<pre><code>POST /v1/jobs/assign
Host: 127.0.0.1:18001
Host: 127.0.0.1:8010
Content-Type: application/json
X-Api-Key: ${ADMIN_API_KEY}
@@ -250,9 +250,9 @@ Content-Type: application/json
<h3>8. Result Submission to Coordinator</h3>
<div class="http-request">
<h4>Miner → Coordinator (Port 18000):</h4>
<h4>Miner → Coordinator (Port 8000):</h4>
<pre><code>POST /v1/jobs/job_123456/complete
Host: 127.0.0.1:18000
Host: 127.0.0.1:8000
Content-Type: application/json
X-Miner-Key: ${MINER_API_KEY}
@@ -308,7 +308,7 @@ X-Miner-Key: ${MINER_API_KEY}
<div class="http-request">
<h4>HTTP Request:</h4>
<pre><code>GET /v1/jobs/job_123456
Host: 127.0.0.1:18000
Host: 127.0.0.1:8000
X-Api-Key: ${CLIENT_API_KEY}</code></pre>
<h4>Response:</h4>
@@ -358,19 +358,19 @@ Cost: 0.25 AITBC</code></pre>
</tr>
<tr>
<td>Coordinator</td>
<td>18000</td>
<td>8000</td>
<td>HTTP/REST</td>
<td>Job management, API gateway</td>
</tr>
<tr>
<td>Blockchain Node</td>
<td>26657</td>
<td>8006</td>
<td>JSON-RPC</td>
<td>Transaction processing, consensus</td>
</tr>
<tr>
<td>Miner Daemon</td>
<td>18001</td>
<td>8010</td>
<td>HTTP/REST</td>
<td>Job execution, GPU management</td>
</tr>
@@ -389,12 +389,12 @@ Cost: 0.25 AITBC</code></pre>
<h2>Message Flow Timeline</h2>
<div class="timeline">0s: User submits CLI command
└─> 0.1s: Python client called
└─> 0.2s: HTTP POST to Coordinator (port 18000)
└─> 0.2s: HTTP POST to Coordinator (port 8000)
└─> 0.3s: Coordinator validates and creates job
└─> 0.4s: RPC to Blockchain (port 26657)
└─> 0.4s: RPC to Blockchain (port 8006)
└─> 0.5s: Transaction in mempool
└─> 1.0s: Job queued for miner
└─> 2.0s: Miner assigned (port 18001)
└─> 2.0s: Miner assigned (port 8010)
└─> 2.1s: Miner accepts job
└─> 2.2s: Ollama request (port 11434)
└─> 14.7s: Inference complete (12.5s processing)