Skip to content

SafeFlood/dashboard

Repository files navigation

Dashboard

A simple Python project running inside Docker.

Prerequisites

Available Commands

All commands below assume you’re in the project root (dashboard/).

Using Python Package Manager

Linux with Pip

python -m venv .venv
source .venv/bin/python
pip install -r requirements.txt
reflex run

Windows with Pip

python -m venv .venv
.\.venv\Scripts\activate
pip install -r requirements.txt
reflex run

Linux/Windows with UV

uv sync
uv run reflex run

Build the Docker image

Using Makefile:

make build

Or directly with Docker Compose:

docker-compose build

Run the container

Using Makefile:

make run

Or directly with Docker Compose:

docker-compose up -d --build --force-recreate

This will start the safeflood service and map port 8080 on your machine to port 8080 in the container.

View logs

Using Makefile:

make logs

Or direct:

docker-compose logs -f

Open a shell in the running container

Using Makefile:

make shell

Or direct:

docker-compose exec safeflood /bin/bash

Stop and remove containers

Using Makefile:

make stop

Or direct:

docker-compose down

Quick Test

Once the container is up, you can verify it by running:

docker-compose exec safeflood python hello.py

You should see:

Hello from safeflood!

Run Reflex

reflex run

or

make reflex-run

Debug Mode

reflex run --loglevel debug

or

make reflex-run-debug

About

Flood Prediction Dashboard at South Sulawesi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages