Get up and running in 5 minutes!
✅ Python 3.11.7 installed ✅ Node.js 18+ installed ✅ All dependencies installed
cd /Users/gagan/llm-session-manager/backend
# Start the server
uvicorn app.main:app --reloadExpected Output:
INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)
INFO: Application startup complete.
✅ Backend is running at http://localhost:8000
cd /Users/gagan/llm-session-manager/frontend
# Install dependencies (first time only)
npm install
# Start development server
npm run devExpected Output:
VITE v5.0.8 ready in 500 ms
➜ Local: http://localhost:3000/
✅ Frontend is running at http://localhost:3000
cd /Users/gagan/llm-session-manager/backend
# Generate test tokens
python3 generate_tokens.pyYou'll get 3 tokens:
- ALICE (Host) - eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
- BOB (Editor) - eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
- CHARLIE (Viewer) - eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...
💾 Tokens are also saved to test_tokens.txt
- Open: http://localhost:3000
- Click: "Create New Session"
- Login:
- Username:
alice - Token: [Paste Alice's token]
- Username:
- Click: "Join Session"
- Copy the Session ID from URL (e.g.,
session_1729180800000)
- Open: http://localhost:3000 (in incognito mode)
- Click: "Join Session"
- Paste the Session ID from Alice
- Login:
- Username:
bob - Token: [Paste Bob's token]
- Username:
- Click: "Join Session"
- Both Alice and Bob in the Presence Bar
- Green connection indicator
- Alice has crown 👑 (Host)
- Bob has pencil ✏️ (Editor)
Test Chat:
- Alice: Type "Hi Bob!" and press Send
- Bob: Type "Hi Alice!" and press Send
- ✅ Messages appear instantly in both browsers
Test Cursor Tracking:
- In Bob's browser, find "Cursor Simulator"
- Enter: File
main.py, Line42, Column10 - Click "Update Cursor"
- ✅ Alice sees Bob's cursor at main.py:42:10
Test Code Comments:
- In Alice's browser, click the chat button to toggle to "Code Comment" mode
- Enter: File
auth.py, Line125, Comment "Needs review" - Click Send
- ✅ Bob sees a yellow code comment with file reference
Test Presence:
- In Bob's browser, click "Set idle" or "Set away"
- ✅ Bob's status indicator changes color in Alice's browser
# Check if dependencies are installed
cd backend
pip list | grep -E "fastapi|uvicorn|jose|passlib"
# Reinstall if needed
pip install fastapi uvicorn python-jose[cryptography] passlib[bcrypt]# Clear and reinstall
cd frontend
rm -rf node_modules package-lock.json
npm install# Check if you're in backend directory
cd /Users/gagan/llm-session-manager/backend
# Try again
python3 generate_tokens.py- Make sure backend is running (Terminal 1)
- Check browser console for errors (F12)
- Regenerate tokens if they expired
- Refresh the page
# Backend (Terminal 1)
cd /Users/gagan/llm-session-manager/backend
uvicorn app.main:app --reload
# Frontend (Terminal 2)
cd /Users/gagan/llm-session-manager/frontend
npm run dev
# Generate Tokens (Terminal 3)
cd /Users/gagan/llm-session-manager/backend
python3 generate_tokens.py
# View saved tokens
cat backend/test_tokens.txt- Frontend: http://localhost:3000
- Backend: http://localhost:8000
- API Docs: http://localhost:8000/docs
- Alice - Host (full permissions)
- Bob - Editor (can chat, comment, share cursor)
- Charlie - Viewer (read-only)
✅ Multi-user sessions (unlimited users) ✅ Real-time chat messaging ✅ Code comments at specific file:line ✅ Cursor position tracking ✅ Presence status (active/idle/away) ✅ Emoji reactions ✅ Join/leave notifications ✅ Role-based permissions ✅ Auto-reconnection ✅ Event logging
- Code Reviews - Discuss code in real-time
- Pair Programming - Share cursor positions
- Team Collaboration - Work together on same session
- Mentoring - Guide junior developers
- Debugging - Collaborate on bug fixes
- TEST_END_TO_END.md - Comprehensive testing guide
- ARCHITECTURE_EXPLAINED.md - Understanding the system
- REALTIME_COLLABORATION_COMPLETE.md - Full documentation
- Add file viewer with syntax highlighting
- Implement collaborative editing
- Add voice/video chat
- Create VS Code extension
- Deploy to production
If you can:
- ✅ See both users in Presence Bar
- ✅ Send messages that appear instantly
- ✅ Update cursor positions
- ✅ Add code comments
- ✅ Change presence status
Congratulations! Your real-time collaboration system is working! 🎉
For detailed testing and troubleshooting, see TEST_END_TO_END.md