Skip to content

vanhog/pegeldaten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gauge Stations Dashboard (Pegeldaten)

For training use only. Do not use in production. No warranty.

This is a free-style training project created as part of the OpenCampus Web Development Program 2025.

Table of contents

Overview

The challenge

The application should be able to:

  • Fetch station data from the Pegelonline REST API
  • Display the data in an interactive table:
    • Sort ascending/descending by clicking on column headers
    • Scroll through the list of stations
    • Keep the table header sticky while scrolling
  • Open a detail view (drawer) on double-clicking a table row
  • Display:
    • General station information in one drawer
    • Current measurements in a second drawer
  • Reserve a third drawer for future map integration
  • Provide search functionality across:
    • short name
      • long name
      • water short name
      • water long name
      • station number

Screenshot

Links

My process

Built with

  • Semantic HTML5
  • Tailwind CSS
  • CSS custom properties
  • Flexbox & CSS Grid
  • Mobile-first workflow
  • TypeScript

Architecture

  • Frontend-only application (no backend yet)
  • Data fetched directly from external REST API (Pegelonline)
  • State handled in the browser using TypeScript
  • Modular rendering approach (table + drawers)

What I learned

  • Fetching and handling data from a REST API
  • Implementing a sticky table header
  • Dynamically rendering table data with TypeScript
  • Transforming and mapping API data structures
  • Structuring UI components (table, drawers, state handling)
  • Using AI tools to support development (e.g. object mapping)

Continued development

Next steps:

  • Integrate an interactive map to display station locations
  • Improve performance for large datasets
  • Add filtering and advanced search capabilities
  • Enhance accessibility (ARIA roles, keyboard navigation)
  • Introduce a backend (Node.js + PostGIS) for persistence and scaling

Useful resources

Author

About

A frontend-only, no-framework app that reads measurements and station data of the German Wasser- und Schifffahrtsverwaltungs gauge station network using a REST API.

Resources

Stars

Watchers

Forks

Contributors