Skip to content

VRK-YTI/yti-datamodel-ui

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yti-datamodel-ui

User interface for datamodel editor

This project was generated with Angular CLI version 6.1.4.

Prepare tools

npm install -g yarn

Install dependencies

yarn install

Development server

Run npm start for a dev server. Navigate to http://localhost:9001/. The app will automatically reload if you change any of the source files.

Installing new npm dependencies

yarn add foo-bar-x

Loading example data

To load example data to a local api/fuseki installation, run

npm run example-data

To load example data to a custom host and/or port

npm run example-data -- --host 127.0.0.1 --port 8084

Updating translation file

Add localization keys to translation templates

Update pot file: npm run create-translations

Add new keys and translations by using poedit "Update from pot file".

Build

Run npm run build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run npm run test to execute the unit tests via Karma.

Running end-to-end tests

Run npm run e2e to execute the end-to-end tests via Protractor.