- Node.js 18+ and npm: https://nodejs.org/en/download
- Python 3.10+ (with
pip): https://www.python.org/downloads/ - Ollama: https://ollama.com/download
git clone https://github.com/COMP2281/software-engineering-group25-26-14.git
cd software-engineering-group25-26-14Check if Ollama is running:
ollama listIf this shows a list of models (or even an empty list), Ollama is running.
If you get a connection error, start Ollama manually:
ollama serveThen download the required model (this may take some time, but only needs to be done once):
ollama pull granite3.1-dense:8bYou can run ollama list again to confirm the model is installed.
Keep Ollama running. The backend will connect to it at http://localhost:11434.
Open a terminal in the project root and run:
py -m venv venv
.\venv\Scripts\Activate.ps1
pip install -r requirements.txtIf PowerShell blocks script execution, run this once in the same terminal first. This only changes the policy for the current session:
Set-ExecutionPolicy -Scope Process -ExecutionPolicy Bypasspython3 -m venv venv
source venv/bin/activate
pip install -r requirements.txtThis installs all required python modules in a virtual environment.
Also from the project root, run:
cd web/app
npm installThis installs the required node modules.
Open a terminal in the project root. Ensure that the virtual environment is active:
.\venv\Scripts\Activate.ps1source venv/bin/activateThen, run:
cd web/api
python -m uvicorn main:app --port 8000The backend will now be available at http://localhost:8000. The API docs are at http://localhost:8000/docs.
Open a second terminal in the root folder and run:
cd web/app
npm run devThe frontend will be available at http://localhost:5173.
Keep both terminals running.
Open http://localhost:5173 in your browser to use the application.