Skip to content

Latest commit

 

History

History
42 lines (29 loc) · 1.48 KB

Development.md

File metadata and controls

42 lines (29 loc) · 1.48 KB

DSOMM

Development server

  • Clone the repo
git clone https://github.com/devsecopsmaturitymodel/DevSecOps-MaturityModel.git
  • Change directory to DSOMM
cd DevSecOps-MaturityModel
  • Install Dependencies
npm install
  • Downloads the generated.yaml and put it in the required folder
curl https://raw.githubusercontent.com/devsecopsmaturitymodel/DevSecOps-MaturityModel-data/main/src/assets/YAML/generated/generated.yaml -o src/assets/YAML/generated/generated.yaml
  • Run ng serve for a dev server. Navigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.

Code scaffolding

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.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory.

Running unit tests

Run ng test to execute the unit tests via Karma.

Coding Style Conventions

  • We follow the coding style defined by ESLint.
  • We also use Prettier as our opinionated code formatter.
  • To validate the schemas of the DSOMM yaml files in the IDE, it is recommended to use the VS Code extension redhat.vscode-yaml. The schemas are stored in /src/assets/YAML/schemas