
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
github.com/reinaldo-silva/savina-stock-api
Savina Stock API é uma aplicação desenvolvida em Go que fornece uma interface para gerenciar o estoque de produtos em um e-commerce. Esta API permite realizar operações CRUD (Criar, Ler, Atualizar e Deletar) em produtos, facilitando a administração de inventário.
Antes de executar o projeto, certifique-se de que você tem os seguintes itens instalados:
Clone o repositório:
git clone <URL-do-repositório>
cd savina-stock-api
Crie um arquivo .env
na raiz do projeto com as seguintes variáveis de ambiente:
DB_HOST=postgres
DB_USER=postgres
DB_PASSWORD=secret
DB_NAME=stock_db
DB_PORT=5432
SERVER_PORT=8080
Inicie o banco de dados PostgreSQL com Docker Compose:
docker-compose up -d
Execute a aplicação Go:
go run cmd/api/main.go
Para rodar os testes, execute o seguinte comando:
go test ./...
Contribuições são bem-vindas! Sinta-se à vontade para abrir issues ou pull requests.
Este projeto está licenciado sob a Licença MIT. Consulte o arquivo LICENSE para mais detalhes.
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.