Skip to content

Commit 44831d0

Browse files
committed
Improvement of the DOCS SP
1 parent 6e8a620 commit 44831d0

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

sanic-postgres/README.md

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,41 @@ Once you have the prerequisites set up, follow these steps:
3636
```bash
3737
git clone https://github.com/keploy/sample-python.git
3838
cd sample-python
39-
Install the required Python packages:
4039

41-
```bash
42-
pip install -r requirements.txt
43-
```
40+
2. Navigate your project directory:
41+
42+
```bash
43+
cd sample-python/sanic-postgres
44+
```
45+
46+
3. Create a Virtual Environment:
47+
48+
```bash
49+
python -m venv venv
50+
```
51+
4. Activating the Virtual Environment
52+
53+
On Windows:
54+
55+
```bash
56+
venv\Scripts\activate
57+
```
58+
59+
On macOS and Linux:
60+
61+
```bash
62+
source venv/bin/activate
63+
```
64+
5. Install the required Python packages:
65+
66+
```bash
67+
pip install -r requirements.txt
68+
```
69+
6. To exit your Virtual Environment:
70+
71+
```bash
72+
deactivate
73+
```
4474

4575
Set up your PostgreSQL database and update the connection settings in your application as needed.
4676

0 commit comments

Comments
 (0)