- A monitoring dashboard of RapidKL GTFS real-time API data
- Data orchestrated through ELT using Dagster, Dbt and Metabase - instantiate with just docker compose!
- Create virtualenv and install packages
python3 -m venv venvRapid
source venvRapid/bin/activate
pip install -r requirements.txt
- Setup container
docker compose up
- Dbt path setup
export DBT_PROJECT_DIR=/<project>/<working>/<dbt_directory>
export DBT_PROFILES_DIR=/<project>/<working>/<directory>
- Start data orchestration
- Run with
<flow>.from_source(source=<if/local/use/project_path/else/githubrepoURL>).deploy()
prefect server start
prefect work-pool create --type process my-work-pool # if not yet create, else ignore
prefect worker start --pool "rapid-work-pool"
python deploy.py # get most updated version
prefect deployment run '<flow_function>/<deployment_name>'
- Monitor visualization
- Go to http://localhost:3000 to see the dasboard!
- [] Add more data (daily)
- [] Convert bus density map -> current location map