Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 1.27 KB

README.md

File metadata and controls

39 lines (28 loc) · 1.27 KB

PICT web service frontend

Simple one-page web application written in Typescript and using Vite for tooling.

Preconditions

  • have a standard browser, like Chrome, Firefox
  • Node.js LTS
  • git

Installation

  • after cloning switch to the ./frontend folder and run npm install
  • create .env file with following key/value pairs:
    • VITE_SERVER_BASE_URL=http://localhost:4000

Running the application on localhost

  • open separate shell windows, switch to the ./frontend folder and run npm run dev
  • open the provided link in the shell in the browser
  • profit

Usage

  • provide model specification for generating test cases, as specified in the PICT
  • example model is provided in ./tests/test-data folder
  • select output type of downloaded file
  • after clicking the button, browser should prompt you for download of the file, or download automatically in you default Downloads folder

Errors

  • server errors do not contain any inner information for the security reasons
  • frontend will display generic message below the form
  • more detailed message can be found in the response body of the ./generate request call in devtools