Skip to content

Latest commit

 

History

History
66 lines (45 loc) · 1.96 KB

README.md

File metadata and controls

66 lines (45 loc) · 1.96 KB

Vouched Java Example

This example repo consists of two parts

  1. Tests to highlight usage of REST API
  2. Development Server to highlight JS Plugin

REST API

1. Install dependencies

# install mvn if not present on your machine
# https://www.baeldung.com/install-maven-on-windows-linux-mac#:~:text=We%20run%20command%20sudo%20apt,install%20the%20latest%20Apache%20Maven.&text=This%20will%20take%20a%20few,version%20to%20verify%20our%20installation.
mvn clean install

2. Add your Private Key

  • If necessary, create a Private Key
  • Open src/main/resources/config.properties
  • Replace <API_KEY> with your Private Key

3. Run the tests

# run all tests
mvn test

# run a specific test
mvn -Dtest=AppTest#UnauthorizedInvites test
#AppTest is the name of the class
#UnauthorizedInvites is the name of the test method to execute

4. View each endpoint and learn more

JSPlugin

1. Install dependencies

mvn clean install

2. Add your Public Key

  • If necessary, create a Public Key
  • Open src/main/resources/static/configureVouched.js
  • Replace <PUBLIC_KEY> with your Public Key

3. Start Development Server

 mvn spring-boot:run

In a browser, head to http://localhost:8085 to see the Vouched JS Plugin in action.

4. Modify configuration for the Plugin

Feel free to modify any configurations in static/configureVouched.js. Here is the full list of configuration options