How huny4daniel/pedal-point works
Pedal Point is a public-bike rental service that turns ride distance into carbon-savings mileage, usable as a discount on a later payment. The user workflow is login, find a station and rent a bike, return it with a distance entry, then settle the fare and earn mileage; the mypage shows history and accumulated savings. Administrators manage stations, bikes and members, and search operational records and statistics. The Android app is a WebView client for the Streamlit server. The graph follows documented behavior and sampled calls; unsampled screens are included as documented capabilities, with edges limited to supported relationships.
Main entry points: main.py Streamlit app · user_ops.py Rider operations · admin_ops.py Admin operations · login.py Login
Components 17
Clients and routing
- Android WebView
android/app/src/main/java/kr/pedalpoint/app/MainActivity.kt - Streamlit app
app/main.py - Shared UI
app/ui.py
Rider services
- Login
app/views/login.py - Station search and rental
app/views/user_rent.py - Return and payment
app/views/user_return.py - Rider history and stats
app/views/user_mypage.py - Rider operations
app/user_ops.py
Administration
- Station and bike management
app/views/admin_assets.py - Record search
app/views/admin_history.py - Member management and stats
app/views/admin_members.py - Admin operations
app/admin_ops.py
Rules and persistence
- Fare and mileage rules
app/rules.py - Database access
app/db.py - Padal MySQL database
db/schema.sql
Other components
- Riders
- Administrators
Connections 26
- Riders → Android WebView: use app
README.md - Riders → Streamlit app: use web
README.md - Administrators → Streamlit app: use web
README.md - Android WebView → Streamlit app: loads server UI
README.md - Streamlit app → Shared UI: detects mode and styles
app/main.py - Streamlit app → Login: routes to
app/main.py - Streamlit app → Station search and rental: routes to
app/main.py - Streamlit app → Return and payment: routes to
app/main.py - Streamlit app → Rider history and stats: routes to
app/main.py - Streamlit app → Station and bike management: routes to
app/main.py - Streamlit app → Record search: routes to
app/main.py - Streamlit app → Member management and stats: routes to
app/main.py - Login → Rider operations: loads rider accounts
app/views/login.py - Login → Admin operations: loads staff accounts
app/views/login.py - Station search and rental → Rider operations: searches and rents
app/views/user_rent.py - Return and payment → Rider operations: returns and pays
app/views/user_return.py - Return and payment → Fare and mileage rules: previews fare and mileage
app/views/user_return.py - Rider history and stats → Rider operations: loads histories and totals
app/views/user_mypage.py - Rider history and stats → Fare and mileage rules: formats rule values
app/views/user_mypage.py - Station and bike management → Admin operations: manages assets
app/views/admin_assets.py - Record search → Admin operations: searches records
app/views/admin_history.py - Member management and stats → Admin operations: manages members
app/views/admin_members.py - Rider operations → Fare and mileage rules: calculates charges and points
app/user_ops.py - Rider operations → Database access: queries and transacts
app/user_ops.py - Admin operations → Database access: queries and transacts
app/admin_ops.py - Database access → Padal MySQL database: connects and persists
app/db.py