This component serves the UI for the developer portal including documentation and certificate generation. The compiled result gets embedded in the service JAR.
For a general description of the PSD2 Accelerator see README.md
Run npm run start
for a dev server. Navigate to (http://localhost:4200/). The app will automatically reload if you change any of the source files.
Run ng generate component component-name
to generate a new component. You can also use ng generate directive|pipe|service|class|guard|interface|enum|module
.
Run ng build
to build the project. The build artifacts will be stored in the dist/
directory. Use the --prod
flag for a production build.
Run ng test
to execute the unit tests via Karma.
Run npm run test-headless
to execute the unit tests with a headless browser.
Run npm run test-single-headless
to execute just one run of unit tests with a headless browser and afterwards do not watch for changes.
Run ng e2e
to execute the end-to-end tests via Protractor.
Run npm run e2e-running
to execute the e2e tests with an already running UI application.
Run npm run tslint
to just check the project for code style errors.
Run npm run tslint-fix
to automatically fix TSLint errors. Some errors could only be fixed manually.
You can prettify files with the prettier
plugin for IntelliJ or as cli with the following steps:
- Install global prettier package:
npm install -g prettier
- Prettify single file
prettier --write
- (Prettify all files in the project with this command:)
$ find . -name '*.js' -or -name '*.ts' -or -name '*.html' -or -name '*.css' -or -name '*.scss'| grep -v build | grep -v "assets/lib" | grep -v node_modules | xargs prettier --write
Before pushing changes to origin, all changed files will be checked automatically by TSLint and Prettier. If there are some errors in the code styling, the push will be canceled.
To get more help on the Angular CLI use ng help
or go check out the Angular CLI README.