Angular-based frontend for the Scopeon CVE Scanner vulnerability management system.
# See detailed instructions in certs/README.md
cd certs/
mkcert localhost 127.0.0.1 ::1
cd ..npm install# Generate TypeScript API client from OpenAPI spec
npx @openapitools/openapi-generator-cli generate \
-i src/api/swagger.json \
-g typescript-angular \
-o src/app/api/generated \
--additional-properties=ngVersion=18,npmName=scopeon-api,fileNaming=kebab-caseng serve --ssl --ssl-cert certs/localhost.pem --ssl-key certs/localhost-key.pemNavigate to https://localhost:4200/ (note HTTPS)
The TypeScript API client is generated from the OpenAPI specification and is not tracked in git.
npx @openapitools/openapi-generator-cli generate \
-i src/api/swagger.json \
-g typescript-angular \
-o src/app/api/generated \
--additional-properties=ngVersion=18,npmName=scopeon-api,fileNaming=kebab-caseNote: Run this command whenever the OpenAPI spec (src/api/swagger.json) is updated.
📖 Certificate Setup Guide - Complete instructions for development and production certificates
📋 Certificate Management - Production deployment strategies
src/
├── app/
│ ├── core/ # Core services (auth, interceptors, guards)
│ ├── features/ # Feature modules (auth, dashboard)
│ ├── shared/ # Shared components and utilities
│ └── environments/ # Environment configurations
├── certs/ # TLS certificates (not tracked in git)
└── docs/ # Documentation
To start a local development server, run:
ng serve --ssl --ssl-cert certs/localhost.pem --ssl-key certs/localhost-key.pemThe application will automatically reload whenever you modify any of the source files.
The application includes a complete authentication system:
- Secure login with session cookies
- CSRF protection
- Route guards
- Automatic logout on session expiry
Default development credentials (if enabled):
- Username:
admin - Password:
SecureAdminPassword123!
Angular CLI includes powerful code scaffolding tools. To generate a new component, run:
ng generate component component-nameFor a complete list of available schematics (such as components, directives, or pipes), run:
ng generate --helpTo build the project run:
ng buildThis will compile your project and store the build artifacts in the dist/ directory. By default, the production build optimizes your application for performance and speed.
To execute unit tests with the Karma test runner, use the following command:
ng testFor end-to-end (e2e) testing, run:
ng e2eAngular CLI does not come with an end-to-end testing framework by default. You can choose one that suits your needs.
For more information on using the Angular CLI, including detailed command references, visit the Angular CLI Overview and Command Reference page.