You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -30,22 +34,24 @@ There are two ways to use Keploy:-
30
34
Keploy can be installed on Linux directly and on Windows with the help of WSL. Based on your system architecture, install the keploy latest binary release from here:-
31
35
32
36
#### Linux
37
+
33
38
1. AMD Architecture
34
-
```zsh
39
+
40
+
```bash
35
41
curl --silent --location "https://github.com/keploy/keploy/releases/latest/download/keploy_linux_amd64.tar.gz"| tar xz -C /tmp
sudo -E env PATH=$PATHKeploy record -c 'bun run supabun.ts'
84
+
sudo -E env PATH=$PATHkeploy record -c 'bun run supabun.ts'
77
85
```
78
86
79
-
Make API Calls using [Hoppscotch](https://hoppscotch.io), [Postman](https://postman.com) or cURL command. Keploy with capture those calls to generate the test-suites containing testcases and data mocks.
87
+
Make API Calls using [Hoppscotch](https://hoppscotch.io), [Postman](https://postman.com) or cURL command. Keploy will capture those calls to generate the test-suites containing testcases and data mocks.
@@ -108,57 +119,84 @@ We will get the following output in our terminal
108
119
Keploy can be used on Linux & Windows through Docker, and on MacOS by the help of [Colima](https://docs.keploy.io/docs/server/macos/installation/#using-colima).
109
120
110
121
## Create Network (if it doesn't already exist)
122
+
111
123
This creates a new docker network isolated from others (named keploy-network)
The default `docker.io` package may not include Docker Compose v2, which is required for running Keploy sample projects using Docker Compose.
146
+
147
+
To avoid errors, install Docker Compose v2 using:
148
+
149
+
```bash
150
+
sudo apt update
151
+
sudo apt install docker-compose-plugin
152
+
```
153
+
154
+
Then use `docker compose up` instead of `docker-compose up`.
155
+
127
156
## Capture the testcases
157
+
128
158
1. We first need to build dockerimage of our application:-
159
+
129
160
```bash
130
161
docker build -t bun-app:1.0 .
131
162
```
132
163
133
-
2. Now we will run the keploy in record mode:-
164
+
1. Now we will run the keploy in record mode:-
165
+
134
166
```bash
135
-
keploy record -c "docker run -p 420:420 --name bunMongoApp --network keploy-network bun-app:1.0"
167
+
keploy record -c "docker run -p 4200:4200 --name bunMongoApp --network keploy-network bun-app:1.0"
136
168
```
137
169
138
170
### Let's generate the testcases.
139
-
Make API Calls using [Hoppscotch](https://hoppscotch.io), [Postman](https://postman.com) or cURL command. Keploy with capture those calls to generate the test-suites containing testcases and data mocks.
171
+
172
+
Make API Calls using [Hoppscotch](https://hoppscotch.io), [Postman](https://postman.com) or cURL command. Keploy will capture those calls to generate the test-suites containing testcases and data mocks.
The default `docker.io` package may not include Docker Compose v2, which is required for running Keploy sample projects using Docker Compose.
136
+
137
+
To avoid errors, install Docker Compose v2 using:
138
+
139
+
```bash
140
+
sudo apt update
141
+
sudo apt install docker-compose-plugin
142
+
```
143
+
144
+
Then use `docker compose up` instead of `docker-compose up`.
145
+
127
146
> **Since we have setup our sample-app natively, we need to update the mongoDB host on line 41, in `db/connection.js`, from `mongodb://mongoDb:27017/Students` to `mongodb://127.0.0.1:27017/keploy`.**
128
147
129
148
### Capture the testcases
@@ -132,19 +151,17 @@ docker-compose up -d
132
151
sudo -E env PATH=$PATH keploy record -c 'node src/app.js'
0 commit comments