dearrudam / exploring-jakarta-data-nosql-documents

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Talk - [PT-BR] - Domine a complexidade e os desafios da integração NoSQL em aplicações Java cloud-native

Start the code

  • Install docker: https://www.docker.com/

  • https://hub.docker.com/r/couchbase/server/

  • 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

Couchbase Configuration

  1. Access: http://localhost:8091/ui/index.html

  2. Select the option "Setup New Cluster"

  3. Define "root" as Admin username

  4. Define "123456" as Password

  5. Define "localhost" as Cluster Name

  6. Accept the terms and conditions

  7. Go to "Buckets" session

  8. Create Bucket "javanoroeste" using the "Add Bucket" Option

  9. Click at "javanoroeste"

  10. Add "Developer" as Collection

  11. Go to Query session and execute: CREATE PRIMARY INDEX primaryDeveloper ON javanoroeste._default.Developer

About


Languages

Language:Java 100.0%