Skip to content
Martynas Jusevičius edited this page Jul 15, 2013 · 32 revisions

Running standalone Client

To run Graphity Client:

  • checkout the source code from this Git repository
  • checkout the source code of Graphity Server dependency (it is not available on Maven yet)
  • build Client as a Maven Web application (as specified by the default standalone Maven profile)
  • run the webapp in an IDE or deploy the .war on a servlet container such as Tomcat
  • open the webapp in a browser (on an address such as http://localhost:8080/; depends on host and/or context path)

Using Client in your Maven Web application

To add Graphity Client dependency:

  • checkout the source code from this Git repository

  • checkout the source code of Graphity Server dependency (it is not available on Maven yet)

  • switch to dependency Maven profile (it NetBeans, this is done under "Set Configuration" in project menu). Alternatively, you can change POM to build a .jar like this:

      <packaging>jar</packaging>
    
  • build it as a Maven Java application

  • add Graphity Client as a Maven dependency in your project using an IDE, or in the 'pom.xml' file

      <dependency>
          <groupId>org.graphity</groupId>
          <artifactId>client</artifactId>
          <version>1.0.7-SNAPSHOT</version>
      </dependency>
    
  • add main/webapp/WEB-INF/web.xml with this JAX-RS config:

      <filter>
          <filter-name>index</filter-name>
          <filter-class>com.sun.jersey.spi.container.servlet.ServletContainer</filter-class>
          <init-param>
              <param-name>javax.ws.rs.Application</param-name>
              <param-value>org.graphity.client.ApplicationBase</param-value>
          </init-param>
      </filter>
    
  • pom.xml execution

  • extract Twitter Bootstrap distribution into /src/main/webapp/static/ folder

Clone this wiki locally