Skip to content

Commit dafbc73

Browse files
authored
Update README.md
1 parent 0098e9f commit dafbc73

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

README.md

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,15 @@
1616

1717
- ## How to install and run (manually)
1818

19-
- ### Installing the dependencies
19+
- ### Installing the dependencies and setup env
2020
Inside the newly cloned project folder run the following command to install the dependencies:
2121
```
2222
$ go mod download
2323
```
24+
To configure the environment run this command:
25+
```
26+
$ bash setup-env.sh
27+
```
2428

2529
- ### Running the application
2630
Inside the project, run the following command to run the application:
@@ -36,9 +40,9 @@
3640
--url http://localhost:3000/api/v1/product \
3741
--header 'Content-Type: application/json' \
3842
--data '{
39-
"name": "product1",
40-
"price": 10.99,
41-
"stock": 10
43+
"name": "product1",
44+
"price": 10.99,
45+
"stock": 10
4246
}'
4347
4448
> {"id":1,"name":"product1","price":10.99,"stock":10}
@@ -69,9 +73,9 @@
6973
--url http://localhost:3000/api/v1/product/1 \
7074
--header 'Content-Type: application/json' \
7175
--data '{
72-
"name": "a product",
73-
"price": 8.99,
74-
"stock": 5
76+
"name": "a product",
77+
"price": 8.99,
78+
"stock": 5
7579
}'
7680
7781
> {"id":1,"name":"a product","price":8.99,"stock":5}

0 commit comments

Comments
 (0)