The Projektor UI is a React app written with Typescript/Javascript, built by Parcel with Yarn
To start the dev server:
- Install Yarn if you don't already have it
- Download and install the project's dependencies with
yarn install
- Start the dev server with
yarn start
This will start the server on http://localhost:1234
By default, when running locally the API backend points to http://localhost:8080
which is the default port of the server. Start up the server separately using Gradle.
The UI is tested by a combination of React Testing Library unit tests and Cypress browser tests.
To run the unit tests execute yarn test
And to run the Cypress tests either cy:run
to run them headless or cy:open
to start the Cypress server and run the tests in Chrome.
The app uses prettier for easy auto formatting.
To run the formatter execute yarn format