{"id":21417850,"url":"https://github.com/adonmo/mobilitydb-sqlalchemy-demo","last_synced_at":"2026-03-16T23:35:35.780Z","repository":{"id":39212219,"uuid":"243604159","full_name":"adonmo/mobilitydb-sqlalchemy-demo","owner":"adonmo","description":"Demo webapp for MobilityDB-SQLAlchemy","archived":false,"fork":false,"pushed_at":"2023-01-27T04:37:05.000Z","size":8334,"stargazers_count":5,"open_issues_count":9,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2024-01-29T11:09:19.971Z","etag":null,"topics":["flask","geospatial","gis","mobilitydb","postgres","react","sqlalchemy"],"latest_commit_sha":null,"homepage":"https://mobilitydb-sqlalchemy-demo.adonmo.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/adonmo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-02-27T19:54:50.000Z","updated_at":"2022-01-15T20:14:08.000Z","dependencies_parsed_at":"2023-02-03T20:31:05.111Z","dependency_job_id":null,"html_url":"https://github.com/adonmo/mobilitydb-sqlalchemy-demo","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonmo%2Fmobilitydb-sqlalchemy-demo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonmo%2Fmobilitydb-sqlalchemy-demo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonmo%2Fmobilitydb-sqlalchemy-demo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/adonmo%2Fmobilitydb-sqlalchemy-demo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/adonmo","download_url":"https://codeload.github.com/adonmo/mobilitydb-sqlalchemy-demo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225950708,"owners_count":17550311,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["flask","geospatial","gis","mobilitydb","postgres","react","sqlalchemy"],"created_at":"2024-11-22T19:17:38.636Z","updated_at":"2026-03-16T23:35:35.755Z","avatar_url":"https://github.com/adonmo.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MobilityDB-SQLAlchemy Demo\n\n![](mobilitydb-sqlalchemy-demo-1.gif)\n\n![](mobilitydb-sqlalchemy-demo-2.gif)\n\nThis is a demo app for [mobilitydb-sqlalchemy](https://github.com/adonmo/mobilitydb-sqlalchemy). We are using [GPS Trajectories Data Set](https://archive.ics.uci.edu/ml/datasets/GPS+Trajectories) available on UCI Machine Learning Repository to tinker around with our library.\n\n**Live Demo**: https://mobilitydb-sqlalchemy-demo.adonmo.com\n\nLike most webapps, the demo is structured into a frontend part and a backend part, along with the database (postgres+mobilitydb). All three can be run at once using docker-compose, as described in more detail below.\n\nIn this demo, you can:\n\n * See how an SQLAlchemy model can be defined with a column type defined in mobilitydb using [mobilitydb-sqlalchemy](https://github.com/adonmo/mobilitydb-sqlalchemy). (see `models.py`)\n * See how queries can be run over these models, with usage of functions defined in mobilitydb included. (see `main.py`)\n * Additionally, examples for serializing trajectory data using the python library [trajectory](https://github.com/adonmo/trajectory). (see `main.py`)\n * Finally, examples for deserializing trajectory data in the browser using the javascript library [trajectory.js](https://github.com/adonmo/trajectory). (see `api.js`)\n\n## Running demo locally\n\nMost of the local deployment logic is handled by docker-compose. So you can simply run:\n\n```\ndocker-compose up --build\n```\n\nThe app should now be live at http://localhost:7332\n\nAlthough you wouldn't need to interact directly with backend and the database instance, they should be running on ports 7331 and 25432 respectively.\n\n### Loading the data\n\nOnce the app is up, you will notice that you won't see any data. This is because you need to populate it for the first time you are running the demo, by running:\n\n```\ndocker-compose run backend python populate_data.py\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadonmo%2Fmobilitydb-sqlalchemy-demo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fadonmo%2Fmobilitydb-sqlalchemy-demo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fadonmo%2Fmobilitydb-sqlalchemy-demo/lists"}