- Node.js ≥16.0.0
- npm ≥8.0.0
- Git (optional, for cloning)
# Clone or navigate to your project directory
cd /home/t1/GGcode-node_DEV
# Install dependencies
npm install# Start with debugging support
npm run dev
# Start with auto-restart on file changes
npm run dev:watch# Build client assets first
npm run build:client
# Start production server
npm run prod# Start server (basic)
npm start
# Start with production environment
NODE_ENV=production npm startOnce running, access the application at:
- Local: http://localhost:6990
- Network: http://[your-ip]:6990
- Use the left editor to write your GGcode
- Get real-time syntax highlighting
- Use AI Chat button for assistance
- Click the "Compile" button
- View compilation results in the right panel
- Check annotations for errors or warnings
- Click the "Visualizer" button
- View 3D representation of your G-code
- Use orbit controls to navigate (drag to rotate, scroll to zoom)
- Camera Toggle 🔄: Switch between "flat 3D" (orthographic) and "real 3D" (perspective)
- Export Image 📸: Save current 3D view as PNG file
- Left Click + Drag: Rotate view
- Right Click + Drag: Pan view
- Mouse Wheel: Zoom in/out
▶️ Play: Start toolpath simulation- ⏸️ Pause: Pause simulation
- ⏮️ Rewind: Reset to beginning
- ⏭️ Forward: Skip forward
- Speed Slider: Adjust simulation speed
- 📷 Camera: Toggle between orthographic/perspective views
- 📤 Export: Download current view as PNG image
# Save GGcode input
# Click "Save" button in toolbar
# Save G-code output
# Click "Export" button in toolbar# Click "Open" button to load GGcode or text files
# Drag and drop files onto the editor# Check code quality
npm run lint
# Auto-fix linting issues
npm run lint:fix
# Format code
npm run format
# Check formatting
npm run format:check# Run all tests
npm run test
# Run tests in watch mode
npm run test:watch
# Run tests with coverage
npm run test:coverage# Build client assets only
npm run build:client
# Full build (lint + test + build)
npm run build
# Production build (includes format check)
npm run build:prod# Check project health
npm run maintenance:health
# Update dependencies
npm run maintenance:deps
# Generate documentation
npm run maintenance:docs
# Run all maintenance tasks
npm run maintenance:all# Smart commit (runs checks first)
npm run commit
# Update project structure
npm run update-structure
# Update changelog
npm run update-changelog# Clear saved data
# Click "Clear" button in UI
# Clear build artifacts
npm run clean
# Health check
npm run health-checkCreate .env file:
AI_ENDPOINT=http://localhost:11434
OLLAMA_MODEL=deepseek-coder-v2:16b- Default Port: 6990
- Debug Port: 9229 (when using
--inspect)
# Check Node.js version
node --version
# Clear node_modules and reinstall
rm -rf node_modules package-lock.json
npm install- Check GGcode syntax in left editor
- Look at annotations for specific errors
- Use AI Chat for help
- Ensure WebGL support in browser
- Check browser console for errors
- Try refreshing the page
# Start with debugging enabled
npm run dev
# Open Chrome DevTools at chrome://inspect
# Or visit http://localhost:9229// Simple square
move(0, 0, 0)
line(10, 0, 0)
line(10, 10, 0)
line(0, 10, 0)
line(0, 0, 0)
- Click "AI Chat" button
- Ask questions about GGcode syntax
- Request code examples or explanations
- ✅ GGcode Editor with syntax highlighting
- ✅ Real-time Compilation to G-code
- ✅ 3D Visualization with Three.js
- ✅ Toolpath Simulation with controls
- ✅ File Operations (open/save/export)
- ✅ AI Assistant integration
- ✅ Camera Mode Switching (Orthographic ↔ Perspective)
- ✅ Image Export functionality
- ✅ Enhanced Performance monitoring
- Check Help button in the UI
- Use AI Chat for coding assistance
- Review console logs for technical issues
- Server logs:
server.log,nohup.out - Browser console: F12 → Console tab
- Build logs: Terminal output during builds
Your GGcode Compiler is now ready to use. Start by writing some GGcode and watching it transform into G-code with beautiful 3D visualizations!