Skip to content

jonathanvila/oc1-hands-on-2018

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Eclipse JNoSQL: One API to Many NoSQL Databases - BYOL [HOL5998]

Eclipse JNoSQL is a Java framework that streamlines the integration of Java applications with NoSQL databases. It defines a set of APIs and provides a standard implementation for most NoSQL databases. This clearly helps achieve very low coupling with the underlying NoSQL technologies used in applications. The objective of this session is to show how to use the Eclipse JNoSQL framework to connect with a NoSQL database and perform operations to manipulate and extract information.

Requirements

Run the code

  • git clone https://github.com/JNOSQL/oc1-hands-on-2018.git
  • cd oc1-hands-on-2018
  • mvn clean install
  • Run databases
    • Run Docker instances
    • Run Docker Compose

Run Docker instances

Docker

  • docker run --name redis-instance -p 6379:6379 -d redis
  • docker run -d --name casandra-instance -p 9042:9042 cassandra
  • docker run -d --name mongodb-instance -p 27017:27017 mongodb
  • docker run -d -p 7474:7474 -p 7687:7687 neo4j

Run as Docker-Compose

Start fresh environment

docker-compose -f docker-compose.yml up -d

Stop and Remove

docker-compose -f docker-compose.yml down

List services

docker-compose -f ft-compose.yml ps

Challenges

Use case #1 - Key/Value

  • Create a database to handle JUG information using Redis
  • Create, Retrieve and Update JUG information
  • Where the JUG name is the unique value.

Use case #2 - Document

  • Implement some searches against a MongoDB
  • Search JUG members in a given city
  • Search JUG members of legal drinking age
  • Search JUGs in a region

Use case #3 - Graph (Bonus)

  • Implement recommendation searches against Neo4J
  • Find Beginner Java Users that know Advanced Java User(s).
  • Find Java Users in a given City
  • Recommend Advanced Java Users in the same City as a given User.

Model

JUG
  • Name
  • City
  • Programming Languages
  • Country
JUG Member
  • Name
  • City
  • Programming Languages (name and skill level)

About

Eclipse JNoSQL Hands-on lab at Oracle Code One 2018.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%