Skip to content

Commit fb9e903

Browse files
Moved demo projects
1 parent 1b5b810 commit fb9e903

178 files changed

Lines changed: 7296 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Demos/Dropwizard/.gitignore

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Add any directories, files, or patterns you don't want to be tracked by version control
2+
.idea/*
3+
*.iml
4+
*.ipr
5+
*.iws
6+
target/*
7+
.DS_Store
8+
vs.bin
9+
App_Data/*
10+
node_modules
11+
src/main/resources/assets/*
12+
src/main/resources/static/*
13+
!src/main/resources/assets/.gitkeep
14+
node/
15+
etc/
16+
package-lock.json
17+
Licenses/*
18+
!Licenses/.gitkeep
19+
DocumentSamples/*
20+
!DocumentSamples/.gitkeep
21+
22+
# See http://help.github.com/ignore-files/ for more about ignoring files.
23+
24+
# compiled output
25+
client/dist
26+
client/tmp
27+
client/out-tsc
28+
29+
# dependencies
30+
client/node_modules
31+
32+
# IDEs and editors
33+
client/.idea
34+
.project
35+
.classpath
36+
.c9/
37+
*.launch
38+
client/.settings/
39+
*.sublime-workspace
40+
41+
# IDE - VSCode
42+
.vscode/*
43+
!.vscode/settings.json
44+
!.vscode/tasks.json
45+
!.vscode/launch.json
46+
!.vscode/extensions.json
47+
48+
# misc
49+
client/.sass-cache
50+
client/connect.lock
51+
client/coverage
52+
client/libpeerconnection.log
53+
client/npm-debug.log
54+
client/yarn-error.log
55+
client/testem.log
56+
client/typings
57+
58+
# System Files
59+
.DS_Store
60+
Thumbs.db
61+
62+
#License files
63+
*.lic

Demos/Dropwizard/.travis.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
dist: trusty
2+
language: java
3+
jdk:
4+
- oraclejdk8
5+
- oraclejdk9
6+
- openjdk8
7+
#- oraclejdk11
8+
#- openjdk10
9+
#- openjdk11
10+
services:
11+
- docker
12+
jobs:
13+
include:
14+
- stage: Coverage
15+
jdk: oraclejdk8
16+
script:
17+
- curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
18+
- chmod +x ./cc-test-reporter
19+
- ./cc-test-reporter before-build
20+
- mvn clean package
21+
- JACOCO_SOURCE_PATH=src/main/java ./cc-test-reporter format-coverage target/site/jacoco/jacoco.xml --input-type jacoco
22+
- ./cc-test-reporter upload-coverage
23+
- stage: Tag Release
24+
if: type = push AND branch = master AND commit_message !~ /^Travis bot released/
25+
install: skip
26+
script: git checkout master && git reset --hard $sha1 && git config --global push.followTags true && git config --global user.email "travis@travis-ci.org" && git config --global user.name "Travis CI" && export current_version=$(mvn -q -Dexec.executable="echo" -Dexec.args='${project.version}' --non-recursive exec:exec) && echo "current version ${current_version}" && export minor=$(echo $current_version | sed "s/^[0-9]\{1,\}\.[0-9]\{1,\}\.\([0-9]\{1,\}\)/\1/") && export major=$(echo $current_version | sed "s/^\([0-9]\{1,\}\.[0-9]\{1,\}\)\.[0-9]\{1,\}/\1/") && export next_version=$major.$((minor+1)) && echo "next version ${next_version}" && sed -i.bak "s/$current_version/$next_version/g" README.md && rm README.md.bak && sed -i.bak "s/^ <version>$current_version<\\/version>/ <version>$next_version<\\/version>/g" pom.xml && rm pom.xml.bak && git status && git commit -am "Travis bot released $next_version" && git tag -a $next_version -m "Automated release" && git remote add target https://${GH_TOKEN}@github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard.git > /dev/null 2>&1 && git remote -v && git push --set-upstream target master
27+
- stage: Release
28+
if: type = push AND branch = master AND commit_message =~ /^Travis bot released/
29+
install: skip
30+
jdk: oraclejdk8
31+
script: mvn -B clean package && mkdir -p target/release/DocumentSamples && mkdir -p target/release/Licenses && cp target/comparison-*.jar target/release && cp configuration.yml target/release && cd target && tar -zcvf release.tar.gz release && cd ..
32+
deploy:
33+
provider: releases
34+
overwrite: true
35+
skip_cleanup: true
36+
api_key: $GH_TOKEN
37+
file: target/release.tar.gz
38+
on:
39+
repo: groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard
40+
branch: master

Demos/Dropwizard/Dockerfile

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
FROM openjdk:8-jre-alpine
2+
RUN mkdir -p /home/groupdocs/app && apk add fontconfig && apk add msttcorefonts-installer && update-ms-fonts && fc-cache -f
3+
WORKDIR /home/groupdocs/app
4+
COPY target/release/DocumentSamples /home/groupdocs/app
5+
COPY target/release/Licenses /home/groupdocs/app
6+
COPY target/release/comparison-*.jar /home/groupdocs/app/app.jar
7+
8+
EXPOSE 8080
9+
10+
ENTRYPOINT java -jar /home/groupdocs/app/app.jar configuration.yml

Demos/Dropwizard/DocumentSamples/.gitkeep

Whitespace-only changes.

Demos/Dropwizard/LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2018 GroupDocs.Comparison Product Family
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

Demos/Dropwizard/Licenses/.gitkeep

Whitespace-only changes.

Demos/Dropwizard/README.md

Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
![GroupDocs.Comparison](https://raw.githubusercontent.com/groupdocs-comparison/groupdocs-comparison.github.io/master/resources/image/banner.png "GroupDocs.Comparison")
2+
# GroupDocs.Comparison for Java Dropwizard Example
3+
New GroupDocs.Comparison for Java Dropwizard UI Example
4+
###### version 1.8.17
5+
6+
[![Build Status](https://travis-ci.org/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard.svg?branch=master)](https://travis-ci.org/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard)
7+
[![Maintainability](https://api.codeclimate.com/v1/badges/bd15712ebdd04405b1ea/maintainability)](https://codeclimate.com/github/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/maintainability)
8+
[![GitHub license](https://img.shields.io/github/license/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard.svg)](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/blob/master/LICENSE)
9+
10+
## System Requirements
11+
- Java 8 (JDK 1.8)
12+
- Maven 3
13+
14+
15+
## Compare documents with Java API
16+
17+
**GroupDocs.Comparison for Java** is a library that allows you to **compare PDF, DOCX, PPT, XLS,** and over 90 other document formats. With GroupDocs.Comparison for Java you will be able to compare two or more files, perform style and text comparison and generate a detailed report with changes.
18+
19+
This application allows you to compare multiple documents and can be used as a standalone application or integrated as part of your project.
20+
21+
**Note:** without a license application will run in trial mode, purchase [GroupDocs.Comparison for Java license](https://purchase.groupdocs.com/order-online-step-1-of-8.aspx) or request [GroupDocs.Comparison for Java temporary license](https://purchase.groupdocs.com/temporary-license).
22+
23+
24+
## Demo Video
25+
26+
<p align="center">
27+
<a title="Document comparison for JAVA " href="https://www.youtube.com/watch?v=82RuvtV2qpw">
28+
<img src="https://raw.githubusercontent.com/groupdocs-comparison/groupdocs-comparison.github.io/master/resources/image/comparison.gif" width="100%" style="width:100%;">
29+
</a>
30+
</p>
31+
32+
33+
## Features
34+
#### GroupDocs.Comparison
35+
- Clean, modern and intuitive design
36+
- Easily switchable colour theme (create your own colour theme in 5 minutes)
37+
- Responsive design
38+
- Mobile support (open application on any mobile device)
39+
- HTML and image modes
40+
- Fully customizable navigation panel
41+
- Compare documents
42+
- Multi-compare several documents
43+
- Compare password protected documents
44+
- Upload documents
45+
- Display clearly visible differences
46+
- Download comparison results
47+
- Print comparison results
48+
- Smooth document scrolling
49+
- Preload pages for faster document rendering
50+
- Multi-language support for displaying errors
51+
- Cross-browser support (Safari, Chrome, Opera, Firefox)
52+
- Cross-platform support (Windows, Linux, MacOS)
53+
54+
55+
## How to run
56+
57+
You can run this sample by one of following methods
58+
59+
#### Build from source
60+
61+
Download [source code](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/archive/master.zip) from github or clone this repository.
62+
63+
```bash
64+
git clone https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard
65+
cd GroupDocs.Comparison-for-Java-Dropwizard
66+
mvn clean compile exec:java
67+
## Open http://localhost:8080/comparison/ in your favorite browser.
68+
```
69+
70+
#### Binary release (with all dependencies)
71+
72+
Download [latest release](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/releases/latest) from [releases page](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/releases).
73+
74+
**Note**: This method is **recommended** for running this sample behind firewall.
75+
76+
```bash
77+
curl -J -L -o release.tar.gz https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Dropwizard/releases/download/1.8.17/release.tar.gz
78+
tar -xvzf release.tar.gz
79+
cd release
80+
java -jar comparison-1.8.6.jar configuration.yaml
81+
## Open http://localhost:8080/comparison/ in your favorite browser.
82+
```
83+
84+
#### Docker image
85+
Use [docker](https://hub.docker.com/u/groupdocs) image.
86+
87+
```bash
88+
mkdir DocumentSamples
89+
mkdir Licenses
90+
docker run -p 8080:8080 --env application.hostAddress=localhost -v `pwd`/DocumentSamples:/home/groupdocs/app/DocumentSamples -v `pwd`/Licenses:/home/groupdocs/app/Licenses groupdocs/comparison
91+
## Open http://localhost:8080/comparison/ in your favorite browser.
92+
```
93+
94+
## Configuration
95+
For all methods above you can adjust settings in `configuration.yml`. By default in this sample will lookup for license file in `./Licenses` folder, so you can simply put your license file in that folder or specify relative/absolute path by setting `licensePath` value in `configuration.yml`.
96+
97+
### Comparison configuration options
98+
99+
| Option | Type | Default value | Description |
100+
| ---------------------------------- | ------- |:-----------------:|:-------------------------------------------------------------------------------------------------------------------------------------------- |
101+
| **`filesDirectory`** | String | `DocumentSamples` | Files directory path. Indicates where uploaded and predefined files are stored. It can be absolute or relative path |
102+
| **`fontsDirectory`** | String | | Path to custom fonts directory. |
103+
| **`defaultDocument`** | String | | Absolute path to default document that will be loaded automaticaly. |
104+
| **`preloadPageCount`** | Integer | `0` | Indicate how many pages from a document should be loaded, remaining pages will be loaded on page scrolling.Set `0` to load all pages at once |
105+
| **`multiComparing`** | String | `true` | Enable/disable multi comparing feature |
106+
107+
## License
108+
The MIT License (MIT).
109+
110+
Please have a look at the LICENSE.md for more details
111+
112+
## GroupDocs Comparison on other platforms & frameworks
113+
114+
- [Comapre documents](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-Java-Spring) with JAVA Spring
115+
- [Comapre documents](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-.NET-MVC) with .NET MVC
116+
- [Comapre documents](https://github.com/groupdocs-comparison/GroupDocs.Comparison-for-.NET-WebForms) with .NET WebForms
117+
118+
[Home](https://www.groupdocs.com/) | [Product Page](https://products.groupdocs.com/comparison/java) | [Documentation](https://docs.groupdocs.com/comparison/java/) | [Demos](https://products.groupdocs.app/comparison/family) | [API Reference](https://apireference.groupdocs.com/java/comparison) | [Examples](https://github.com/groupdocs-comparison/GroupDocs.comparison-for-Java/tree/master/Examples) | [Blog](https://blog.groupdocs.com/category/comparison/) | [Free Support](https://forum.groupdocs.com/c/comparison) | [Temporary License](https://purchase.groupdocs.com/temporary-license)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.md]
12+
max_line_length = off
13+
trim_trailing_whitespace = false
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Add files here to ignore them from prettier formatting
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"singleQuote": true
3+
}

0 commit comments

Comments
 (0)