Giter Site home page Giter Site logo

k-groshev / java-shop-categories Goto Github PK

View Code? Open in Web Editor NEW

This project forked from prakass/java-shop-categories

0.0 2.0 0.0 550 KB

Java implementation of a shop domain model with categories and products, using the Neo4j graph database

Home Page: http://blog.neo4j.org/2010/03/modeling-categories-in-graph-database.html

Java 100.00%

java-shop-categories's Introduction

A simple shop/categories example handling nested categories
and an attribute definition hierarchy.


Requirements

To execute the project, Java 5+ is needed. To run from source,
JDK 1.5+ is needed, and optionally Maven2 for dependency management.


Download packages

There's download packages located here:
http://m2.neo4j.org/org/neo4j/examples/java-shop-categories/1.0.0-SNAPSHOT/
Look for files ending in .zip or .tar.gz
Only Java 5+ is required to execute the example using the download.


Contents of the download package

bin/   start scripts for the application in Unix and Windows format
docs/  javadoc of all Neo4j component dependencies of the project
lib/   all dependency jars of the project
src/   source code of the project


Run from source

Using JDK:
   Use the download package and add the lib/ directory
   to the project classpath ("build path" in Eclipse).
   In this case, only JDK 1.5+ is required to run the code
   from source.
Using JDK + Maven:
   Checkout the code from GitHub and use the Maven2
   setup originally used for the project. This option requires
   JDK 1.5+ and Maven2 to be installed, see:
   http://wiki.neo4j.org/content/Java_Setup_HowTo
   With Maven2 installed, simply issue the following command
   at the command prompt:
   $ mvn clean compile exec:java -Dexec.mainClass="org.neo4j.examples.shopcategories.ShopCategoriesApp"
   or simply run the JUnit test (which contains essentially the same code):
   $ mvn test
   This command will download all dependencies that are needed on the first run.


Sample output

Product:
 CPU frequency -> 2000 MHz
 Shipping weight -> 6.3 Kg
 Display size -> 15.0 "
 Name -> HP Laptop 
 Price -> 1200.0 USD
 Weight -> 3.5 Kg

Product:
 CPU frequency -> 3000 MHz
 Shipping weight -> 22.3 Kg
 Expansion slots -> 4 pcs.
 Name -> Dell Desktop 
 Price -> 890.0 USD
 Weight -> 17.1 Kg

java-shop-categories's People

Contributors

nawroth avatar

Watchers

James Cloos avatar Konstantin Groshev avatar

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.