Since your backend is already running on http://localhost:8000, you just need to start the frontend in a new terminal window.
Keep your backend terminal running, and open a new terminal window/tab.
cd /Users/ranveersingh/GenLab/frontendnpm installThis will install all React and Three.js dependencies. It may take 1-2 minutes.
npm run devYou should see output like:
VITE v5.0.8 ready in 500 ms
β Local: http://localhost:3000/
β Network: use --host to expose
Open your browser and go to: http://localhost:3000
Now you have:
- β
Backend running on
http://localhost:8000 - β
Frontend running on
http://localhost:3000
The frontend will automatically connect to the backend API.
- Fill in the protein design form
- Click "Generate Protein"
- Explore the 3D visualization tab
- Check the manufacturing protocol tab
If port 3000 is busy, Vite will automatically use the next available port (like 3001, 3002, etc.). Check the terminal output for the actual URL.
- Make sure backend is still running on port 8000
- Check browser console for errors (F12 β Console tab)
- Verify CORS is enabled (it should be in the backend code)
Try:
# Clear npm cache
npm cache clean --force
# Remove node_modules and reinstall
rm -rf node_modules package-lock.json
npm install# Start frontend (from frontend directory)
npm run dev
# Build for production
npm run build
# Preview production build
npm run preview