cyclecad 3.2.1 → 3.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CLAUDE.md +155 -1
- package/DOCKER-SETUP-VERIFICATION.md +399 -0
- package/DOCKER-TESTING.md +463 -0
- package/FUSION360_MODULES.md +478 -0
- package/FUSION_MODULES_README.md +352 -0
- package/INTEGRATION_SNIPPETS.md +608 -0
- package/KILLER-FEATURES-DELIVERY.md +469 -0
- package/MODULES_SUMMARY.txt +337 -0
- package/QUICK_REFERENCE.txt +298 -0
- package/README-DOCKER-TESTING.txt +438 -0
- package/app/index.html +23 -10
- package/app/js/fusion-help.json +1808 -0
- package/app/js/help-module-v3.js +1096 -0
- package/app/js/killer-features-help.json +395 -0
- package/app/js/killer-features.js +1508 -0
- package/app/js/modules/fusion-assembly.js +842 -0
- package/app/js/modules/fusion-cam.js +785 -0
- package/app/js/modules/fusion-data.js +814 -0
- package/app/js/modules/fusion-drawing.js +844 -0
- package/app/js/modules/fusion-inspection.js +756 -0
- package/app/js/modules/fusion-render.js +774 -0
- package/app/js/modules/fusion-simulation.js +986 -0
- package/app/js/modules/fusion-sketch.js +1044 -0
- package/app/js/modules/fusion-solid.js +1095 -0
- package/app/js/modules/fusion-surface.js +949 -0
- package/app/tests/FUSION_TEST_SUITE.md +266 -0
- package/app/tests/README.md +77 -0
- package/app/tests/TESTING-CHECKLIST.md +177 -0
- package/app/tests/TEST_SUITE_SUMMARY.txt +236 -0
- package/app/tests/brep-live-test.html +848 -0
- package/app/tests/docker-integration-test.html +811 -0
- package/app/tests/fusion-all-tests.html +670 -0
- package/app/tests/fusion-assembly-tests.html +461 -0
- package/app/tests/fusion-cam-tests.html +421 -0
- package/app/tests/fusion-simulation-tests.html +421 -0
- package/app/tests/fusion-sketch-tests.html +613 -0
- package/app/tests/fusion-solid-tests.html +529 -0
- package/app/tests/index.html +453 -0
- package/app/tests/killer-features-test.html +509 -0
- package/app/tests/run-tests.html +874 -0
- package/app/tests/step-import-live-test.html +1115 -0
- package/app/tests/test-agent-v3.html +93 -696
- package/architecture-dashboard.html +1970 -0
- package/docs/API-REFERENCE.md +1423 -0
- package/docs/BREP-LIVE-TEST-GUIDE.md +453 -0
- package/docs/DEVELOPER-GUIDE-v3.md +795 -0
- package/docs/DOCKER-QUICK-TEST.md +376 -0
- package/docs/FUSION-FEATURES-GUIDE.md +2513 -0
- package/docs/FUSION-TUTORIAL.md +1203 -0
- package/docs/INFRASTRUCTURE-GUIDE-INDEX.md +327 -0
- package/docs/KEYBOARD-SHORTCUTS.md +402 -0
- package/docs/KILLER-FEATURES-INTEGRATION.md +412 -0
- package/docs/KILLER-FEATURES-SUMMARY.md +424 -0
- package/docs/KILLER-FEATURES-TUTORIAL.md +784 -0
- package/docs/KILLER-FEATURES.md +562 -0
- package/docs/QUICK-REFERENCE.md +282 -0
- package/docs/README-v3-DOCS.md +274 -0
- package/docs/TUTORIAL-v3.md +1190 -0
- package/docs/architecture-dashboard.html +1970 -0
- package/docs/architecture-v3.html +1038 -0
- package/linkedin-post-v3.md +58 -0
- package/package.json +1 -1
- package/scripts/dev-setup.sh +338 -0
- package/scripts/docker-health-check.sh +159 -0
- package/scripts/integration-test.sh +311 -0
- package/scripts/test-docker.sh +515 -0
|
@@ -0,0 +1,327 @@
|
|
|
1
|
+
# cycleCAD & ExplodeView Infrastructure Guide Index
|
|
2
|
+
|
|
3
|
+
Comprehensive documentation for deploying, testing, and maintaining Docker infrastructure and HTTPS configuration.
|
|
4
|
+
|
|
5
|
+
## Quick Navigation
|
|
6
|
+
|
|
7
|
+
### Docker & Local Development
|
|
8
|
+
|
|
9
|
+
| Document | Purpose | Time to Read |
|
|
10
|
+
|----------|---------|--------------|
|
|
11
|
+
| **[DOCKER-QUICK-TEST.md](./DOCKER-QUICK-TEST.md)** | Get Docker infrastructure running locally | 10 min |
|
|
12
|
+
| **[scripts/test-docker.sh](../scripts/test-docker.sh)** | Automated testing of all services | 5 min to run |
|
|
13
|
+
| **[scripts/dev-setup.sh](../scripts/dev-setup.sh)** | One-command dev environment setup | 3 min to run |
|
|
14
|
+
| **[DOCKER-TUTORIAL.md](./DOCKER-TUTORIAL.md)** | Deep dive into containerization | 20 min |
|
|
15
|
+
|
|
16
|
+
### HTTPS & GitHub Pages
|
|
17
|
+
|
|
18
|
+
| Document | Purpose | Time to Read |
|
|
19
|
+
|----------|---------|--------------|
|
|
20
|
+
| **[HTTPS-SETUP.md](../../exploreview/docs/HTTPS-SETUP.md)** | Enable HTTPS on exploreview.com | 15 min |
|
|
21
|
+
| DNS Configuration Examples | Step-by-step for GoDaddy, Namecheap, Google Domains | 5 min |
|
|
22
|
+
| Testing Checklist | Verify HTTPS is working correctly | 5 min |
|
|
23
|
+
|
|
24
|
+
### Development & Integration
|
|
25
|
+
|
|
26
|
+
| Document | Purpose | Time to Read |
|
|
27
|
+
|----------|---------|--------------|
|
|
28
|
+
| **[DEVELOPER-GUIDE.md](./DEVELOPER-GUIDE.md)** | Architecture and codebase overview | 30 min |
|
|
29
|
+
| **[MCP-SERVER.md](./MCP-SERVER.md)** | Integration with AI via MCP | 15 min |
|
|
30
|
+
| **[CLI-INTEGRATION.md](./CLI-INTEGRATION.md)** | Command-line interface | 10 min |
|
|
31
|
+
| **[API-SERVER.md](./API-SERVER.md)** | REST API endpoints | 15 min |
|
|
32
|
+
|
|
33
|
+
## Getting Started (5 Minutes)
|
|
34
|
+
|
|
35
|
+
### Quick Start for Docker
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Clone and setup
|
|
39
|
+
cd ~/cyclecad
|
|
40
|
+
chmod +x scripts/*.sh
|
|
41
|
+
|
|
42
|
+
# Run automated tests (all Docker services)
|
|
43
|
+
./scripts/test-docker.sh
|
|
44
|
+
|
|
45
|
+
# Or start development environment
|
|
46
|
+
./scripts/dev-setup.sh
|
|
47
|
+
|
|
48
|
+
# Expected output:
|
|
49
|
+
# ✓ All tests passed!
|
|
50
|
+
# Services running at:
|
|
51
|
+
# - cyclecad: http://localhost:8080/app/
|
|
52
|
+
# - converter: http://localhost:8787/health
|
|
53
|
+
# - signaling: http://localhost:8788/health
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
### Quick Start for HTTPS
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# Read the setup guide
|
|
60
|
+
cat ~/exploreview/docs/HTTPS-SETUP.md
|
|
61
|
+
|
|
62
|
+
# Key steps:
|
|
63
|
+
# 1. Update DNS at your registrar (5-30 min)
|
|
64
|
+
# 2. Verify with: dig exploreview.com
|
|
65
|
+
# 3. Enable "Enforce HTTPS" in GitHub Settings
|
|
66
|
+
# 4. Test with: curl -I https://exploreview.com
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
## Common Tasks
|
|
70
|
+
|
|
71
|
+
### Docker Tasks
|
|
72
|
+
|
|
73
|
+
| Task | Command |
|
|
74
|
+
|------|---------|
|
|
75
|
+
| Test all services | `./scripts/test-docker.sh` |
|
|
76
|
+
| Start dev environment | `./scripts/dev-setup.sh` |
|
|
77
|
+
| View real-time logs | `docker-compose logs -f` |
|
|
78
|
+
| Stop all services | `docker-compose down` |
|
|
79
|
+
| Full cleanup | `docker-compose down -v` |
|
|
80
|
+
| Rebuild images | `docker-compose build --no-cache` |
|
|
81
|
+
| Check service health | `docker-compose ps` |
|
|
82
|
+
| Enter service shell | `docker-compose exec cyclecad sh` |
|
|
83
|
+
|
|
84
|
+
### HTTPS Tasks
|
|
85
|
+
|
|
86
|
+
| Task | Command |
|
|
87
|
+
|------|---------|
|
|
88
|
+
| Check DNS status | `dig exploreview.com` |
|
|
89
|
+
| Verify certificate | `curl -I https://exploreview.com` |
|
|
90
|
+
| Check cert expiry | `echo \| openssl s_client -servername exploreview.com -connect exploreview.com:443 2>/dev/null \| openssl x509 -noout -dates` |
|
|
91
|
+
| Test SSL validity | `openssl s_client -connect exploreview.com:443 -servername exploreview.com` |
|
|
92
|
+
| Monitor DNS globally | Visit: https://www.whatsmydns.net/ → search `exploreview.com` |
|
|
93
|
+
|
|
94
|
+
## File Structure
|
|
95
|
+
|
|
96
|
+
```
|
|
97
|
+
cyclecad/
|
|
98
|
+
├── docs/
|
|
99
|
+
│ ├── DOCKER-QUICK-TEST.md ← Start here for Docker
|
|
100
|
+
│ ├── DOCKER-TUTORIAL.md ← Deep dive into containers
|
|
101
|
+
│ ├── INFRASTRUCTURE-GUIDE-INDEX.md ← You are here
|
|
102
|
+
│ ├── DEVELOPER-GUIDE.md ← Architecture overview
|
|
103
|
+
│ ├── MCP-SERVER.md ← AI integration
|
|
104
|
+
│ ├── CLI-INTEGRATION.md ← Command-line tools
|
|
105
|
+
│ ├── API-SERVER.md ← REST API docs
|
|
106
|
+
│ └── [other docs...]
|
|
107
|
+
│
|
|
108
|
+
├── scripts/
|
|
109
|
+
│ ├── test-docker.sh ← Automated Docker testing (executable)
|
|
110
|
+
│ └── dev-setup.sh ← One-command dev setup (executable)
|
|
111
|
+
│
|
|
112
|
+
├── server/
|
|
113
|
+
│ ├── api-server.js ← REST API server
|
|
114
|
+
│ ├── mcp-server.js ← MCP integration
|
|
115
|
+
│ ├── Dockerfile.converter ← STEP→GLB converter
|
|
116
|
+
│ └── Dockerfile.signaling ← WebSocket signaling
|
|
117
|
+
│
|
|
118
|
+
├── docker-compose.yml ← All services definition
|
|
119
|
+
├── Dockerfile ← Main app container
|
|
120
|
+
└── package.json
|
|
121
|
+
|
|
122
|
+
exploreview/
|
|
123
|
+
├── docs/
|
|
124
|
+
│ ├── HTTPS-SETUP.md ← Start here for HTTPS
|
|
125
|
+
│ ├── CNAME ← GitHub Pages domain (verified)
|
|
126
|
+
│ ├── demo/ ← 3D viewer app
|
|
127
|
+
│ └── [other assets...]
|
|
128
|
+
│
|
|
129
|
+
└── [other files...]
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
## Service Architecture
|
|
133
|
+
|
|
134
|
+
```
|
|
135
|
+
┌─────────────────────────────────────────────────────┐
|
|
136
|
+
│ User Browser (localhost:8080) │
|
|
137
|
+
└─────────────────────────────────────────────────────┘
|
|
138
|
+
↓ ↓
|
|
139
|
+
┌──────────────────┐ ┌──────────────────┐
|
|
140
|
+
│ Web App │ │ 3D Viewer │
|
|
141
|
+
│ (nginx) │ │ (Three.js) │
|
|
142
|
+
│ Port 8080 │ │ │
|
|
143
|
+
│ Files: /docs/ │ │ Feature panels │
|
|
144
|
+
└──────────────────┘ └──────────────────┘
|
|
145
|
+
↓ ↓
|
|
146
|
+
├────────────────────────┤
|
|
147
|
+
↓ ↓
|
|
148
|
+
┌──────────────────┐ ┌──────────────────┐
|
|
149
|
+
│ Converter │ │ Signaling │
|
|
150
|
+
│ (FastAPI) │ │ (Node.js) │
|
|
151
|
+
│ Port 8787 │ │ Port 8788 │
|
|
152
|
+
│ STEP→GLB │ │ WebSocket │
|
|
153
|
+
│ 4 GB memory │ │ Collab signals │
|
|
154
|
+
└──────────────────┘ └──────────────────┘
|
|
155
|
+
OpenCascade.js Redis (optional)
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Troubleshooting Quick Reference
|
|
159
|
+
|
|
160
|
+
### Docker Won't Start
|
|
161
|
+
|
|
162
|
+
```bash
|
|
163
|
+
# Check Docker is running
|
|
164
|
+
docker ps
|
|
165
|
+
|
|
166
|
+
# If not running: start Docker Desktop (macOS/Windows) or:
|
|
167
|
+
sudo systemctl start docker (Linux)
|
|
168
|
+
|
|
169
|
+
# Check for port conflicts
|
|
170
|
+
lsof -i :8080
|
|
171
|
+
lsof -i :8787
|
|
172
|
+
lsof -i :8788
|
|
173
|
+
|
|
174
|
+
# Free up ports or change in docker-compose.yml
|
|
175
|
+
```
|
|
176
|
+
|
|
177
|
+
### Health Checks Failing
|
|
178
|
+
|
|
179
|
+
```bash
|
|
180
|
+
# View detailed logs
|
|
181
|
+
docker-compose logs converter
|
|
182
|
+
|
|
183
|
+
# Check service is listening
|
|
184
|
+
curl http://localhost:8787/health
|
|
185
|
+
curl http://localhost:8788/health
|
|
186
|
+
|
|
187
|
+
# Increase memory if converter is OOM
|
|
188
|
+
# Docker Desktop Settings → Resources → Memory → 8GB+
|
|
189
|
+
```
|
|
190
|
+
|
|
191
|
+
### HTTPS Certificate Not Appearing
|
|
192
|
+
|
|
193
|
+
```bash
|
|
194
|
+
# Verify DNS is propagated first
|
|
195
|
+
dig exploreview.com | grep "185.199"
|
|
196
|
+
|
|
197
|
+
# Check CNAME file exists
|
|
198
|
+
cat docs/CNAME
|
|
199
|
+
|
|
200
|
+
# If DNS OK, wait 15-20 minutes for Let's Encrypt
|
|
201
|
+
# Then try removing/re-adding custom domain in GitHub Settings
|
|
202
|
+
|
|
203
|
+
# Monitor: curl -s https://api.github.com/repos/vvlars-cmd/exploreview/pages | jq .
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
### Test Script Failing
|
|
207
|
+
|
|
208
|
+
```bash
|
|
209
|
+
# Run with verbose mode to see what's failing
|
|
210
|
+
docker-compose logs -f
|
|
211
|
+
|
|
212
|
+
# Skip build if images already exist
|
|
213
|
+
./scripts/test-docker.sh --skip-build
|
|
214
|
+
|
|
215
|
+
# Clean rebuild
|
|
216
|
+
./scripts/test-docker.sh --cleanup
|
|
217
|
+
docker-compose build --no-cache
|
|
218
|
+
./scripts/test-docker.sh
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
## Performance Benchmarks
|
|
222
|
+
|
|
223
|
+
| Operation | Expected Time |
|
|
224
|
+
|-----------|----------------|
|
|
225
|
+
| Docker build (cold) | 5-10 min |
|
|
226
|
+
| Service startup | 30 sec |
|
|
227
|
+
| Health checks | 10 sec |
|
|
228
|
+
| Full test suite | 2-3 min |
|
|
229
|
+
| Dev server start | 5 sec |
|
|
230
|
+
| DNS propagation | 5 min - 48 hours |
|
|
231
|
+
| HTTPS cert issue | 5-15 min after DNS |
|
|
232
|
+
|
|
233
|
+
## Environment Variables
|
|
234
|
+
|
|
235
|
+
### Docker Compose (docker-compose.yml)
|
|
236
|
+
|
|
237
|
+
```bash
|
|
238
|
+
CONVERTER_URL=http://converter:8787
|
|
239
|
+
SIGNALING_URL=ws://signaling:8788
|
|
240
|
+
LOG_LEVEL=info
|
|
241
|
+
WORKERS=2
|
|
242
|
+
MAX_FILE_SIZE=500
|
|
243
|
+
TIMEOUT=300
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### Dev Setup (dev-setup.sh)
|
|
247
|
+
|
|
248
|
+
```bash
|
|
249
|
+
DEV_PORT=8000 # Port for local dev server
|
|
250
|
+
OPEN_BROWSER=true # Auto-open browser
|
|
251
|
+
USE_DOCKER=false # Use Docker instead of local
|
|
252
|
+
CLEAN_INSTALL=false # Remove node_modules
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
## Monitoring & Maintenance
|
|
256
|
+
|
|
257
|
+
### Regular Checks
|
|
258
|
+
|
|
259
|
+
```bash
|
|
260
|
+
# Daily: Monitor logs
|
|
261
|
+
docker-compose logs -f --tail 50
|
|
262
|
+
|
|
263
|
+
# Weekly: Check resource usage
|
|
264
|
+
docker stats
|
|
265
|
+
|
|
266
|
+
# Monthly: Verify HTTPS certificate
|
|
267
|
+
curl -I https://exploreview.com
|
|
268
|
+
|
|
269
|
+
# Monthly: Check GitHub Pages status
|
|
270
|
+
curl -I https://api.github.com/repos/vvlars-cmd/exploreview/pages
|
|
271
|
+
```
|
|
272
|
+
|
|
273
|
+
### Automated Monitoring (Optional)
|
|
274
|
+
|
|
275
|
+
Create a cron job to monitor services:
|
|
276
|
+
|
|
277
|
+
```bash
|
|
278
|
+
# Edit crontab
|
|
279
|
+
crontab -e
|
|
280
|
+
|
|
281
|
+
# Add: Check services every hour
|
|
282
|
+
0 * * * * cd ~/cyclecad && docker-compose ps | grep -q unhealthy && \
|
|
283
|
+
echo "⚠️ Service unhealthy" | mail -s "cycleCAD Alert" your-email@example.com
|
|
284
|
+
|
|
285
|
+
# Add: Check HTTPS certificate monthly
|
|
286
|
+
0 0 1 * * echo | openssl s_client -servername exploreview.com \
|
|
287
|
+
-connect exploreview.com:443 2>/dev/null | \
|
|
288
|
+
openssl x509 -noout -dates | mail -s "ExploreView HTTPS Status" your-email@example.com
|
|
289
|
+
```
|
|
290
|
+
|
|
291
|
+
## Related Documentation
|
|
292
|
+
|
|
293
|
+
- **ExplodeView**: See exploreview/docs/ for 3D viewer documentation
|
|
294
|
+
- **cycleCAD**: See cyclecad/docs/ for modeler documentation
|
|
295
|
+
- **Deployment**: See docker-compose.yml comments for production config
|
|
296
|
+
- **API**: See server/api-server.js for endpoint definitions
|
|
297
|
+
- **CLI**: See bin/cyclecad-cli.js for CLI tool usage
|
|
298
|
+
|
|
299
|
+
## Support & Resources
|
|
300
|
+
|
|
301
|
+
| Resource | Link |
|
|
302
|
+
|----------|------|
|
|
303
|
+
| Docker Compose Docs | https://docs.docker.com/compose/ |
|
|
304
|
+
| GitHub Pages HTTPS | https://docs.github.com/en/pages/getting-started-with-github-pages/securing-your-github-pages-site-with-https |
|
|
305
|
+
| Let's Encrypt | https://letsencrypt.org/ |
|
|
306
|
+
| DNS Checker | https://www.whatsmydns.net/ |
|
|
307
|
+
| SSL Validator | https://www.ssllabs.com/ssltest/ |
|
|
308
|
+
|
|
309
|
+
## Last Updated
|
|
310
|
+
|
|
311
|
+
- **Infrastructure**: 2026-03-31
|
|
312
|
+
- **HTTPS Setup**: 2026-03-31
|
|
313
|
+
- **Docker Config**: 2026-03-26
|
|
314
|
+
|
|
315
|
+
## Contributing
|
|
316
|
+
|
|
317
|
+
When updating these docs:
|
|
318
|
+
|
|
319
|
+
1. Update this index if adding new guide
|
|
320
|
+
2. Include time estimates for readers
|
|
321
|
+
3. Provide copy-paste commands for quick start
|
|
322
|
+
4. Add troubleshooting for new features
|
|
323
|
+
5. Test all commands before committing
|
|
324
|
+
|
|
325
|
+
---
|
|
326
|
+
|
|
327
|
+
**Questions?** Check the relevant document above or open an issue on GitHub.
|