-
Notifications
You must be signed in to change notification settings - Fork 14
Installation
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
standaloneMaven profile) - run the webapp in an IDE or deploy the
.waron a servlet container such as Tomcat - open the webapp in a browser (on an address such as http://localhost:8080/; depends on host, Tomcat port and application 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
dependencyMaven profile (it NetBeans, this is done under "Set Configuration" in project menu). Alternatively, you can change POM to build a.jarlike 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. The
<type>war</type>dependency enables reuse of static resources from Graphity Client, such as Twitter Bootstrap<dependency> <groupId>org.graphity</groupId> <artifactId>client</artifactId> <version>1.0.8-SNAPSHOT</version> </dependency> <dependency> <groupId>org.graphity</groupId> <artifactId>client</artifactId> <version>1.0.8-SNAPSHOT</version> <type>war</type> </dependency> -
add
main/webapp/WEB-INF/web.xmlwith 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
-
to import static resources enabled by the
<type>war</type>dependency, add a Maven overlay under<configuration>ofmaven-war-plugin:<overlays> <overlay> <groupId>org.graphity</groupId> <artifactId>client</artifactId> </overlay> </overlays>