Skip to content

Introduction

The LEAF Portal is a web-based management interface for the MAPLE backend. It provides a central place to manage organisations, departments, users, access grants, sensor data, alarms, and API tokens.

The portal runs on port 8081 and is included in the MAPLE stack as the leaf-portal service.

  • Dashboard — live overview of organisations, departments, users, access grants, and recent sensor activity
  • Admin — manage organisations, departments, users, and data access grants
  • Data explorer — query and inspect sensor data interactively
  • Plots — time-series visualisation of sensor metrics
  • Alarms — threshold and silence (no-data) alert rules with email notifications
  • API tokens — generate tokens for programmatic REST API access

On first deployment the portal has no database connection or admin account. Navigate to the portal URL and you will be redirected to the /setup page automatically.

Setup page

Enter the TimescaleDB connection details:

FieldValue
Hosttimescaledb (Docker) or IP
Port5432
Usertsdbadmin or postgres
PasswordFrom your .env file
Databaseleaf

Click Connect & apply schema. The portal will run deploy.sql and create all required tables, roles, and functions.

After the database is connected, fill in the superadmin name, email, and password and click Create account. This account has full access to all administration pages.

Only one superadmin can be created through the setup page. Additional admins can be promoted in the Users admin page afterwards.

The portal is available at:

  • Docker (MAPLE stack): http://your-hostname:8081
  • Direct: http://localhost:8081

Log in with your email and password. After login you are taken to the dashboard.

The sidebar provides access to all sections:

  • Overview (/dashboard) — system summary and recent sensor data
  • Admin — organisation and user management (superadmin only)
  • Data — explorer and plots
  • Alarms (/alarms) — alarm rules
  • API Tokens (/tokens) — personal API tokens

Main interface of the LEAF Portal