Skip to content

Commit 7632ef4

Browse files
committed
Remove .env file from directory structure and update database connection details in API workshop guide
1 parent 06ffb76 commit 7632ef4

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

src/content/docs/guides/py/api_workshop.mdx

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,6 @@ Your directory structure should look like this:
196196
project-folder/
197197
├── venv/
198198
| └── ...
199-
├── .env
200199
└── hello.py
201200
```
202201
</Aside>
@@ -254,15 +253,26 @@ pip3 install python-dotenv pyodbc
254253

255254
<Card>
256255
### Step 2: Create a new file `.env` updating `USERNAME` and `PASSWORD`
257-
```shell title="VSCode Terminal"
256+
```zsh
258257
// .env
259258

260259
PORT=5000
261-
DB_HOST=magic.magic-ug.org
262-
DB_ID=M24USERNAME
263-
DB_PASSWORD=M24PASSWORD
264-
DB_NAME=D20AA82W
260+
DB_HOST=YOUR_IBMI
261+
DB_ID=YOUR_USERNAME
262+
DB_PASSWORD=YOUR_PASSWORD
263+
DB_NAME=YOUR_DB_NAME
264+
```
265+
266+
<Aside type="tip">
267+
Your directory structure should now look like this:
268+
```
269+
project-folder/
270+
├── venv/
271+
| └── ...
272+
├── .env
273+
└── hello.py
265274
```
275+
</Aside>
266276
</Card>
267277

268278
<Card>

0 commit comments

Comments
 (0)