While setting up the project on Windows 10, I ran into an issue where the backend server started successfully, but the dashboard could not be served. The server output showed:
Dashboard: C:\Users\crack\Desktop\Stavros\Projects\Quant-Enthusiasts-Risk-Engine\react_dashboard\dist
Dashboard exists: False
Everything on the C++ and Python sides built correctly, so this message was unexpected.
Cause:
The React dashboard had not been built. The installation instructions don’t currently mention running the frontend build step, so the dist/ folder wasn’t present.
Solution:
Running the following in the react_dashboard directory fixed the issue:
npm install
npm run build
After this, the dist/ directory was created and the server correctly served the dashboard at http://127.0.0.1:5000.
Suggested Documentation Update:
Add a step to the installation instructions indicating that the dashboard build is required before running the backend:
cd react_dashboard
npm install
npm run build
This would help new users avoid the same issue and ensure the UI loads properly on first run.
While setting up the project on Windows 10, I ran into an issue where the backend server started successfully, but the dashboard could not be served. The server output showed:
Everything on the C++ and Python sides built correctly, so this message was unexpected.
Cause:
The React dashboard had not been built. The installation instructions don’t currently mention running the frontend build step, so the dist/ folder wasn’t present.
Solution:
Running the following in the react_dashboard directory fixed the issue:
After this, the dist/ directory was created and the server correctly served the dashboard at http://127.0.0.1:5000.
Suggested Documentation Update:
Add a step to the installation instructions indicating that the dashboard build is required before running the backend:
This would help new users avoid the same issue and ensure the UI loads properly on first run.