Skip to main content

portal-backend

Settings management for the NRW.Desk portal

portal-backend is the main backend microservice for NRW.Desk, a collaboration portal developed by Information und Technik Nordrhein-Westfalen (IT.NRW) for the German state of North Rhine-Westphalia. It serves as the persistence and API layer that manages user personalization data for the portal's frontend dashboard. The service provides a RESTful HTTP API (OpenAPI 3.0.3) that enables users to manage their personalized dashboard, including widget layout, visibility, and display order. Upon first authenticated request, each user is automatically provisioned with default settings and a set of pre-configured widgets arranged on a grid layout. Supported widget types include email, videoconference, chat, calendar, documents, files, diagrams, web shortcuts, upcoming conferences, and news. Each widget can be individually positioned (x, y coordinates), sized (width, height), reordered, and toggled visible or hidden. Users can also manage accordion states for the sidebar. Administrators can create, update, and delete system-wide announcements that are displayed to all portal users. These notifications are time-bounded (with a start and end datetime) and come in three types: info, warn, and feat (feature announcements). Notifications are automatically filtered by time validity when returned to end users. Authentication is handled via JWT bearer tokens, with the service extracting user identity and roles from configurable JWT claims. The authorization model ensures users can only access and modify their own data, while admin endpoints require the admin role. The service is built with Go 1.25+, uses GORM as the ORM, and supports both SQLite (default for local development) and PostgreSQL (production). It features structured logging via Zerolog, optional Swagger UI for API documentation, configurable CORS, and automatic database migrations on startup.

Software-Details

Created at

06/10/26

Last updated

12/02/26

Status

beta

Platform
web
Software-Version

0.4.4

License

BSD-3-Clause

Last updated: