How to start the Webinterface Frontend - amosproj/amos2025ss04-ai-driven-testing GitHub Wiki
Backend
- Open a terminal
- Navigate to backend
cd backend - start
uvicorn api:app --reload
- You should receive a similar message:
INFO: Will watch for changes in these directories: ['/.../amos2025ss04-ai-driven-testing-3/backend']INFO: Uvicorn running on http://127.0.0.1:8000 (Press CTRL+C to quit)INFO: Started reloader process [23228] using WatchFilesINFO: Started server process [23230]INFO: Waiting for application startup.INFO: Application startup complete.
Frontend
- Open a terminal
- Navigate to frontend
cd frontend - Update with
npm install
- here you will see some processing and finally a message similar to this (not with the exact numbers.):
up to date, audited 1473 packages in 4s361 packages are looking for fundingrunnpm fundfor details8 vulnerabilities (2 moderate, 6 high)To address all issues (including breaking changes), run:npm audit fix --forceRunnpm auditfor details.
- start with
npm start
- The terminal should display a success message:
Compiled successfully!You can now view frontend in the browser.Local: http://localhost:3000On Your Network: http://...:3000Note that the development build is not optimized.To create a production build, use npm run build.webpack compiled successfullyFiles successfully emitted, waiting for typecheck results...Issues checking in progress...No issues found.
-
If the frontend is run after the backend is already on, the site to interact with the llms will automatically open in a browser. If not, the user can enter
http://localhost:3000/to reach the site. -
(If you end the process with a
strg + Ccommand, make sure to run 3 and 4 of this section, since if only 4 is run, some errors may occur.