- 🎯 Quick Testing Guide
- 🐛 Common Issues & Solutions
- 🔧 Known Bugs & Workarounds
- 🚨 Critical Issues
- 📹 Demo Videos
- 🧪 Testing Scenarios
- 🔍 Debug Information
- 🗄️ Database Management
# Navigate to frontend directory
cd frontend
# Install dependencies
npm install
# Start development server
npm run dev
# Access the application
# Open: http://localhost:5173# Navigate to backend directory
cd backend
# Create virtual environment
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
# Install dependencies
pip install -r requirements.txt
# Start the backend server
python run.py
# Access the API
# Open: https://entangleme.onrender.com/docsEndpoint: POST /reset-db
Usage:
# Reset the entire database (DANGER: deletes all data!)
curl -X POST "https://entangleme.onrender.com/reset-db" \
-H "Content-Type: application/json" \
-d '{"confirmation": "yes"}'
# Check database status
curl "https://entangleme.onrender.com/db-status"Endpoint: GET /db-status
Usage:
# Get database status (JSON)
curl "https://entangleme.onrender.com/db-status"
# Get database status (HTML interface)
# Open: https://entangleme.onrender.com/db-status1. Reset Database Tool:
- Access: https://entangleme.onrender.com/reset-db
- Features:
- Type "yes" in the confirmation field
- Click "Reset Database" button
- Real-time validation
- Loading states and success/error messages
2. Database Status Tool:
- Access: https://entangleme.onrender.com/db-status
- Features:
- Real-time database status and information
- Auto-refresh every 30 seconds
- Visual representation of tables and record counts
- Expandable table sections with actual data
Problem: When you first enter the site, the "Get Started" and "Learn More" buttons may not be clickable.
Solution:
- Refresh the page (Ctrl+F5 or Cmd+Shift+R)
- If that doesn't work, clear browser cache and cookies
- Try opening in an incognito/private window
Problem: Users may appear to be connected but are actually disconnected due to browser closure without proper cleanup.
Solution:
- Wait 5-10 minutes for automatic cleanup
- Restart the backend server
- Use database reset: https://entangleme.onrender.com/reset-db
Problem: Quantum teleportation may fail or show incorrect results.
Solution:
- Check backend status: https://entangleme.onrender.com/health
- Test quantum endpoint:
curl -X POST "https://entangleme.onrender.com/api/v1/quantum/teleport" \ -H "Content-Type: application/json" \ -d '{"classical_bit": 0}'
Problem: Messages or status updates don't appear in real-time.
Solution:
- Check network connection
- Use Chrome, Firefox, or Edge (latest versions)
- Clear browser cache and cookies
- Try incognito mode
- Status: Known Issue
- Workaround: Refresh page
- Fix Status: In Progress
- Status: Known Issue
- Workaround: Manual server restart or database reset
- Fix Status: Planned
- Status: Occasional
- Workaround: Refresh quantum dashboard
- Fix Status: Under Investigation
Problem: When users close their browsers without properly leaving rooms, they remain connected in the backend.
Solution:
- For Users: Always click "Leave" before closing browser
- For Developers: Use database reset at https://entangleme.onrender.com/reset-db
Description: This video demonstrates the button responsiveness bug and how to fix it.
Steps Shown:
- Initial page load with non-responsive buttons
- Demonstration of the issue
- Solution: Page refresh
- Working buttons after refresh
Description: This video shows the room connection problems and user session issues.
Steps Shown:
- User A joins the room
- User B joins and connects with User A
- User A properly leaves using the "Leave" button
- User B closes browser without leaving
- User C tries to join but gets connected to User B (who's offline)
- Demonstration of the cleanup issue
Steps:
- Open application in browser
- Click "Get Started" → Should open username dialog
- Enter username (3+ characters) → Should join room
- Wait for second user or open second browser tab
- Send quantum bit (0 or 1) → Should teleport successfully
- Verify quantum visualization appears
Expected Results:
- ✅ All buttons responsive
- ✅ Username dialog appears
- ✅ Room joining works
- ✅ Quantum teleportation successful
- ✅ Visualization displays correctly
Steps:
- Enter username < 3 characters → Should show error
- Try to join with existing username → Should handle gracefully
- Close browser during active session → Should cleanup properly
- Test with slow network → Should show loading states
Steps:
- Open application in two browser windows
- Join with different usernames
- Test message exchange
- Test quantum teleportation
- Test user leaving behavior
Steps:
- Visit https://entangleme.onrender.com/db-status
- Check database status and tables
- Visit https://entangleme.onrender.com/reset-db
- Test database reset functionality
Browser Console:
// Check if React is loaded
console.log('React version:', React.version);
// Check if API is accessible
fetch('https://entangleme.onrender.com/health')
.then(response => response.json())
.then(data => console.log('API Status:', data))
.catch(error => console.error('API Error:', error));API Testing:
# Test health endpoint
curl https://entangleme.onrender.com/health
# Test quantum endpoint
curl -X POST "https://entangleme.onrender.com/api/v1/quantum/teleport" \
-H "Content-Type: application/json" \
-d '{"classical_bit": 1}'
# Test database status
curl https://entangleme.onrender.com/db-status
# Test database reset (DANGER!)
curl -X POST "https://entangleme.onrender.com/reset-db" \
-H "Content-Type: application/json" \
-d '{"confirmation": "yes"}'Check Database Status:
# Using curl
curl https://entangleme.onrender.com/db-status
# Using browser
# Open: https://entangleme.onrender.com/db-statusReset Database:
# Using curl
curl -X POST "https://entangleme.onrender.com/reset-db" \
-H "Content-Type: application/json" \
-d '{"confirmation": "yes"}'
# Using browser
# Open: https://entangleme.onrender.com/reset-db- Check This Guide: Review the sections above for common solutions
- GitHub Issues: Create an issue on the GitHub repository
- Team Contact: Reach out to team members:
- Lead: @atharhive
- Frontend: @akshad-exe
- Backend: @dev-Ninjaa
When reporting issues, please include:
- Browser: Chrome/Firefox/Safari/Edge version
- Operating System: Windows/Mac/Linux
- Steps to Reproduce: Detailed steps
- Expected vs Actual Behavior: What you expected vs what happened
- Console Logs: Any error messages from browser console
- Screenshots/Videos: Visual evidence if possible
- Buttons not working → Refresh page
- Can't join room → Check if room is full or restart server
- Quantum teleportation fails → Check backend status
- Real-time updates not working → Check network and browser
- User appears online but offline → Wait 5-10 minutes or restart server
- Visualization not showing → Refresh quantum dashboard
- Database issues → Use https://entangleme.onrender.com/db-status or reset database
- General issues → Clear cache and cookies, try incognito mode
💡 Pro Tip: Always use the "Leave" button before closing your browser to avoid session issues!
🔧 Developer Note: This guide will be updated as issues are resolved and new features are added.