Skip to content

Commit 74e8b0f

Browse files
committed
# Refatorar e testes unitarios
1 parent 2740516 commit 74e8b0f

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docker.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ services:
44
api:
55
build: .
66
ports:
7-
- "4444:4444"
7+
- "8080:8080"
88
environment:
9-
- API_PORT=4444
9+
- API_PORT=8080
1010
- CORS_ORIGINS=

dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ COPY . .
55
RUN go mod download
66
RUN go build -o main cmd/main.go
77

8-
EXPOSE 8080
8+
EXPOSE 4444
99
CMD ["./main"]
1010

1111

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ Testes Unitários
5050
🚀 Exemplo de uso
5151

5252
```bash
53-
Invoke-WebRequest -Uri http://localhost:4444/products -Method POST -Headers @{"Content-Type"="application/json"} -Body '{"name":"Notebook Gamer","description":"Notebook para jogos","price":5999.99,"category":"Eletronicos"}'
53+
Invoke-WebRequest -Uri http://localhost:8080/products -Method POST -Headers @{"Content-Type"="application/json"} -Body '{"name":"Notebook Gamer","description":"Notebook para jogos","price":5999.99,"category":"Eletronicos"}'
5454
```
5555

5656
## demonstração:

0 commit comments

Comments
 (0)