File tree Expand file tree Collapse file tree 1 file changed +11
-7
lines changed
Expand file tree Collapse file tree 1 file changed +11
-7
lines changed Original file line number Diff line number Diff line change 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:
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}
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}
You can’t perform that action at this time.
0 commit comments