{"id":15147505,"url":"https://github.com/glu-tech/adopt-animals","last_synced_at":"2026-01-20T14:34:06.426Z","repository":{"id":250592206,"uuid":"834876015","full_name":"glu-tech/adopt-animals","owner":"glu-tech","description":"Animal adoption management","archived":false,"fork":false,"pushed_at":"2024-07-28T16:43:27.000Z","size":53,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-07T01:14:10.827Z","etag":null,"topics":["aws-s3","backend","gradle","java","postgresql","springboot","swagger","swagger-ui"],"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/glu-tech.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":"2024-07-28T16:20:14.000Z","updated_at":"2024-07-28T16:45:10.000Z","dependencies_parsed_at":"2024-07-28T18:11:03.643Z","dependency_job_id":null,"html_url":"https://github.com/glu-tech/adopt-animals","commit_stats":null,"previous_names":["glu-tech/adopt-animals"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/glu-tech/adopt-animals","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glu-tech%2Fadopt-animals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glu-tech%2Fadopt-animals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glu-tech%2Fadopt-animals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glu-tech%2Fadopt-animals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/glu-tech","download_url":"https://codeload.github.com/glu-tech/adopt-animals/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/glu-tech%2Fadopt-animals/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28604949,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T12:01:53.233Z","status":"ssl_error","status_checked_at":"2026-01-20T12:01:46.545Z","response_time":117,"last_error":"SSL_read: 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":["aws-s3","backend","gradle","java","postgresql","springboot","swagger","swagger-ui"],"created_at":"2024-09-26T12:41:53.475Z","updated_at":"2026-01-20T14:34:06.399Z","avatar_url":"https://github.com/glu-tech.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Adoption Animals Project\n\n## Overview\n\nThe Adoption Animals project is a Spring Boot application that manages animal adoption processes. It supports creating, listing, retrieving, and updating animal records, including uploading images to AWS S3.\n\n## Installation and Setup\n\n### Prerequisites\n\n- **Java Development Kit (JDK)**: Ensure you have JDK 11 or above installed.\n- **Gradle**: Ensure you have Gradle installed. You can use the Gradle Wrapper provided with the project.\n- **Amazon Web Services (AWS)**: Ensure you have AWS credentials and access to an S3 bucket.\n- **PostgreSQL**: Ensure you have PostgreSQL and create database animalAdopt\n\n### Clone the Repository\n\nClone the repository to your local machine:\n\n```bash\ngit clone [https://your-repo-url](https://github.com/glu-tech/adopt-animals).git\ncd adopt-animals\n```\n\n## Configure application.properties\n### Database Configuration: Configure your database settings in src/main/resources/application.properties:\n```bash\nspring.datasource.username=your_username\nspring.datasource.password=your_password\nspring.datasource.url=jdbc:postgresql://localhost:5432/animalAdopt\n```\n\n## Configure S3Config\n### AWS Configuration: Configure your AWS account in src/main/java/com.glutech.adoptanimals/config/S3Config.java:\n```bash\nBasicAWSCredentials awsCreds = new BasicAWSCredentials(\"YOUR_ACCESS_KEY\", \"YOUR_SECRET_KEY\");\n```\n\n## Build the project\n### Use Gradle to build the project:\n```bash\n./gradlew build\n```\n\n## Run the Application\n### Start the Spring Boot application:\n```bash\n./gradlew bootRun\n```\nThe application will start on http://localhost:8080. And the Swagger run in http://localhost:8080/swagger-ui/index.html\n\n## Testing\n\n### Unit Tests\nUnit tests are located in the src/test/java/com/glutech/adoptanimals/service directory. To run the tests, use Gradle:\n```bash\n./gradlew test\n```\n\n### Create Animal Success\nDescription: Tests successful creation of an animal with an image.\nTest Method: createAnimal_Success\n\n### List Animals Success\nDescription: Tests successful listing of animals with pagination.\nTest Method: listAnimals_Success\n\n### Get Animal Success\nDescription: Tests successful retrieval of an animal by ID.\nTest Method: getAnimal_Success\n\n### Get Animal Not Found\nDescription: Tests retrieval of a non-existing animal.\nTest Method: getAnimal_NotFound\n\n### Change Status Success\nDescription: Tests successful status change of an animal.\nTest Method: changeStatus_Success\n\n### Change Status Animal Not Found\nDescription: Tests status change for a non-existing animal.\nTest Method: changeStatus_AnimalNotFound\n\n## Conclusion\nThis documentation provides a comprehensive guide to installing, configuring, running, and testing the Adoption Animals project. For further details or troubleshooting, refer to the Spring Boot documentation and AWS S3 documentation.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglu-tech%2Fadopt-animals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fglu-tech%2Fadopt-animals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fglu-tech%2Fadopt-animals/lists"}