Talk - [PT-BR] - Domine a complexidade e os desafios da integração NoSQL em aplicações Java cloud-native
-
Install docker: https://www.docker.com/
-
Run three Docker commands
-
docker run -d --name mongodb-instance -p 27017:27017 mongo
-
docker run -d --name db -p 8091-8097:8091-8097 -p 9123:9123 -p 11207:11207 -p 11210:11210 -p 11280:11280 -p 18091-18097:18091-18097 couchbase
-
-
You also have the option for running docker-compose:
-
docker-compose up -d
-
-
Execute the test
mvn clean verify
-
Select the option "Setup New Cluster"
-
Define "root" as Admin username
-
Define "123456" as Password
-
Define "localhost" as Cluster Name
-
Accept the terms and conditions
-
Go to "Buckets" session
-
Create Bucket "javanoroeste" using the "Add Bucket" Option
-
Click at "javanoroeste"
-
Add "Developer" as Collection
-
Go to Query session and execute:
CREATE PRIMARY INDEX primaryDeveloper ON javanoroeste._default.Developer