Skip to content

Latest commit

 

History

History
116 lines (73 loc) · 2.13 KB

File metadata and controls

116 lines (73 loc) · 2.13 KB

Bandwidth Monitor React UI

This directory contains the React-based user interface for the bwmon project. All instructions below apply only to the UI/frontend part. For backend or server-side setup, see the main project README.

This project was bootstrapped with VITE.

Prerequisites

  • Node.js (version 22+ recommended)
  • npm (comes with Node.js)

Installation

Install dependencies before running or building the UI:

npm install

Usage

Development

Start the Vite development server:

npm start

Then open http://localhost:3000 in your browser.

Production Build

Build the optimized production bundle:

npm run build

The output will be in the build folder. To preview the build locally, you can use a static server such as serve:

npm install -g serve
serve build

Testing & Quality

Run all tests interactively (UI/unit tests)

npm test

Run all tests once

npm run test:once

Run all tests with coverage

npm run test:coverage

Run Playwright end-to-end tests (UI E2E)

npm run test:e2e

Run mutation tests

npm run test:mutation

Format code

npm run pretty

Audit for vulnerabilities

npm run audit

Lint code

npm run lint

Versioning

Update the UI package version and create a git tag:

npm version <version number>

For questions or contributions, please refer to the main project repository or contact the maintainers.