All dependencies have been installed. Skip to Step 2.
Open a terminal and run:
npm run devThis will start both the backend server (port 5000) and frontend dev server (port 5173).
Navigate to: http://localhost:5173
-
Window 1:
- Open http://localhost:5173
- Note your assigned User ID (e.g.,
ABC123)
-
Window 2:
- Open http://localhost:5173 in another window/tab (or incognito)
- Note your assigned User ID (e.g.,
XYZ789)
-
Connect:
- In Window 1, enter the User ID from Window 2 (
XYZ789) - Click "Connect"
- In Window 2, accept the connection request
- Start chatting!
- In Window 1, enter the User ID from Window 2 (
# Start both client and server
npm run dev
# Start only server
npm run dev:server
# Start only client
npm run dev:client
# Build client for production
npm run build:clientPort Already in Use?
- Backend (5000): Change
PORTinserver/.env - Frontend (5173): Change
portinclient/vite.config.js
Can't Connect?
- Make sure both servers are running
- Check console for errors
- Verify firewall settings
User ID Not Showing?
- Check browser console for errors
- Ensure backend is running on port 5000
- Try refreshing the page
tempchat/
├── client/ # React frontend (Vite)
│ └── src/
│ ├── components/ # UI components
│ ├── context/ # State management
│ ├── hooks/ # Custom hooks
│ └── services/ # Socket.IO client
│
└── server/ # Express backend
└── src/
├── controllers/ # Socket handlers
├── services/ # Business logic
└── utils/ # Helper functions
✅ Random temporary user IDs
✅ Real-time messaging
✅ Typing indicators
✅ Connection requests
✅ Clean, modern UI
✅ Mobile responsive
See the main README.md for detailed documentation.
Happy Chatting! 💬