Skip to content

clarin-eric/fcs-endpoint-tester

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FCS Endpoint Tester

The SRU/CQL/FCS Conformance Tester.

This webapp allows to test compliance of an endpoint with the CLARIN FCS specification. See details at CLARIN FCS: Technical Details.

Requirements

  • Java 8 (required to build Vaadin webapp)

Building

Build and install SRU/FCS dependencies

git clone [email protected]:clarin-eric/fcs-sru-client.git
cd fcs-sru-client
mvn install
git clone [email protected]:clarin-eric/fcs-simple-client.git
cd fcs-simple-client
mvn install

Build endpoint tester

  • Requires Java 8
mvn clean package

Running

Jetty

JETTY_VERSION="9.4.51.v20230217"

# download latest jetty release
wget https://repo1.maven.org/maven2/org/eclipse/jetty/jetty-distribution/${JETTY_VERSION}/jetty-distribution-${JETTY_VERSION}.zip
unzip jetty-distribution-${JETTY_VERSION}.zip
rm jetty-distribution-${JETTY_VERSION}.zip

cd jetty-distribution-${JETTY_VERSION}/

# (optional)
java -jar start.jar --add-to-start=http,deploy

# link / add webapp war file
cd webapps/
cp ../../target/FCSEndpointTester-X.Y.Z-SNAPSHOT.war ROOT.war
cd ..

# run
java -jar start.jar

Visit http://localhost:8080/.

Docker

Build the docker image:

# add --progress=plain to see build output
docker build -t fcs-endpoint-tester .

Run container and map local port 8080 to container port 8080. The application will be at http://localhost:8080/.

docker run --rm -it -p 8080:8080 fcs-endpoint-tester

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors