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
.example
file to.env.local
:cp monitoring-ui/.example monitoring-ui/.env.local
- Edit
monitoring-ui/.env.local
as needed:- Set
NEXT_PUBLIC_BACKEND=true
to use the backend API. - Set
NEXT_PUBLIC_BACKEND=false
to use local mock data from the_data
folder.
- Set
- Copy the
-
Run the development server:
npm run dev
The app will be available at http://localhost:3000.
- Backend:
- Set
NEXT_PUBLIC_BACKEND=true
in your.env.local
file. - The app will fetch device data from the backend API.
- Set
- Local Data:
- Set
NEXT_PUBLIC_BACKEND=false
in your.env.local
file. - 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.