A dashboard for network managers to register/login, create networks, and assign devices, using a cloud API or local mock data.
-
Install dependencies:
npm install
-
Configure environment variables:
- Copy the
.examplefile to.env.local:cp monitoring-ui/.example monitoring-ui/.env.local
- Edit
monitoring-ui/.env.localas needed:- Set
NEXT_PUBLIC_BACKEND=trueto use the backend API. - Set
NEXT_PUBLIC_BACKEND=falseto use local mock data from the_datafolder.
- Set
- Copy the
-
Run the development server:
npm run dev
The app will be available at http://localhost:3000.
- Backend:
- Set
NEXT_PUBLIC_BACKEND=truein your.env.localfile. - The app will fetch device data from the backend API.
- Set
- Local Data:
- Set
NEXT_PUBLIC_BACKEND=falsein your.env.localfile. - The app will use mock device data from
monitoring-ui/_data/*.json.
- Set
- You may need to restart the dev server after changing environment variables.