{"id":30172877,"url":"https://github.com/afikeschel/springboot-softwareengineer","last_synced_at":"2026-04-13T13:01:59.367Z","repository":{"id":308178955,"uuid":"1031907492","full_name":"AfikEschel/Springboot-SoftwareEngineer","owner":"AfikEschel","description":"Spring Boot + PostgreSQL REST API to manage software engineers","archived":false,"fork":false,"pushed_at":"2025-08-04T15:12:38.000Z","size":15,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-11T23:23:51.318Z","etag":null,"topics":["docker","java","postgres","rest-api","spring-boot"],"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/AfikEschel.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,"zenodo":null}},"created_at":"2025-08-04T14:07:53.000Z","updated_at":"2025-08-04T15:12:41.000Z","dependencies_parsed_at":"2025-08-04T18:36:59.692Z","dependency_job_id":null,"html_url":"https://github.com/AfikEschel/Springboot-SoftwareEngineer","commit_stats":null,"previous_names":["afikeschel/springboot-softwareengineer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AfikEschel/Springboot-SoftwareEngineer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AfikEschel%2FSpringboot-SoftwareEngineer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AfikEschel%2FSpringboot-SoftwareEngineer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AfikEschel%2FSpringboot-SoftwareEngineer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AfikEschel%2FSpringboot-SoftwareEngineer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AfikEschel","download_url":"https://codeload.github.com/AfikEschel/Springboot-SoftwareEngineer/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AfikEschel%2FSpringboot-SoftwareEngineer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31753551,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-13T09:16:15.125Z","status":"ssl_error","status_checked_at":"2026-04-13T09:16:05.023Z","response_time":93,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["docker","java","postgres","rest-api","spring-boot"],"created_at":"2025-08-11T23:18:00.707Z","updated_at":"2026-04-13T13:01:59.352Z","avatar_url":"https://github.com/AfikEschel.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Software Engineers API (Spring Boot + PostgreSQL)\n\nA small REST API to manage software engineers.  \nBuilt to demonstrate Java, Spring Boot, JPA/Hibernate, PostgreSQL, Docker, and testing with JUnit/Mockito.\n\n## Features\n- CRUD endpoints for `SoftwareEngineer`\n- Spring Data JPA with PostgreSQL\n- Basic service-layer unit tests (JUnit 5 + Mockito)\n- Swagger / OpenAPI UI\n- Actuator health endpoint\n- Dockerfile for containerized runtime\n- `requests.http` file with ready-to-run API calls\n\n## Tech Stack\n- Java 21 · Spring Boot\n- Spring Web · Spring Data JPA\n- PostgreSQL\n- Maven\n- Docker\n\n---\n\n## Quickstart\n\n### 1) Start PostgreSQL (Docker)\n```\ndocker run --name pg \\\n  -e POSTGRES_USER=ae \\\n  -e POSTGRES_PASSWORD=ae \\\n  -e POSTGRES_DB=ae1 \\\n  -p 5432:5432 \\\n  -d postgres:16\n```\n\n### 2) Configure the app\nCreate or edit `src/main/resources/application.properties`:\n\n```properties\nspring.datasource.url=${SPRING_DATASOURCE_URL:jdbc:postgresql://localhost:5432/ae1}\nspring.datasource.username=${SPRING_DATASOURCE_USERNAME:ae}\nspring.datasource.password=${SPRING_DATASOURCE_PASSWORD:ae}\nspring.jpa.hibernate.ddl-auto=update\nspring.jpa.open-in-view=false\n```\n\n### 3) Run the app\n```bash\n# Maven\nmvn spring-boot:run\n\n# Or build \u0026 run the jar\nmvn package\njava -jar target/*.jar\n```\n\n### 4) Try the API\n- **Swagger UI:** [http://localhost:8080/swagger-ui.html](http://localhost:8080/swagger-ui.html)\n- **Health:** [http://localhost:8080/actuator/health](http://localhost:8080/actuator/health)\n\nYou can use the included `requests.http` file (for IntelliJ/JetBrains HTTP Client)  \nor test with `curl`:\n\n```bash\ncurl http://localhost:8080/api/v1/software-engineer\n``` \n\n\n## Build \u0026 Run with Docker\n```bash \n### Build image\ndocker build -t se-api:latest .\n\n### Run container (connects to Postgres running on the host)\ndocker run -p 8080:8080 \\\n-e SPRING_DATASOURCE_URL=jdbc:postgresql://host.docker.internal:5432/ae1 \\\n-e SPRING_DATASOURCE_USERNAME=ae \\\n-e SPRING_DATASOURCE_PASSWORD=ae \\\nse-api:latest\n``` \n## API Endpoints\n```bash\nGET    /api/v1/software-engineer\nGET    /api/v1/software-engineer/{id}\nPOST   /api/v1/software-engineer\nPUT    /api/v1/software-engineer/{id}\nDELETE /api/v1/software-engineer/{id}\n```\n\n## Testing\n\nRun all test:\n```bash\nmvn test\n```\n- Unit tests cover the service layer using Mockito.\n- Future improvements: controller slice tests (MockMvc) and integration tests (Testcontainers with PostgreSQL).","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafikeschel%2Fspringboot-softwareengineer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fafikeschel%2Fspringboot-softwareengineer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fafikeschel%2Fspringboot-softwareengineer/lists"}