Development Guide
This guide provides instructions for setting up and running the Test Prism project locally for development or contribution purposes.
UI (Angular Dashboard)
Prerequisites
- Node.js (v18 or later)
- npm (v9 or later)
- Angular CLI (
npm install -g @angular/cli)
Installation
Navigate to the
uidirectory:bashcd uiInstall dependencies:
bashnpm install
Running Locally
Start the Angular development server:
npm startNavigate to http://localhost:4200/. The application will automatically reload if you change any of the source files.
Building for Production
To build the project for production:
npm run buildThe build artifacts will be stored in the dist/ directory.
Docker Support
The UI can be containerized using the provided Dockerfile.
Build the Docker image:
bashdocker build -t test-prism-ui .Run the container:
bashdocker run -p 80:80 test-prism-ui
Docs (VitePress)
Prerequisites
- Node.js (v18 or later)
- npm (v9 or later)
Installation
Navigate to the
docsdirectory:bashcd docsInstall dependencies:
bashnpm install
Running Locally
Start the VitePress development server:
npm run docs:devThis will start a local development server and open up a browser window. Most changes are reflected live without having to restart the server.
Building for Production
To build the documentation for production:
npm run docs:buildThe build artifacts will be stored in the .vitepress/dist directory.
CLI (Rust)
Prerequisites
- Rust (latest stable version recommended)
- Cargo (comes with Rust)
Running Locally
Navigate to the
clidirectory:bashcd cliBuild and run the CLI:
bashcargo run -- --help
For detailed usage instructions and command-line arguments, please refer to the CLI Usage Guide.