Skip to content

Commit 5dc4b3e

Browse files
authored
fix: docker compose cmd (#37)
1 parent 511c768 commit 5dc4b3e

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

fastapi-postgres/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,10 @@ curl -O -L https:///keploy.io/install.sh && source install.sh
2929

3030
```bash
3131
# Start the application
32-
docker-compose up -d
32+
docker-compose up -d postgres
3333
```
3434

35-
> **Since we have setup our sample-app natively, we need to update the container name to postgres on line 6, in `application/database.py`, from `postgresql://postgres:postgres@localhost:5432/studentdb` to `postgresql://postgres:postgres@postgres:5432/studentdb`.**
35+
> **If we have setup our sample-app with docker, we need to update the container name to postgres on line 6, in `application/database.py`, from `postgresql://postgres:postgres@localhost:5432/studentdb` to `postgresql://postgres:postgres@postgres:5432/studentdb`.**
3636
3737
> **Also, we need to update the container name to postgres on line 11, of `application/main.py`, from `postgresql://postgres:postgres@localhost:5432/studentdb` to `postgresql://postgres:postgres@postgres:5432/studentdb`.**
3838
@@ -119,4 +119,3 @@ We will get output something like below -
119119
By making just 2 api call, we have generated a complete test suite for our application and acheived 72% coverage.
120120

121121
So, no need to setup fake database/apis like Postgres or write mocks for them. Keploy automatically mocks them and, **The application thinks it's talking to Postgres 😄**
122-

0 commit comments

Comments
 (0)