This example repo consists of two parts
# 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
- If necessary, create a Private Key
- Open
src/main/resources/config.properties
- Replace
<API_KEY>
with your Private Key
# 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
mvn clean install
- If necessary, create a Public Key
- Open
src/main/resources/static/configureVouched.js
- Replace
<PUBLIC_KEY>
with your Public Key
mvn spring-boot:run
In a browser, head to http://localhost:8085 to see the Vouched JS Plugin in action.
Feel free to modify any configurations in static/configureVouched.js
. Here is the full list of configuration options