Fork from https://koodivaramu.eesti.ee/x-tee/x-road-catalogue, with the addition of perliminary Icelandic translations and configuration for the Icelandic X-Road instances. The corresponding X-Road-catalogue-collector is used unmodified.
sudo apt install nodejs npm
sudo -H npm install -g npm@latest
sudo -H npm install -g @angular/cli
git clone <this_repository>
cd <this_repository_name>
npm ci
npm run lint
npm run test-headless
By default http://localhost:9000
is used as a sonarqube server.
If you have a remote sonarqube server, update sonar-project.properties
cunfiguration file and run the test with:
npm run sonar
Alternatively you can provide hostname and access token with command line:
./node_modules/sonar-scanner/bin/sonar-scanner -Dsonar.host.url=<server> -Dsonar.login=<token>
ng update @angular/cli @angular/core
ng serve --host 0.0.0.0
ng build --prod --base-href /catalogue/