Skip to content

About

No description or website provided.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Smartwater BGI-Planer Logo


All Contributors

Smartwater BGI-Planer

The BGI Planner is a map-based web application designed to support staff in Berlin’s planning departments at both Senate and district levels in integrating blue-green infrastructure measures into new and existing planning processes. The aim is to increase Berlin’s resilience to the impacts of climate change, such as heavy rainfall and heat. The tool is intended to facilitate strategic decision-making in early planning phases and to provide guidance for the implementation of concrete measures in later phases.

This Next.js application is being developed as part of the Smart Water project and thus is part of the state of Berlin's digital strategy.

Tech Stack

  • Framework: Next.js with App Router
  • Language: TypeScript
  • Styling: Tailwind CSS v4 with custom design system
  • Mapping: OpenLayers (ol) with MapTiler integration
  • State Management: Zustand
  • Deployment: Docker with GitHub Actions

Prerequisites

  • Node.js >= 24
  • npm or similar package manager
  • Docker (for containerized deployment)

Installation

Local Development Setup

  1. Clone the Repository

    git clone https://github.com/technologiestiftung/smartwater-bgi-planer
    cd smartwater-bgi-planer
  2. Install Dependencies

    npm install
  3. Environment Configuration

    Create a .env.local file with the required environment variables:

    NEXT_PUBLIC_XXXX=XXX

Running the Project

To start a local development server:

npm run dev

The application will be available at http://localhost:3000.

Other Development Commands

npm run build        # Build for production
npm run start        # Start production server
npm run lint         # Run ESLint
npm run format       # Format code with Prettier
npm run format:fix   # Auto-fix formatting issues

Docker Deployment

Building the Docker Image

docker build -t smartwater-bgi-planer .

Running with Docker

docker run -p 3000:3000 \
  -e NEXT_PUBLIC_XXXX=XXXX \
  smartwater-bgi-planer

Architecture

Project Structure

TBD

Key Components

  • Map Component: OpenLayers-based interactive map with custom styling

State Management

The application uses Zustand for state management with separate stores for:

  • App State: General application state and UI preferences

Development

Code Standards

  • TypeScript: Strict mode enabled with comprehensive type checking
  • ESLint: Extended Next.js configuration with custom rules
  • Prettier: Consistent code formatting
  • Husky: Pre-commit hooks for code quality

Adding New Features

  1. Create feature branch from dev
  2. Implement changes with proper TypeScript typing
  3. Add translations for new text content
  4. Test locally and ensure Docker build works
  5. Create pull request to dev branch

Environment Variables

The application supports different environment configurations:

Build-time Variables (must start with NEXT_PUBLIC_):

  • NEXT_PUBLIC_XXXXX

Runtime Variables (server-side only):

  • XXXXXX (if needed for server actions)

Contributing

Before you create a pull request, write an issue so we can discuss your changes.

Contributors

Thanks goes to these wonderful people (emoji key):

Luise Brandenburger
Luise Brandenburger

💻 📖 🚇 👀
Jonathan Haudenschild
Jonathan Haudenschild

💻 📖 🚇 👀
Jakob Sawal
Jakob Sawal

🎨 💻 👀

This project follows the all-contributors specification. Contributions of any kind welcome!

Content Licensing

Texts and content available as CC BY.

Credits

Made by

Supported by

About

No description or website provided.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages