Before you begin, make sure you have the following installed on your machine:
- Node.js (for running the React frontend) - Download Node.js
- npm (Node Package Manager for managing frontend dependencies) - npm Documentation
- Python 3 (for running the Python backend) - Download Python 3
- pip (Python package installer) - pip Documentation
-
Open a terminal and navigate to the following directory:
cd src/UI/Product_UI/
-
Install the frontend dependencies by running:
npm i
-
Once the dependencies are installed, start the React development server:
npm start
-
Open a terminal and navigate to the following directory:
cd src/UI/Product_UI/src/server
-
Install the server dependencies by running:
pip install Flask flask-cors requests flask-caching pymongo pyjwt werkzeug pandas numpy joblib lime mistralai xgboost
-
Once the dependencies are installed, start the React development server:
python3 server.py