{"id":19422027,"url":"https://github.com/azavea/cac-tripplanner","last_synced_at":"2025-04-24T15:31:48.754Z","repository":{"id":791312,"uuid":"27089530","full_name":"azavea/cac-tripplanner","owner":"azavea","description":"Clean Air Council Circuit Trip Planner and Travelshed","archived":false,"fork":false,"pushed_at":"2024-11-06T21:32:48.000Z","size":22735,"stargazers_count":15,"open_issues_count":76,"forks_count":7,"subscribers_count":20,"default_branch":"develop","last_synced_at":"2024-11-06T22:29:17.419Z","etag":null,"topics":["bicycling","bikeshare","opentripplanner","philadelphia","routing","transit"],"latest_commit_sha":null,"homepage":"https://gophillygo.org/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/azavea.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-11-24T18:46:16.000Z","updated_at":"2024-11-06T21:32:51.000Z","dependencies_parsed_at":"2023-12-07T17:31:20.748Z","dependency_job_id":"fcb88e22-6625-43d1-aab1-832409a35365","html_url":"https://github.com/azavea/cac-tripplanner","commit_stats":{"total_commits":2018,"total_committers":28,"mean_commits":72.07142857142857,"dds":"0.32210109018830524","last_synced_commit":"d4c7f6d6db20eb2f64e3c24dc65d34d2444dc7f0"},"previous_names":[],"tags_count":112,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azavea%2Fcac-tripplanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azavea%2Fcac-tripplanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azavea%2Fcac-tripplanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/azavea%2Fcac-tripplanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/azavea","download_url":"https://codeload.github.com/azavea/cac-tripplanner/tar.gz/refs/heads/develop","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223958146,"owners_count":17231746,"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":["bicycling","bikeshare","opentripplanner","philadelphia","routing","transit"],"created_at":"2024-11-10T13:31:40.544Z","updated_at":"2025-04-24T15:31:48.726Z","avatar_url":"https://github.com/azavea.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Clean Air Council Circuit Trip Planner and Travelshed\n=====================================================\n\n\nDevelopment Dependencies\n------------------------\n\n* [Vagrant](http://www.vagrantup.com)\n* [Ansible](http://www.ansible.com) v4 (versions 6+ seem not to work)\n\n\nDevelopment Installation\n------------------------\n\n1. Make sure you have the development dependencies installed\n2. Download the latest Graph.obj for OTP: `scripts/download-latest-graph.sh`\n     - This will take ~10 minutes to download\n     - If you already have a local graph file but want the latest from S3, run `scripts/download-latest-graph.sh --force`\n3. Copy `deployment/ansible/group_vars/development_template` to `deployment/ansible/group_vars/development`\n4. Change into the `src/` folder and run `npm install` to install the node modules on the host machine\n5. Run `vagrant up`. You can choose to change the Virtualbox shared folder type for the `app` VM from its default VirtualBox by:\n```\nCAC_APP_SHARED_FOLDER_TYPE=nfs vagrant up\n```\n6. See the app at http://localhost:8024! See OpenTripPlanner at http://localhost:9090.\n7. Running `./scripts/serve-js-dev.sh` on the host will rebuild the front-end app on file change (the browser must be reloaded manually to pick up the change). Alternatively, `cd /opt/app/src \u0026\u0026 npm run gulp-development` can be run manually in the VM to pick up changes to the static files.\n\nNote that if there is an existing build Graph.obj in `otp_data`, vagrant provisioning in development mode will not attempt to rebuild the graph, but will use the one already present.\n\nDjango migrations are run as part of app provisioning, [here](https://github.com/azavea/cac-tripplanner/blob/develop/deployment/ansible/roles/cac-tripplanner.app/tasks/main.yml#L67-L72), but there may be instances where you need to manually run migrations outside of provisioning, in which case use the command:\n```\nvagrant ssh app -c 'cd /opt/app/python/cac_tripplanner \u0026\u0026 python3 manage.py migrate'\n```\n\nProduction Deployment\n------------------------\n*Note there is no staging environment*\n1. Dispatch \"Build Graph\" Github Actions workflow\n     - This will fetch and process the latest GTFS and OSM files, store them on S3, and then use those files (along with the elevation file) to build a new Graph.obj for the OTP builder. New Graph.obj will also be stored in S3 bucket.\n2. Once workflow completes (3-4 hours), remove everything from your local `otp_data` directory and then run the following script to pull the latest Graph.obj: `scripts/download-latest-graph.sh`\n3. Build the AMIs, follow latest instructions in `Building The AMIs` section of deployment instrucions, [found here](https://github.com/azavea/geospatial-apps/blob/master/gophillygo_deployment.md#building-the-amis).\n4. Once AMI builds complete and identifiers set, following latest instructions in `Deploying the AMIs` section of deployment instructions, [found here](https://github.com/azavea/geospatial-apps/blob/master/gophillygo_deployment.md#deploying-the-amis).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazavea%2Fcac-tripplanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fazavea%2Fcac-tripplanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fazavea%2Fcac-tripplanner/lists"}