| # Start the Flask backend in the background (runs on port 8000) | |
| cd backend | |
| python app.py & | |
| # Wait a few seconds to ensure Flask is up | |
| sleep 3 | |
| # Start the Next.js frontend in the foreground (runs on port 7860) | |
| cd ../mindcheck-web | |
| PORT=7860 npm run start | |