forked from BLC/AyposWeb
78 lines
1.4 KiB
Markdown
78 lines
1.4 KiB
Markdown
# AyposWeb
|
|
|
|
AyposWeb is a web-based monitoring and management system for virtual machines and compute resources.
|
|
|
|
## Prerequisites
|
|
|
|
Before running this project, make sure you have the following installed:
|
|
- Node.js (version 18 or higher)
|
|
- npm (Node Package Manager)
|
|
|
|
## Installation
|
|
|
|
1. Clone the repository:
|
|
```bash
|
|
git clone <repository-url>
|
|
cd AyposWeb
|
|
```
|
|
|
|
2. Install dependencies:
|
|
```bash
|
|
npm install
|
|
```
|
|
|
|
## Development
|
|
|
|
To run the project in development mode:
|
|
|
|
```bash
|
|
npm run dev
|
|
```
|
|
|
|
This will start the development server at `http://localhost:5173` (or another available port if 5173 is in use).
|
|
|
|
## Building for Production
|
|
|
|
To create a production build:
|
|
|
|
```bash
|
|
npm run build
|
|
```
|
|
|
|
The build output will be in the `dist` directory.
|
|
|
|
## Running Production Build
|
|
|
|
To preview the production build:
|
|
|
|
```bash
|
|
npm run preview
|
|
```
|
|
|
|
## Features
|
|
|
|
- Virtual Machine Monitoring
|
|
- Stress Testing
|
|
- Migration Management
|
|
- Temperature Monitoring
|
|
- Resource Distribution Visualization
|
|
- System Maintenance
|
|
|
|
## Environment Configuration
|
|
|
|
The application uses environment variables for configuration. To set up your environment:
|
|
|
|
1. Copy `.env.example` to `.env`:
|
|
```bash
|
|
cp .env.example .env
|
|
```
|
|
|
|
2. Edit `.env` and set your environment variables:
|
|
```env
|
|
VITE_API_URL=http://your-api-server:port
|
|
```
|
|
|
|
## Browser Support
|
|
|
|
The application is optimized for modern browsers that support ES6+ features.
|