https://github.com/waelson/goexpert-cliente-server
https://github.com/waelson/goexpert-cliente-server
Last synced: 12 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/waelson/goexpert-cliente-server
- Owner: Waelson
- Created: 2023-08-03T00:32:35.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-09-07T18:56:49.000Z (almost 3 years ago)
- Last Synced: 2025-01-07T02:05:27.496Z (over 1 year ago)
- Language: Go
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Go Expert - Cliente / Servidor
Projeto cliente / servidor desenvolvido para empregar o uso de:
- Tratamento de contextos Golang (`context.Context`)
- Requisições HTTP
- Manipulação de banco de dados SQLite
- Manipulação de arquivos
## Baixando as dependências
```
$ go mod tidy
```
## Servidor
Iniciando o servidor
```
$ cd cmd/server
$ go run main.go
```
O arquivo do banco de dados se encontra no arquivo abaixo:
```
db/cotacao.db
```
## Cliente
Iniciando o servidor
```
$ cd cmd/client
$ go run main.go
```
O arquivo contendo as cotações serão armazenados no arquivo abaixo:
```
cmd/client/cotacao.txt
```