π Streamlit Deployment:
https://flight-analytics-system-1135.streamlit.app/
The Flight Analytics System is a cloud-based SQL analytics dashboard built using:
- Streamlit
- PostgreSQL (Supabase)
- Plotly
- Python
The application enables users to explore flight routes, traffic patterns, and airline distributions using real-time PostgreSQL queries through an interactive analytics dashboard.
This project demonstrates an end-to-end analytics workflow:
CSV Dataset
β
Supabase PostgreSQL
β
Python Query Layer
β
Analytics Processing
β
Interactive Streamlit Dashboard
The project was designed to demonstrate:
- SQL query engineering
- Cloud database integration
- Backend abstraction layer design
- Real-world analytics workflows
- Interactive dashboard development
- Production-style deployment architecture
Streamlit UI (app.py)
β
Database Query Layer (database.py)
β
Supabase PostgreSQL Database
Responsible for:
- User interaction
- Dashboard rendering
- Route selection workflow
- Plotly visualizations
- Analytics presentation
Implemented inside:
database.py
Responsibilities:
- PostgreSQL connection management
- Query abstraction
- Parameterized SQL execution
- Analytics query handling
Hosted on:
- Supabase PostgreSQL
Stores:
- flight routes
- airline data
- airport traffic information
- daily flight statistics
Users can:
- Select source city
- Select destination city
- Search available flight routes
The destination dropdown dynamically updates based on the selected source city.
This prevents invalid route combinations and improves query efficiency.
Interactive Plotly pie chart showing:
- airline frequency
- market distribution
- traffic contribution
Visualizes airport traffic using combined:
- source traffic
- destination traffic
Helps identify:
- high-traffic hubs
- major airport activity patterns
Line chart visualization showing:
- daily flight frequency
- temporal traffic patterns
- trend distribution
| Layer | Technology |
|---|---|
| UI | Streamlit |
| Database | Supabase PostgreSQL |
| DB Connector | psycopg2 |
| Data Processing | Pandas |
| Visualization | Plotly |
| Deployment | Streamlit Cloud |
flight-analytics-system/
β
βββ app.py
βββ database.py
βββ flights.csv
βββ requirements.txt
βββ .gitignore
βββ LICENSE
βββ README.md
The PostgreSQL table:
flights
contains:
Airline
Date_of_Journey
Source
Destination
Route
Dep_Time
Duration
Total_Stops
Price
The application supports PostgreSQL quoted column handling for compatibility with CSV-imported schemas.
Database credentials are securely managed using:
- Streamlit Secrets
- SSL-enabled PostgreSQL connections
Example configuration:
DB_HOST = "your-supabase-db-host"
DB_USER = "postgres"
DB_PASSWORD = "your-password"
DB_NAME = "postgres"
DB_PORT = "6543"git clone https://github.com/your-username/flight-analytics-system.git
cd flight-analytics-systempython -m venv .venv
.venv\Scripts\activatepython3 -m venv .venv
source .venv/bin/activatepip install -r requirements.txtCreate:
.streamlit/secrets.toml
Add:
DB_HOST = "your-supabase-db-host"
DB_USER = "postgres"
DB_PASSWORD = "your-password"
DB_NAME = "postgres"
DB_PORT = "6543"streamlit run app.py- Cloud PostgreSQL integration
- Supabase deployment architecture
- Secure secrets-based configuration
- Parameterized SQL query execution
- PostgreSQL transaction handling
- SSL-enabled database connectivity
- Backend query abstraction layer
- Interactive Plotly analytics dashboards
- Dynamic route-aware filtering system
- Production-style deployment debugging
- Source-aware route filtering
- Dynamic destination selection
- Parameterized SQL querying
- Airline distribution visualization
- Frequency-based aggregation queries
- Combined source/destination analytics
- High-traffic airport discovery
- Daily flight aggregation
- Time-series visualization
The application is deployed using:
- Streamlit Cloud
- Supabase PostgreSQL
Deployment requirements:
- Active Supabase database
- SSL-enabled PostgreSQL connections
- Streamlit secrets configuration
- Populated
flightstable
Implemented security measures:
- Environment-based secrets management
- SSL-required PostgreSQL connections
- Parameterized SQL queries
- No hardcoded credentials
- Cloud database isolation
Current constraints include:
- No query caching
- No authentication system
- No API serving layer
- No pagination for large datasets
- No asynchronous query handling
- Tight coupling between UI and query layer
Planned upgrades include:
- FastAPI backend layer
- Query caching with
st.cache_data - Docker containerization
- AWS RDS migration
- Analytics REST APIs
- Authentication system
- Query optimization & indexing
- CI/CD deployment pipeline
- Service-oriented backend architecture
This project demonstrates practical understanding of:
- Cloud SQL database integration
- Backend query abstraction
- PostgreSQL analytics workflows
- Interactive dashboard deployment
- Production debugging workflows
- Secure credential management
- Data analytics system design
- End-to-end deployment architecture
This project demonstrates significantly more engineering depth than a local notebook analytics workflow because it includes:
- Cloud database deployment
- Real backend integration
- SQL analytics architecture
- Streamlit production deployment
- Configuration management
- Secure secrets handling
- Database transaction debugging
Add application screenshots here for stronger recruiter impact:


- ML Systems
- MLOps
- AI Infrastructure
- Backend Analytics Systems
- Applied Machine Learning
This repository demonstrates:
- Real cloud database integration
- SQL query engineering
- Backend abstraction architecture
- Interactive analytics deployment
- Production debugging capability
- Full-stack analytics workflows
- Secure deployment configuration
This project is intended for educational, research, and portfolio purposes.
If you found this project useful, consider giving it a β on GitHub.