Couchbase is a project where I illustrated the Geospatial Query structure using spring reactive couchbase. Microservice architecture is used, you can find the Couchbase Geospatial Query in places-service. Medium article I wrote about Couchbase indexing See
mvn spring-boot:run
You can find the necessary Dockerfile
in the docker
folder to use Couchbase via Docker
.
-
First of all, you need to make Couchbase working. Then, you need to add the Couchbase connection information to the relevant fields in the
places-service.yml
files under config-server. See -
Since it is a microservice project,
Spring Cloud Config
was used to manage the config files of the services more easily. Microservices need config files to run, so you need to runconfig-server
first. See -
Service Discovery
was used to enable microservices to communicate with each other more effectively, soEureka Server
, where microservices will register, is our second service that needs to be run. See -
Our last step is to run
places-service
andapi-gateway-service
. -
In order to benefit from
Couchbase's
full text search feature, aGeopoint
index must be created. See -
To configure
Couchbase
, you must create a specific scope and collections on Bucket and define these addresses in theplaces-service.yml
file.
Spring: Spring framework, Spring Cloud, Spring Data, Reactive Couchbase
Unit Test: JUnit 5, Mockito, EasyRandom
Database: Couchbase
Your feedback is very important to me, thank you for reviewing.
Nice have a work day.