to get started with the project, you need to have the following installed on your machine:
- Node.js
- npm
- git Next, you can clone the repository and install the dependencies by running the following commands:
cd dashboard
npm install
to install project dependenciesnpm run dev
using Vite to start the development servernpm run build
to build the project for production
You should have the backend project up and running, please refer to the guide in the backend repository to get started.
set VITE_BACKEND_PORT={port}
before running npm run dev
the default backend port is 9000
set VITE_BACKEND_PORT=8000
name could be the IP address or the cluster name
set VITE_BACKEND_NAME
before running npm run dev
default : localhost
set VITE_BACKEND_NAME= ui-backend
to change the protocol to https
set the following environment variable
set VITE_BACKEND_PROTOCOL= https
default : http
npm run dev -- --port {port}
to run the project on a different port
if the port is not available , it will automatically switch to the next available port.
npm run dev -- --port 3000