Skip to content

younessaghazzaf/OpenCompare

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenCompare

This project contains development artifacts used to perform research around product comparison matrices (PCM). This work is currently involving members of the diverse (DIVERsity-centric Software Engineering) research team (http://diverse.irisa.fr/).

This project is released under Apache v2 License.

Join the chat at https://gitter.im/gbecan/OpenCompare

Development tools :

  • Play
  • Maven
  • Continous integration with Jenkins (https://ci.inria.fr/) and Travis CI: Build Status
  • We use intellij with the KMF plugin for the development

Framework(s) :

Projects :

This github repository contains several projects :

  • api-java: Java interface
  • api-js: Javascript interface
  • api-java-impl: Java implementation of the API
  • api-js-impl: Js implementation of the API
  • model: contain the data model, takes car of the code source generation for the API
  • formalizer: interpret and formalize cells contained in PCMs
  • naiveFrontEnd: a naive website to show how to manipulate model in a browser
  • io-shopping-website: parses shopping.com and creates PCMs
  • io-wikipedia: parses wikipedia pages and creates PCMs
  • io.BestBuy: parses bestbuy.com and creates PCMs
  • play-app: contain OpenCompare website (web editor for PCMs)
  • getting-started: minimal project that shows how to use the API

Getting started :

Install

git clone https://github.com/gbecan/PCM.git
mvn clean install

To compile the project you must define two environment variables:

  • JAVA_HOME must point to a JDK with a version >= 8
  • PLAY2_HOME must point to your install of Play! Framework. If you want to use the integrated install of the project, you can set the variable as follows: PLAY2_HOME=/.../org.opencompare/play-app/

The directory org.opencompare/getting-started contains a minimal maven project that shows how to use the PCM API. This project is independent from the other projects and can be easily copied and modified.

You can also use the following command to skip the tests:

mvn clean install -DskipTests

Start OpenCompare website

If you want to run the Play! application (basically the OpenCompare website), change directory to org.opencompare/dataset-wikipedia and execute

mvn test -PbuildDataset

Then, go to org.opencompare/play-app and execute the following command to populate the database (before you need to launch MongoDB server through mongod).

./activator test

Finally, or if you already have populated the database, you can launch the HTTP server:

./activator run

To remove all the PCMs from the database, you have to connect to your mongo instance and remove all the elements of the pcms collection of the opencompare database as in the following commands:

mongo
use opencompare
db.pcms.remove({})

Packages

No packages published

Languages

  • JavaScript 82.6%
  • Scala 7.7%
  • Java 7.6%
  • HTML 1.9%
  • Other 0.2%