Creating virtual environment and installing python dependecies
1. Navigate to project folder
cd recommendation_backend
2. Creating virtual environment
python3 -m venv .venv
3. Activate virtual environment
# For linux/Macos systems
source .env/bin/activate
# For windows systems
# From command prompt
./.venv/Scripts/activate
# From power shell
.env\Scripts\Activate.ps1
4. Install python dependencies
pip3 install -r requirements.txt
5. Populate Database
1. Locate the file populate.py
2. Run the following command
python3 populate.py <excel_file_location>
6. Run the django project
1. Make sure you are in the root directory of the backend project(where you locate manage.py)
2. Run the following command
python3 manage.py runserver
7. Run the Frontend application
cd recommendation_frontend
npm install
npm start
APIs available
1. Filtering articles
1. Open the Postman application and set the method type as "POST"