- Install Python 3.8 or higher
- run the following command to create a virtual environment :
python -m venv PAenv - Activate the virtual environment :
PAvenv\Scripts\activate - upgrade pip :
python.exe -m pip install --upgrade pip - Install requirements :
pip install -r requirements.txt
-
Create a new connection in mongoDB Compass
URI :
mongodb://localhost:27017name :
mini_catalogue -
Create a new database:
- launch MongoDB shell
- run the following command :
use mini_catalogue
-
Create the collections
productsandcategories:- copy the content of
colllections.txtfile - paste it in the MongoDB shell
- copy the content of