Backend para o Novo Peças Por Código
- Java 25 (OpenJDK)
- Docker & Docker Compose
- PowerShell (for Windows users)
Run the helper script to set up environment variables and start the infrastructure:
./run.ps1This script will:
- Create a
.envfile if it doesn't exist. - Start PostgreSQL, Redis, and the Monitoring stack (Grafana, Prometheus, Tempo, OTEL) via Docker.
- Offer to start the backend application via
./gradlew bootRun.
-
Environment Variables: Copy
.env.exampleto.envand fill in necessary keys.cp .env.example .env
-
Infrastructure: Start the supporting services:
docker compose -f docker-compose.local.yml up -d
-
Run Application: Ensure you use the
localprofile:./gradlew bootRun
Or via IntelliJ IDEA: Add
-Dspring.profiles.active=localto VM Options.
- API: http://localhost:8080
- Swagger UI: http://localhost:8080/swagger-ui/index.html
- Grafana: http://localhost:3000 (Anonymous Admin enabled)
- Prometheus: http://localhost:9090
Este projeto está licenciado sob Business Source License 1.1 (BSL 1.1). Veja o arquivo LICENSE na raiz do repositório para o texto completo e os parâmetros.
Resumo:
- Licenciador: Pecas Por Codigo (ou colaboradores deste repositório)
- Obra licenciada: novo-pecas-online-backend
- Change Date: 2029-11-13
- Change License: GNU GPL v2.0 ou qualquer versão posterior
Observação importante: até a data de mudança (Change Date), o uso em produção é limitado conforme os termos da BSL; o uso para desenvolvimento, testes e não-produção é permitido. Após a Change Date, o projeto passa a estar sob a licença indicada em "Change License".