Skip to content

Latest commit

 

History

453 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CyberRangeᶜᶻ Platform

Nx monorepo containing the CyberRangeCZ Platform frontend.

Prerequisites

  • You need to have access to Sentinel package repository to pull the Sentinel dependencies. Then, you need to set up the @sentinel scope to point to that registry. You can do this by adding following lines to your .npmrc file:

    @sentinel:registry=https://gitlab.ics.muni.cz/api/v4/projects/2396/packages/npm/
    //gitlab.ics.muni.cz/api/v4/projects/2396/packages/npm/:_authToken=<YOUR_AUTH_TOKEN>
    

    where <YOUR_AUTH_TOKEN> is a Gitlab access token with read_registry scope and api score of a user with access to Sentinel package repository

  • To run the application, Node version >=20.19.0 is required.

Running the app locally against the CyberRangeᶜᶻ Platform backend

  1. Configure and run the Helm deployment. Make sure to use development: true for Keycloak configuration in vagrant-values.yaml. This will add https://localhost:4200 to the OIDC redirect URIs.
  2. Run npm install
  3. Run nx serve cyberrangecz-platform --ssl
  4. Open https://localhost:4200 in your browser. The app will automatically reload if you change any of the source files. App will be using self-signed certificate, so you need to accept it in your browser.

Deployment

To build the Docker image without uploading, run docker build .

To build and push Docker image to an existing Helm deployment, you can use the deployment push script:

./push.sh -u <SSH user> -h <host address> -k <path to SSH identity file> Dockerfile 

This script builds the Docker image, uploads it to the host over ssh and modifies the Kubernetes deployment to replace the current running version of the image.

Applications

Libraries

Agenda

Agendas utilise other libraries to provide the individual pages of the application relevant to their scope.

API

Api libraries provide abstraction layer over REST API calls via simple function calls.

Utils

Small utility functions, classes and services.

  • components - Shared utility UI components
  • routing - Common routing utilities
  • misc - Various small pieces of code

Components

Collection of self-contained reusable components.

Model

Key type definitions for objects received from the API.

About

CyberRangeCZ Platform frontend — an monorepo for the Angular-based web application, shared UI components, API clients, models, and training and sandbox management.

Topics

Resources

Contributing

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages