Giter Club home page Giter Club logo

cleo-primer's Introduction

cleo-primer

The cleo-primer package provides a basic RESTful implementation of partial, out-of-order and real-time typeahead services. It is built on Cleo, an open source package from LinkedIn.

Homepage

Find out more about Cleo at http://sna-projects.com/cleo.

License

Apache Public License (APL) 2.0

Artifacts

cleo-primer.war

Maven

groupId: com.sna-projects.cleo

artifactId: cleo-primer

version: 1.0

Build the war

mvn clean package

Launch WebApp

Launch the cleo-primer web application using the next command from the main folder:

MAVEN_OPTS="-Xms1g -Xmx1g" mvn jetty:run -Dcleo.instance.name=Company -Dcleo.instance.type=cleo.primer.GenericTypeaheadInstance -Dcleo.instance.conf=src/main/resources/config/generic-typeahead

You can customize your web application by choosing different values for parameters cleo.instance.name, cleo.instance.type and cleo.instance.conf. Depending on the size of your data sets, you may need to specify a different JVM heap size.

Post a list of new elements

./scripts/post-element-list.sh dat/nasdaq-company-list.xml

Post a new element

./scripts/post-element.sh dat/nasdaq-google.xml dat/nasdaq-intel.xml

Search

Visit the URL below to try out cleo-primer.

http://localhost:8080/cleo-primer

http://localhost:8080/cleo-primer/rest/elements/search?query=goo

Eclipse

Set up Eclipse by executing the command below:

mvn eclipse:eclipse

Inside Eclipse, select Preferences > Java > Build Path > Classpath Variables. Define a new classpath variable M2_REPO and assign maven repository.

For more information, check out http://maven.apache.org/guides/mini/guide-ide-eclipse.html

Contribute

For help please see the discussion group. Bugs and feature requests can be filed here.

cleo-primer's People

Contributors

jingwei avatar krati avatar

Watchers

 avatar  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.