Typescript Client code location ./client
Install yarn
cd ./client && yarn
cd ./client && yarn start
Java API code location: ./app
Install Gradle
gradle bootRun --args="--spring.profiles.active=development"
Interact with the REST API (java app must be running)
Authenticate by runnng the client app, logging in, and getting a token. Copy the token from the client app and paste into the Swagger UI in the top right corner.
Interact with the database (java app must be running)
Database is stored as ./app/database/developmentDb.mv.db
run tests
gradle test
Output is minimal if tests succeed. Verbose if they don't. A pretty HTML test report is generated at ./build/reports/index.html
. Open in your browser after running test suite.
Test framework is JUnit 5 (Jupiter)
Add test files in ./app/src/test/java/chess/<path_to_class>/<Class>Test.java
; mirror directory structure of ./app/src/main/java/chess/<path_to_class><Class>.java