A modern web interface for the VyOS routing platform, built with React and FastAPI.
- backend/: Python FastAPI backend
- frontend/: React frontend with Material UI
Simply run the start.bat file by double-clicking it or running it from the command prompt:
start.bat
To stop the application, run:
stop.bat
Run the shell script:
./start.sh
This script will:
- Check for required dependencies
- Set up the Python virtual environment
- Install all backend dependencies
- Start the backend server
- Install all frontend dependencies
- Start the frontend development server
On Linux/macOS, a stop.sh script will be automatically created to help you stop the servers.
If you prefer to set up the application manually, follow these steps:
-
Navigate to the backend directory:
cd backend -
Set up a Python virtual environment:
# Windows python -m venv venv venv\Scripts\activate # Linux/macOS python3 -m venv venv source venv/bin/activate -
Install dependencies:
pip install -r requirements.txt -
Run the FastAPI server:
python main.pyThe server will be available at http://localhost:8000
-
Navigate to the frontend directory:
cd frontend -
Install dependencies:
npm install -
Start the development server:
npm run devThe frontend will be available at http://localhost:3000
- Python 3.7 or higher
- Node.js 14.0 or higher
- npm 6.0 or higher