Backend system for the GT Solar project, developed by Grupo Fatec.
This project provides API endpoints and core business logic for managing solar energy data and operations.
GT-Solar-Backend is a Java-based backend application designed to support solar energy management solutions.
The project handles data processing, business logic, and integration with front-end or mobile clients.
- RESTful API for solar energy data management
- User authentication and authorization
- CRUD operations for core entities
- Integration with databases
- Error handling and logging
- Language: Java
- Framework: Spring Boot
- Database: MongoDB
- Build Tool: Maven
- Others: Swagger, Git e GitHub
- Java 17+
- Maven ou Gradle
- Banco de dados configurado (ver seção Configuration)
Clone o repositório:
git clone https://github.com/Grupo-Fatec/GT-Solar-Backend.git
cd GT-Solar-BackendConfigure as variáveis de ambiente e a conexão com o banco de dados.
Edite o arquivo src/main/resources/application.properties ou application.yml com as configurações adequadas ao seu ambiente.
spring.datasource.url=jdbc:mysql://localhost:3306/gt_solar
spring.datasource.username=your_db_user
spring.datasource.password=your_db_password
spring.jpa.hibernate.ddl-auto=update
spring.jpa.show-sql=trueThis branch implements a basic PDF Generator Service for the GT-Solar Backend project. The service provides an endpoint to generate and download a simple PDF file.
- PDF Generation Endpoint:
Access the endpoint at/pdf/generateto download a PDF file containing a title and a paragraph. - Spring Boot Integration:
The service is built using Spring Boot and leverages the OpenPDF library for PDF creation. - Customizable Output:
The generated PDF currently includes a centered title and a left-aligned paragraph as a demonstration.
- Start the application.
- Navigate to
http://localhost:<port>/pdf/generatein your browser or use a tool likecurlor Postman. - A PDF file will be downloaded with a timestamped filename.
This PDF Generator Service is a starting point and will be incremented in the future to support:
- Dynamic content generation based on user input or database data.
- Enhanced formatting and styling options.
- Support for tables, images, and other PDF features.
- Integration with other modules of the GT-Solar Backend.
Stay tuned for updates as the service evolves!