Skip to content

Commit

Permalink
refactor:doc to show host
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamsouravjha committed Jan 24, 2024
1 parent 3f50118 commit 5d7811c
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 5 deletions.
2 changes: 1 addition & 1 deletion echo-sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ docker network create keploy-network

### Update the Host

> **Since we have setup our sample-app natively, we need to update the Postgres host on line 27, in `main.go`, from `postgresDb` to `postgres`.**
> **Since we have setup our sample-app natively, we need to update the Postgres host on line 27, in `main.go`, from `postgresDb` to `localhost`.**
### Capture the testcases

Expand Down
2 changes: 2 additions & 0 deletions gin-mongo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,8 @@ Spin up your mongo container using
sudo docker run --rm -p27017:27017 -d --network keploy-network --name mongoDb mongo
```

### Update the Host

> **Since, we are on the local machine the MongoDB URL will be `localhost:27017`. This needs to be updated on the on line 21 in `main.go` file**
### Capture the testcases
Expand Down
2 changes: 2 additions & 0 deletions gin-redis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ We need create an alias for Keploy:
alias keploy='sudo docker run --pull always --name keploy-v2 -p 16789:16789 --privileged --pid=host -it -v "$(pwd)":/files -v /sys/fs/cgroup:/sys/fs/cgroup -v /sys/kernel/debug:/sys/kernel/debug -v /sys/fs/bpf:/sys/fs/bpf -v /var/run/docker.sock:/var/run/docker.sock -v '"$HOME"'/.keploy-config:/root/.keploy-config -v '"$HOME"'/keploy-config:/root/keploy-config --rm ghcr.io/keploy/keploy'
```

### Update the Host

> **Since, we are on the docker image the Redis URL will be myredis:6379 instead of localhost:6379. This needs to be updated in `helpers/redis/redisConnect.go` file**
### Create a Docker network
Expand Down
5 changes: 3 additions & 2 deletions graphql-sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,10 @@ Using the docker-compose file we will start our postgres instance:-
# Start Postgres
docker-compose up -d
```
### Capture the Testcases

> **Since, we are on the local machine the Postgres Host will be `localhost`.**
### Update the Host

> **Since we have setup our sample-app natively, we need to set the Postgres host on line 18, in `main.go` to `localhost`.**
### Capture the testcases

Expand Down
7 changes: 5 additions & 2 deletions mux-sql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,12 @@ Using the docker-compose file we will start our postgres instance:-
# Start Postgres
docker-compose up -d
```
### Capture the Testcases

> **Since, we are on the local machine the Postgres Host will be `localhost`.**
### Update the Host

> **Since we have setup our sample-app natively set the host to `localhost` on line 10.**
### Capture the Testcases

Now, we will create the binary of our application:-

Expand Down

0 comments on commit 5d7811c

Please sign in to comment.