Git Product home page Git Product logo

demos-se's Introduction

JNoSQL examples code

Introduction

Java SE sample using NoSQL with Jakarta NoSQL.

This project contains several projects with the primary goal of exploring the Jakarta NoSQL on several databases.

ArangoDB

ArangoDB

ArangoDB: ArangoDB is a native multi-model database system developed by triAGENS GmbH. The database system supports three important data models (key/value, documents, graphs) with one database core and a unified query language AQL (ArangoDB Query Language). The query language is declarative and allows the combination of different data access patterns in a single query. ArangoDB is a NoSQL database system but AQL is similar in many ways to SQL.

How to install with Docker

library docker logo
  1. Install docker: https://www.docker.com/

  2. https://hub.docker.com/_/arangodb

  3. Run docker command:

docker run -e ARANGO_NO_AUTH=1 -d --name arangodb-instance -p 8529:8529 -d arangodb/arangodb

MongoDB

MongoDB

Mongodb: MongoDB is a free and open-source cross-platform document-oriented database program. Classified as a NoSQL database program, MongoDB uses JSON-like documents with schemas.

How to install with Docker

library docker logo
  1. Install docker: https://www.docker.com/

  2. https://hub.docker.com/_/mongo

  3. Run docker command:

docker run -d --name mongodb-instance -p 27017:27017 mongo

Oracle NoSQL

Oracle NoSQL

Oracle NoSQL: Oracle NoSQL Database is a NoSQL-type distributed key-value and document database from Oracle Corporation. It provides transactional semantics for data manipulation, horizontal scalability, and simple administration and monitoring.

How to install with Docker

library docker logo
  1. Install docker: https://www.docker.com/

  2. Run docker command:

docker run -d --name oracle-instance -p 8080:8080 ghcr.io/oracle/nosql:latest-ce

CouchDB

Couchbase

Apache CouchDB is an open-source document-oriented NoSQL database, implemented in Erlang. CouchDB uses multiple formats and protocols to store, transfer, and process its data. It uses JSON to store data, JavaScript as its query language using MapReduce, and HTTP for an API.

How to install with Docker

library docker logo
  1. Install docker: https://www.docker.com/

  2. https://hub.docker.com/_/couchdb

  3. Run docker command:

docker run -p 5984:5984 -e COUCHDB_USER=admin -e COUCHDB_PASSWORD=password -d couchdb
  1. Follow the instructions: https://hub.docker.com/_/couchdb

  2. Create heroes as bucket name

  3. Create Hero and Villain as collections

  4. Create primary query to Hero

Projects

Couchbase

CouchDB

Couchbase Server, originally known as Membase, is an open-source, distributed multi-model NoSQL document-oriented database software package optimized for interactive applications. These applications may serve many concurrent users by creating, storing, retrieving, aggregating, manipulating and presenting data.

How to install with Docker

library docker logo
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
  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 "heroes" using the "Add Bucket" Option

  9. Click at "heroes"

  10. Add "Hero" and "Villain" as Collection

  11. Go to Query session and execute:

CREATE PRIMARY INDEX `#primary` ON `heroes`.`_default`.`Hero`

Projects

Elastisearch

ES

Elasticsearch is a search engine based on the Lucene library. It provides a distributed, multitenant-capable full-text search engine with an HTTP web interface and schema-free JSON documents.

How to install with Docker

library docker logo
docker run -p 9200:9200 -p 9300:9300 \
  -e "ES_JAVA_OPTS=-Xms1g -Xmx1g" \
  -e "xpack.security.enabled=false" \
  -e "discovery.type=single-node" \
  elasticsearch:8.7.1

Cassandra

Cassandra

Cassandra: Apache Cassandra is a free and open-source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.

How to install with Docker

library docker logo
  1. Install docker: https://www.docker.com/

  2. https://hub.docker.com/_/cassandra

  3. Run docker command:

docker run -d --name casandra-instance -p 9042:9042 cassandra

Projects

Scylla

ScyllaDB

ScyllaDB is an open-source distributed NoSQL wide-column data store. It was designed to be compatible with Apache Cassandra while achieving significantly higher throughputs and lower latencies.

How to install with Docker

library docker logo
docker run -d --name scylladb-instance -p 9042:9042 scylladb/scylla

Projects

Redis

Redis

Redis is an in-memory data structure store, used as a distributed, in-memory key–value database, cache and message broker, with optional durability. Redis supports different kinds of abstract data structures, such as strings, lists, maps, sets, sorted sets, HyperLogLogs, bitmaps, streams, and spatial indices.

How to install with Docker

library docker logo
  1. Install docker: https://www.docker.com/

  2. https://hub.docker.com/_/redis

  3. Run docker command:

docker run --name redis-instance -p 6379:6379 -d redis

Projects

Hazelcast

Hazelcast

Hazelcast:In computing, Hazelcast is an open source in-memory data grid based on Java.

Projects

Memcached

Memcached

Memcached is a general-purpose distributed memory-caching system. It is often used to speed up dynamic database-driven websites by caching data and objects in RAM to reduce the number of times an external data source must be read. Memcached is free and open-source software, licensed under the Revised BSD license.

How to install with Docker

library docker logo
  1. Install docker: https://www.docker.com/

  2. https://hub.docker.com/_/memcached

  3. Run docker command:

docker run -d --name memcached-instance -p 11211:11211 memcached:latest

Projects

Neo4J

Neo4J

Neo4j is a graph database management system developed by Neo4j, Inc. The data elements Neo4j stores are nodes, edges connecting them, and attributes of nodes and edges.

How to install with Docker

library docker logo
  1. Install docker: https://www.docker.com/

  2. https://hub.docker.com/_/neo4j

  3. Run docker command:

docker run --publish=7474:7474 --publish=7687:7687 --env NEO4J_AUTH=neo4j/admin123 neo4j

Projects

BookApp

Library recommendation, category based that shows the software categories, the software books and also a book that is Software and Java.

Book
MarketingApp

The marketing campaign that needs to match from some rules relationship based with four people.

Marketing
TravelApp

Given cities and travelers, this TravelApp will return the most famous city, the person who most travel and also some friends suggestion placed by the visited cities.

Travel

JanusGraph

JanusGraph

JanusGraph is an open source, distributed graph database under The Linux Foundation. JanusGraph is available under the Apache License 2.0. The project is supported by IBM, Google, Hortonworks and Grakn Labs. JanusGraph supports various storage backends.

Projects

BookApp

Library recommendation, category based that shows the software categories, the software books, and also a book that is Software and Java.

Book
MarketingApp

The marketing campaign that needs to match from some rules relationship based with four people.

Marketing
TravelApp

Given cities and travelers, this TravelApp will return the most famous city, the person who most travel and also some friends suggestion placed by the visited cities.

Travel
TheGodsApp

The graph of Gods JanusGraph based

graph of the gods

demos-se's People

Contributors

dearrudam avatar dependabot[bot] avatar gabrielsilvaa avatar hillmerch avatar ivanjunckes avatar keilw avatar krugster avatar otaviojava avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

demos-se's Issues

Adds new demos using different databases

In artemis-demo-java-se adds more projects using distinct databases whose Diana has support. Each demo project should have:

  • A read.me file with the description and also who install the database using manual installation also docker.
  • A class demo that is using just Template API
  • This sample should use CDI 2.0
  • If the database has extension a class with this demo
  • If the database has particular behavior a demo class with this resource.

Create a CI build like Travis

There should be a CI build e.g. Travis (or Github's own "Actions" if somebody knows how to get them to work) for those demos.

mongodb-double fails with RAT violations

The mongodb-double module fails with RAT violations.

[INFO] Rat check: Summary over all files. Unapproved: 6, unknown: 6, generated: 0, approved: 4 licenses.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  2.521 s
[INFO] Finished at: 2020-10-10T21:43:50+02:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.rat:apache-rat-plugin:0.12:check (default) on project mongodb-double: Too many files with unapproved license: 6 See RAT report in: ~\git\artemis-demo\artemis-demo-java-se\mongodb-double\target\rat.txt -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Examples fail to run

Currently every standalone example seems broken, it fails with

Caused by: java.lang.ClassNotFoundException: org.eclipse.microprofile.config.spi.Converter
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
	... 32 more

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.