In your terminal, you should see:
[0] ➜ Local: http://localhost:5173/
[1] ✅ Server running on http://localhost:5000
[1] 📚 Using local knowledge base for answers
- Open browser: http://localhost:5173
- You should see the "Is This Allowed?" home page with header
- Enter a question: "Can my landlord raise my rent?"
- Click "Get Answer"
- Should show comprehensive answer with:
- Clear Answer (Yes/No/It Depends)
- Detailed Explanation
- Recommended Actions (5-6 steps)
- Source Links (4-5 links)
Question: "Can my landlord collect 2 years of rent upfront?" Expected: Answer: "It Depends" + Explanation about rent control laws + Actions + Sources
Question: "Can I be evicted without proper notice?" Expected: Answer: "No" + Details about eviction procedures + Legal protections
Question: "How long to get my security deposit back?" Expected: Answer: "State-Dependent" + State laws explanation + Actions + Sources
Question: "What are my tenant rights?" Expected: Comprehensive overview + Multiple actions + Legal resources
On Same Network (Windows):
- Open Command Prompt
- Type:
ipconfig - Find "IPv4 Address" (e.g.,
192.168.1.100) - On mobile phone:
- Connect to same WiFi
- Visit:
http://192.168.1.100:5173 - Should load the app
- Ask a question - should work without errors!
- ✅ Different questions get different answers
- ✅ Answer format is consistent (Answer | Explanation | Actions | Sources)
- ✅ Sources are clickable links
- ✅ Mobile and desktop work the same
- ✅ Answers are relevant to the question asked
- ✅ No "load failed" errors
- ✅ Answer loads within 2-3 seconds
- ✅ Page is responsive on both mobile and desktop
- ✅ Button clicks work immediately
- ✅ No console errors in browser DevTools
Diagnosis:
- Check terminal: Is backend running? (Look for "✅ Server running on...")
- Check firewall: Does Windows allow port 5000?
- Check CORS: Backend should have
Origin: '*'
Fix:
# Restart both servers
npm run dev:allDiagnosis:
- Backend might not be reloaded with new code
- Server process might be outdated
Fix:
- Kill all node processes:
taskkill /IM node.exe /F
- Restart:
npm run dev:all
Diagnosis:
- Using
localhostinstead of IP address - Different network
- Firewall blocking port
Fix:
- Get correct IP:
ipconfig - Use format:
http://192.168.x.x:5173 - Check both on same WiFi
Diagnosis:
- Check for syntax errors in
server.js - Check if port 5000 is already in use
Fix:
- Look at error message in terminal
- Run:
netstat -ano | findstr :5000to find what's using port - Kill the process or change PORT in
.env
- Open Command Prompt
- Test the API endpoint:
curl -X POST http://localhost:5000/api/answer ^
-H "Content-Type: application/json" ^
-d "{\"question\":\"Can my landlord raise my rent?\"}"Expected Response:
{
"question": "Can my landlord raise my rent?",
"answer": "It Depends",
"explanation": "Rent increase laws vary...",
"actions": [...],
"sources": [...]
}curl http://localhost:5000/api/healthExpected Response:
{
"status": "Server is running",
"port": 5000,
"apiKey": "Using local knowledge base"
}- Answer directly addresses the question
- Explanation is 2-3 paragraphs
- Actions are specific and actionable
- Sources are real, authoritative, and relevant
- Disclaimer is shown about legal advice
- No errors or console warnings
- Loading spinner appears while fetching
- Answer displays nicely formatted
- Mobile layout is responsive
- Links open in new tabs
- Back button works
- Works on different screen sizes
- Touch targets are large enough
- No horizontal scrolling
- Links don't require zoom to click
- Answer text is readable
- "Can my landlord evict me without notice?"
- "Can I be discriminated against in housing?"
- "What's the law on security deposits?"
- "What are my rights as a tenant?"
- "Can landlord enter my apartment anytime?"
- "Am I responsible for repairs?"
- "What's the best tenant contract?"
- "How do I sue my landlord?"
- "Can I break my lease?"
Everything is working correctly when:
- ✅ Both servers show "running" in terminal
- ✅ Frontend loads at http://localhost:5173
- ✅ Different questions get different answers
- ✅ Answers include explanation, actions, and sources
- ✅ Mobile works at http://192.168.x.x:5173
- ✅ No "load failed" errors
- ✅ No console errors in browser
If all checks pass: 🎉 Your app is fully functional!
Visit http://localhost:5173 and start using it!