diff --git a/flask-redis/README.md b/flask-redis/README.md index 7364e9d..dfd56ab 100644 --- a/flask-redis/README.md +++ b/flask-redis/README.md @@ -21,11 +21,37 @@ If homebrew is not installed, then go to https://brew.sh/ and install it. ```bash git clone https://github.com/keploy/samples-typescript && cd samples-typescript/flask-redis - -# Install the dependencies -pip3 install -r requirements.txt ``` +1. Create a Virtual Environment: + + ```bash + python -m venv venv + ``` +2. Activating the Virtual Environment + + On Windows: + + ```bash + venv\Scripts\activate + ``` + + On macOS and Linux: + + ```bash + source venv/bin/activate + ``` +3. Install the required Python packages: + + ```bash + pip install -r requirements.txt + ``` +4. To exit your Virtual Environment: + + ```bash + deactivate + ``` + # Installing Keploy Let's get started by setting up the Keploy alias with this command: diff --git a/sanic-mongo/README.md b/sanic-mongo/README.md index f0cc267..9d8b3b3 100644 --- a/sanic-mongo/README.md +++ b/sanic-mongo/README.md @@ -34,9 +34,40 @@ alias keploy='sudo docker run --pull always --name keploy-v2 -p 16789:16789 --pr Now head to the folder of the application and run -``` -pip3 install -r requirements.txt -``` +1. Navigate your project directory: + + ```bash + cd sample-python/sanic-mongo + ``` + +2. Create a Virtual Environment: + + ```bash + python -m venv venv + ``` +3. Activating the Virtual Environment + + On Windows: + + ```bash + venv\Scripts\activate + ``` + + On macOS and Linux: + + ```bash + source venv/bin/activate + ``` +4. Install the required Python packages: + + ```bash + pip install -r requirements.txt + ``` +5. To exit your Virtual Environment: + + ```bash + deactivate + ``` ### Lights, Camera, Record! 🎥 diff --git a/sanic-postgres/README.md b/sanic-postgres/README.md index 391b4c4..7f6dda5 100644 --- a/sanic-postgres/README.md +++ b/sanic-postgres/README.md @@ -36,11 +36,41 @@ Once you have the prerequisites set up, follow these steps: ```bash git clone https://github.com/keploy/sample-python.git cd sample-python -Install the required Python packages: -```bash -pip install -r requirements.txt -``` +2. Navigate your project directory: + + ```bash + cd sample-python/sanic-postgres + ``` + +3. Create a Virtual Environment: + + ```bash + python -m venv venv + ``` +4. Activating the Virtual Environment + + On Windows: + + ```bash + venv\Scripts\activate + ``` + + On macOS and Linux: + + ```bash + source venv/bin/activate + ``` +5. Install the required Python packages: + + ```bash + pip install -r requirements.txt + ``` +6. To exit your Virtual Environment: + + ```bash + deactivate + ``` Set up your PostgreSQL database and update the connection settings in your application as needed.