{"id":31771077,"url":"https://github.com/otaviojava/payara-oracle-nosql","last_synced_at":"2025-10-10T03:19:14.533Z","repository":{"id":317486206,"uuid":"1067617771","full_name":"otaviojava/payara-oracle-nosql","owner":"otaviojava","description":"Integration between Oracle NoSQL and Payara","archived":false,"fork":false,"pushed_at":"2025-10-01T06:59:17.000Z","size":32,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-10-01T08:24:51.433Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/otaviojava.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-10-01T06:07:11.000Z","updated_at":"2025-10-01T06:59:21.000Z","dependencies_parsed_at":"2025-10-01T08:25:05.405Z","dependency_job_id":"71ab3d49-f004-4a6c-bb65-39ad11e1f9e9","html_url":"https://github.com/otaviojava/payara-oracle-nosql","commit_stats":null,"previous_names":["otaviojava/payara-oracle-nosql"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/otaviojava/payara-oracle-nosql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviojava%2Fpayara-oracle-nosql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviojava%2Fpayara-oracle-nosql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviojava%2Fpayara-oracle-nosql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviojava%2Fpayara-oracle-nosql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/otaviojava","download_url":"https://codeload.github.com/otaviojava/payara-oracle-nosql/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/otaviojava%2Fpayara-oracle-nosql/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279002578,"owners_count":26083420,"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","status":"online","status_checked_at":"2025-10-10T02:00:06.843Z","response_time":62,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":[],"created_at":"2025-10-10T03:19:09.608Z","updated_at":"2025-10-10T03:19:14.526Z","avatar_url":"https://github.com/otaviojava.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Payara Oracle NoSQL Integration\n\nA Jakarta EE application demonstrating integration between [Payara Micro](https://payara.fish/downloads/payara-platform-community-edition) and Oracle NoSQL database using Eclipse JNoSQL. \nThis project provides a RESTful API for managing a book library.\n\n## Prerequisites\n\n### For Docker Compose (Recommended)\n- [Docker](https://www.docker.com/get-started)\n\n### For Local Development\n- [Java SE 21+](https://adoptium.net/?variant=openjdk21)\n- [Maven 3.6+](https://maven.apache.org/download.cgi)\n- [Docker](https://www.docker.com/get-started) (for Oracle NoSQL database)\n\n## Quick Start with Docker Compose\n\nThe fastest way to get the application running is with Docker Compose. No need to install Java or Maven—Docker handles everything:\n\n```bash\n# Start both services (builds application automatically)\ndocker-compose up -d\n\n# View logs\ndocker-compose logs -f\n\n# Stop services\ndocker-compose down\n```\n\nThe application will be available at http://localhost:8080/\n\nThe Dockerfile uses multi-stage builds to compile the Maven project inside Docker, so you don't need Maven installed locally.\n\n## Development Setup\n\n### Running Locally\n\n1. Start Oracle NoSQL database:\n```bash\ndocker run -d --name oracle-nosql -p 9999:8888 ghcr.io/oracle/nosql:latest-ce\n```\n\n2. Run the application with Payara Micro:\n```bash\nmvn clean package payara-micro:dev\n```\n\n3. Access the application at http://localhost:8080/\n\n### Configuration\n\nDatabase connection settings are configured in `src/main/resources/META-INF/microprofile-config.properties`:\n\n```properties\njnosql.keyvalue.database=books\njnosql.document.database=books\njnosql.oracle.nosql.host=http://localhost:9999\n```\n\nWhen running with Docker Compose, the host is automatically set to `http://oracle-nosql:8888` via environment variables.\n\n## Building and Deployment\n\n### Build WAR File\n\n```bash\nmvn clean package\n```\n\nThe WAR file will be created in `target/payara-oracle-nosql-0.1-SNAPSHOT.war`\n\n### Build Docker Image\n\n```bash\nmvn clean package docker:build\n```\n\nThis creates a Docker image named `payara-oracle-nosql:0.1-SNAPSHOT`\n\n### Run Docker Container Manually\n\n```bash\ndocker run -p 8080:8080 \\\n  -e JNOSQL_ORACLE_NOSQL_HOST=http://oracle-nosql:8888 \\\n  --network payara-network \\\n  payara-oracle-nosql:0.1-SNAPSHOT\n```\n\n## API Endpoints\n\nThe application exposes RESTful endpoints for book management:\n\n- `GET /api/books` - List all books\n- `GET /api/books/{id}` - Get book by ID\n- `POST /api/books` - Create new book\n- `PUT /api/books/{id}` - Update book\n- `DELETE /api/books/{id}` - Delete book\n\nAdditional endpoints:\n- `GET /api/hello` - Hello World endpoint\n- Swagger UI available at http://localhost:8080/ (when running)\n\n## Testing\n\nRun tests with:\n\n```bash\nmvn test\n```\n\n## Project Structure\n\n```\nsrc/main/java/com/otaviojava/library/\n├── api/              # REST resources and DTOs\n├── application/      # Service layer and mappers\n├── domain/           # Domain entities and repositories\n└── infrastructure/   # JAX-RS configuration\n```\n\n## Technology Stack\n\n- Jakarta EE 10\n- Payara Micro 6.2025.9\n- Eclipse JNoSQL 1.1.10\n- Oracle NoSQL CE\n- MapStruct 1.6.3\n- MicroProfile\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotaviojava%2Fpayara-oracle-nosql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fotaviojava%2Fpayara-oracle-nosql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fotaviojava%2Fpayara-oracle-nosql/lists"}