An enterprise-level full-stack application for analyzing and visualizing NYC Taxi Trip data patterns
501
An enterprise-level full-stack application for analyzing and visualizing NYC Taxi Trip data patterns. This Docker container provides a complete, ready-to-run instance of the application with all dependencies, data processing, and database pre-configured.
Pull and run the container:
docker pull masalale/urban-mobility-explorer:latest
docker run -p 5000:5000 masalale/urban-mobility-explorer:latest
Then open your browser to http://localhost:5000
This container includes:
docker run -p 5000:5000 masalale/urban-mobility-explorer:latest
Create a docker-compose.yml file:
version: '3.8'
services:
web:
image: masalale/urban-mobility-explorer:latest
ports:
- "5000:5000"
volumes:
- ./backend/database:/app/backend/database
- ./backend/logs:/app/backend/logs
environment:
- FLASK_ENV=production
restart: unless-stopped
Then run:
docker-compose up
To persist the database and logs across container restarts:
docker run -p 5000:5000 \
-v $(pwd)/database:/app/backend/database \
-v $(pwd)/logs:/app/backend/logs \
masalale/urban-mobility-explorer:latest
The container exposes a RESTful API:
| Endpoint | Method | Description | Example |
|---|---|---|---|
/ | GET | Dashboard interface | - |
/api/trips | GET | Get first 100 trips | - |
/api/trips/<trip_id> | GET | Get specific trip | /api/trips/id2875421 |
/api/trips/by_date | GET | Filter by date | ?date=2016-03-14 |
/api/trips/by_distance | GET | Filter by distance | ?min=2&max=5 |
Example API call:
curl http://localhost:5000/api/trips/by_date?date=2016-03-14
This application processes the NYC Taxi Trip Dataset containing:
Over 1.4 million trip records are cleaned, validated, and stored in the database.
Three-tier architecture:
-p 8080:5000FLASK_APP: Set to backend/app.pyFLASK_ENV: Set to productionDOCKER_BUILD: Automatically set to 1 during buildThis project was developed as part of ALU Enterprise Web Development coursework, demonstrating:
GitHub Repository: https://github.com/Masalale/urban_mobility_data_explorer
Complete source code, documentation, and setup instructions available in the repository.
Created for educational purposes as part of ALU Enterprise Web Development course.
For issues or questions:
Tags: urban-mobility, nyc-taxi, data-visualization, flask, python, sqlite, enterprise-web-development, data-analytics, full-stack, docker
Content type
Image
Digest
sha256:4abac711d…
Size
804.8 MB
Last updated
12 months ago
docker pull masalale/urban-mobility-explorer