https://github.com/couchbase-starter-kit/couchbase-spring-starter
A starter kit for building Spring Boot applications with Couchbase integration. Includes sample configurations, environment setup, JUnit test
https://github.com/couchbase-starter-kit/couchbase-spring-starter
codespace couchbase devcontainer gitpod spring-boot starter starter-kit
Last synced: 2 months ago
JSON representation
A starter kit for building Spring Boot applications with Couchbase integration. Includes sample configurations, environment setup, JUnit test
- Host: GitHub
- URL: https://github.com/couchbase-starter-kit/couchbase-spring-starter
- Owner: couchbase-starter-kit
- Created: 2024-07-04T09:28:06.000Z (11 months ago)
- Default Branch: main
- Last Pushed: 2024-10-24T12:42:45.000Z (8 months ago)
- Last Synced: 2025-02-02T12:15:32.979Z (4 months ago)
- Topics: codespace, couchbase, devcontainer, gitpod, spring-boot, starter, starter-kit
- Language: Java
- Homepage:
- Size: 81.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Couchbase Spring Starter Kit
[](https://codespaces.new/couchbase-starter-kit/couchbase-spring-starter)
[](https://gitpod.io/#https://github.com/couchbase-starter-kit/couchbase-spring-starter)## Configuration
| Variable Name | Description | Default value |
|:-----------------------------------|:------------------------------------------------------------|:------------------------:|
| SPRING_APPLICATION_NAME | The name of your application, used for OTLP as well | couchbase-spring-starter |
| SPRING_COUCHBASE_CONNECTION_STRING | A couchbase connection string | - |
| SPRING_COUCHBASE_USERNAME | Username for authentication with Couchbase | - |
| SPRING_COUCHBASE_PASSWORD | Password for authentication with Couchbase | - |
| COUCHBASE_USE_CAPELLA | Use to change the connection profile | false |
| COUCHBASE_DEFAULT_BUCKET | The name of the Couchbase Bucket, parent of the scope | default |
| COUCHBASE_DEFAULT_SCOPE | The name of the Couchbase scope, parent of the collection | _default |
| COUCHBASE_DEFAULT_COLLECTION | The name of the Couchbase collection to store the Documents | _default |
| COUCHBASE_OTLP_ENABLED | Enable traces and metrics OTLP export | false |
| COUCHBASE_OTLP_ENADPOINT | The OTLP server endpoint to send metrics and traces | - |## Unit Tests
Unit test in the `com.exqmple.integration` package are running against a cluster configured with env variables. Unit tests in the `com.exqmple.testcontainers` package are running with a Test Containers.
## OpenTelemetry tests
The current test setup assumes there is an OTLP endpoint available on http://localhost:4317. The fastest way to start one is to use https://github.com/CtrlSpice/otel-desktop-viewer