Strix is Språkbanken's tool for document-centric corpus linguistics.
The frontend is an Angular 6 web application which uses strix-backend over HTTP.
Run npm install to install the packages.
Run export NODE_OPTIONS=--openssl-legacy-provider and then run the next command
Run Strix locally using ng serve and check using localhost:4200 or strix.spraakbanken.gu.se:4200
Run `ng build --configuration= where you replace ENV with your environment file.
Run ng test to execute the unit tests via Karma.
Run ng e2e to execute the end-to-end tests via Protractor.
Before running the tests make sure you are serving the app via ng serve.
Or use docker-compose up --build to run the tests.
Some of the end-to-end test specs fail randomly for unknown reasons. They are marked with in-code comments. If they fail, you might want to just try again. Specs that fail most of the time are set to pending (using xit).