{"id":27039674,"url":"https://github.com/marciocosta013/devtechblog-api_decolatech2025","last_synced_at":"2025-10-24T17:51:52.952Z","repository":{"id":286053470,"uuid":"960210364","full_name":"MarcioCosta013/DevTechBlog-API_DecolaTech2025","owner":"MarcioCosta013","description":"Api feita para o blog devtech como projeto pessoal com os conceitos aprendidos no Decola Tech 2025","archived":false,"fork":false,"pushed_at":"2025-04-04T03:38:29.000Z","size":0,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-04T04:26:56.700Z","etag":null,"topics":["avanade","dio-bootcamp","full-stack","java","postgresql","spring"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MarcioCosta013.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2025-04-04T03:34:53.000Z","updated_at":"2025-04-04T03:41:20.000Z","dependencies_parsed_at":"2025-04-04T04:27:01.821Z","dependency_job_id":"ed06bbc4-1f01-4dda-86ff-dabd15f63a33","html_url":"https://github.com/MarcioCosta013/DevTechBlog-API_DecolaTech2025","commit_stats":null,"previous_names":["marciocosta013/devtechblog-api_decolatech2025"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcioCosta013%2FDevTechBlog-API_DecolaTech2025","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcioCosta013%2FDevTechBlog-API_DecolaTech2025/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcioCosta013%2FDevTechBlog-API_DecolaTech2025/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MarcioCosta013%2FDevTechBlog-API_DecolaTech2025/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MarcioCosta013","download_url":"https://codeload.github.com/MarcioCosta013/DevTechBlog-API_DecolaTech2025/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248086202,"owners_count":21045296,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["avanade","dio-bootcamp","full-stack","java","postgresql","spring"],"created_at":"2025-04-05T03:17:56.347Z","updated_at":"2025-10-24T17:51:47.916Z","avatar_url":"https://github.com/MarcioCosta013.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"[JAVA_BADGE]:https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge\u0026logo=openjdk\u0026logoColor=white\n\n[SPRING_BADGE]: https://img.shields.io/badge/spring-%236DB33F.svg?style=for-the-badge\u0026logo=spring\u0026logoColor=white\n\n\u003ch1 id=\"portugues\" align=\"center\"\u003e Projeto API DevTech Blog \u003c/h1\u003e\n\n\u003cp\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-0.0.0-blue.svg?cacheSeconds=2592000\" /\u003e\n\u003c/p\u003e\n\n![java][JAVA_BADGE]\n![spring][SPRING_BADGE]\n\n[Repositorio do Frontend](https://github.com/MarcioCosta013/DevTechBlog-UI_DecolaTech2025)\n\n**English version**: [Click here](#ingles).\n\n  \u003eBackend do site do Blog DEVTECH...\n\n\n\u003ch3\u003e ✨ Funcionalidades \u003c/h3\u003e\n\n- **CRUD de Contribuidor** : Criar, ler, atualizar e excluir Contribuidores\n- **CRUD de Sites**: Criar, ler, atualizar e excluir Sites\n- **Relacionamento entre Entidades**: Sites vinculados a um Contribuidor que o compartilhou... (Many-to-One)\n\n\u003ch3\u003e 🛠️ Tecnologias \u003c/h3\u003e\n\n- **Java 21**\n- **Spring Boot 3**\n    - Spring Data JPA\n    - Spring Validation\n- **Flyway** (Migration)\n- **Swagger/OpenAPI** (Documentação)\n- **Lombok** (Gera automaticamente código repetitivo)\n- **PostgreSQL** (Banco de dados)\n- **Maven** (Gerenciamento de dependências)\n\n\n\u003ch3\u003e 📂 Estrutura do Projeto \u003c/h3\u003e\n\n````\nsrc/\n├── main/\n│ ├── java/\n│ │ └── com/\n│ │ ├── devtechblog/\n│ │ │ ├── config/ # Configurações (CorsConfig, SwaggerConfig)\n│ │ │ ├── controller/ # Controladores (ContribuidorController, SitesController)\n│ │ │ ├── dtos/ # Classes Records DTOs (ContribuidorDTO, SitesDTO)\n│ │ │ ├── entity/ # Entidades JPA (ContribuidorEntity, SiteEntity)\n│ │ │ ├── exception/ #Excesão personalisada (NotFoundException)\n│ │ │ ├── repository/ # Repositórios Spring Data (ContribuidorRepository, TemaRepository)\n│ │ │ └── service/ # Lógica de negócio (ContribuidorService, SiteService)\n│ │ └── \n│ ├── resources/\n│ │ ├── db.migration/\n│ │ │ ├── V202504051704__create_tecle_contribuidor.sql\n│ │ │ └── V202504051714__create_table_sites.sql\n│ │ ├── application.yml\n│ │ └── application-dev.yml\n└── \n````\n\n## Instruções para Executar o Projeto\n\n\n1. Clone o repositório: `git clone https://github.com/MarcioCosta013/DevTechBlog-API.git`\n2. Instale as dependências: `mvn clean install`\n3. Execute o projeto: `mvn spring-boot:run`\n4. Acesse o Swagger: `http://localhost:8080/swagger-ui.html`\n\n## Usando Docker Compose\n\n1. Clone o repositório: `git clone https://github.com/MarcioCosta013/DevTechBlog-API.git`\n2. Acesse o diretório do projeto: `cd DevTechBlog-API`\n3. Execute o comando: `docker-compose up`\n4. Acesse o Swagger: `http://localhost:8080/swagger-ui.html`\n\n### Parâmetros de Configuração\n\n- DB_URL: URL do banco de dados\n- DB_USER: Usuário do banco de dados\n- DB_PASSWORD: Senha do banco de dados\n- SPRING_PROFILES_ACTIVE: Perfil ativo do Spring\n\n#### Exemplo de Uso\n\n- Para executar o projeto com Docker, use o comando: docker run -p 8080:8080 devtechblog-api\n- Para executar o projeto com Docker Compose, use o comando: docker-compose up\n\n### Observações\n\n\u003e - Certifique-se de que o Docker esteja instalado e configurado corretamente no seu sistema.\n\u003e - Certifique-se de que o banco de dados esteja configurado corretamente e que as variáveis de ambiente estejam definidas. \n\n\n## Documentação da API\n\n- Swagger/OpenAPI: `http://localhost:8080/swagger-ui.html`\n\n## 😎 Autor\n\n **Marcio Costa**\n\n* Github: [MarcioCosta013](https://github.com/MarcioCosta013)\n* LinkedIn: [linkedin.com\\/in\\/marcio-jcosta\\/](https://linkedin.com/in/https:\\/\\/www.linkedin.com\\/in\\/marcio-jcosta\\/)\n* Instagran: [@marcio_costa013](https://www.instagram.com/marcio_costa013/)\n\n\n## 🤝 Contribuição\n\nContribuições, problemas e solicitações de recursos são bem-vindos!\u003cbr /\u003eFique à vontade para conferir [issues page](https://github.com/MarcioCosta013/DecolaTech2025-angular-blog/issues). \n\n## 🤩 Mostre seu apoio\n\nDê uma ⭐️ se este projeto te ajudou!\n\n\n\u003c/br\u003e\u003c/br\u003e\u003c/br\u003e\u003c/br\u003e\u003c/br\u003e\u003c/br\u003e\u003c/br\u003e\n\n\n[JAVA_BADGE]:https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge\u0026logo=openjdk\u0026logoColor=white\n\n[SPRING_BADGE]: https://img.shields.io/badge/spring-%236DB33F.svg?style=for-the-badge\u0026logo=spring\u0026logoColor=white\n\n\u003ch1 id=\"ingles\" align=\"center\"\u003e DevTech Blog API Project \u003c/h1\u003e\n\n\u003cp\u003e\n  \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-0.0.0-blue.svg?cacheSeconds=2592000\" /\u003e\n\u003c/p\u003e\n\n![java][JAVA_BADGE]\n![spring][SPRING_BADGE]\n\n[Frontend Repository](https://github.com/MarcioCosta013/DevTechBlog-UI_DecolaTech2025)\n\n**Versão em Portuguese**: [Click aqui](#portugues).\n\n\u003e Backend of the DEVTECH Blog site...\n\n\u003ch3\u003e ✨ Features \u003c/h3\u003e\n\n- **Contributor CRUD**: Create, Read, Update, and Delete Contributors\n- **Sites CRUD**: Create, Read, Update, and Delete Sites\n- **Entity Relationships**: Sites linked to a Contributor who shared them (Many-to-One)\n\n\u003ch3\u003e 🛠️ Technologies \u003c/h3\u003e\n\n- **Java 21**\n- **Spring Boot 3**\n    - Spring Data JPA\n    - Spring Validation\n- **Flyway** (Database Migration)\n- **Swagger/OpenAPI** (Documentation)\n- **Lombok**\n- **PostgreSQL** (Database)\n- **Maven** (Dependency Management)\n\n\u003ch3\u003e 📂 Project Structure \u003c/h3\u003e\n\n````\nsrc/\n├── main/\n│ ├── java/\n│ │ └── com/\n│ │ ├── devtechblog/\n│ │ │ ├── config/ # Configuration files (CorsConfig, SwaggerConfig)\n│ │ │ ├── controller/ # Controllers (ContribuidorController, SitesController)\n│ │ │ ├── dtos/ # DTO Record Classes (ContributorDTO, SitesDTO)\n│ │ │ ├── entity/ # # JPA Entities (ContributorEntity, SiteEntity)\n│ │ │ ├── exception/ # Custom Exception (NotFoundException)\n│ │ │ ├── repository/ #  Spring Data Repositories (ContribuidorRepository, TemaRepository)\n│ │ │ └── service/ # Business Logic (ContribuidorService, SiteService)\n│ │ └── \n│ ├── resources/\n│ │ ├── db.migration/\n│ │ │ ├── V202504051704__create_tecle_contribuidor.sql\n│ │ │ └── V202504051714__create_table_sites.sql\n│ │ ├── application.yml\n│ │ └── application-dev.yml\n└── \n````\n\n\n## Instructions to Run the Project\n\n1. Clone the repository: `git clone https://github.com/MarcioCosta013/DevTechBlog-API.git`\n2. Install the dependencies: `mvn clean install`\n3. Run the project: `mvn spring-boot:run`\n4. Access Swagger: `http://localhost:8080/swagger-ui.html`\n\n## Using Docker Compose\n\n1. Clone the repository: `git clone https://github.com/MarcioCosta013/DevTechBlog-API.git`\n2. Access the project directory: `cd DevTechBlog-API`\n3. Run the command: `docker-compose up`\n4. Access Swagger: `http://localhost:8080/swagger-ui.html`\n\n### Configuration Parameters\n\n- DB_URL: Database URL\n- DB_USER: Database user\n- DB_PASSWORD: Database password\n- SPRING_PROFILES_ACTIVE: Active Spring profile\n\n#### Example Usage\n\n- To run the project with Docker, use the command: docker run -p 8080:8080 devtechblog-api\n- To run the project with Docker Compose, use the command: docker-compose up\n\n### Notes\n\n\u003e - Make sure Docker is installed and configured correctly on your system.\n\u003e - Make sure the database is configured correctly and that environment variables are defined.\n\n## API Documentation\n\n- Swagger/OpenAPI: `http://localhost:8080/swagger-ui.html`\n\n## 😎 Author\n\n**Marcio Costa**\n\n* Github: [MarcioCosta013](https://github.com/MarcioCosta013)\n* LinkedIn: [linkedin.com\\/in\\/marcio-jcosta\\/](https://linkedin.com/in/https:\\/\\/www.linkedin.com\\/in\\/marcio-jcosta\\/)\n* Instagram: [@marcio_costa013](https://www.instagram.com/marcio_costa013/)\n\n## 🤝 Contribution\n\nContributions, issues, and feature requests are welcome!\u003cbr /\u003eFeel free to check [issues page](https://github.com/MarcioCosta013/DecolaTech2025-angular-blog/issues).\n\n## 🤩 Show Your Support\n\nGive a ⭐️ if this project helped you!\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarciocosta013%2Fdevtechblog-api_decolatech2025","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarciocosta013%2Fdevtechblog-api_decolatech2025","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarciocosta013%2Fdevtechblog-api_decolatech2025/lists"}