{"id":15656628,"url":"https://github.com/mathisburger/opentripplanner-starter","last_synced_at":"2025-06-27T22:08:35.778Z","repository":{"id":138139079,"uuid":"589186867","full_name":"MathisBurger/OpenTripPlanner-Starter","owner":"MathisBurger","description":"An application wrapper for the OpenTripPlanner to use it in a production environment","archived":false,"fork":false,"pushed_at":"2023-09-30T15:11:43.000Z","size":2452,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T20:34:30.375Z","etag":null,"topics":["cli","navigation","opentripplanner","production","wrapper"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MathisBurger.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":"2023-01-15T11:16:15.000Z","updated_at":"2023-02-17T00:05:10.000Z","dependencies_parsed_at":"2024-10-23T05:08:02.739Z","dependency_job_id":null,"html_url":"https://github.com/MathisBurger/OpenTripPlanner-Starter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathisBurger%2FOpenTripPlanner-Starter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathisBurger%2FOpenTripPlanner-Starter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathisBurger%2FOpenTripPlanner-Starter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MathisBurger%2FOpenTripPlanner-Starter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MathisBurger","download_url":"https://codeload.github.com/MathisBurger/OpenTripPlanner-Starter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247494518,"owners_count":20947893,"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":["cli","navigation","opentripplanner","production","wrapper"],"created_at":"2024-10-03T13:03:35.274Z","updated_at":"2025-04-06T14:27:14.607Z","avatar_url":"https://github.com/MathisBurger.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OTP Starter\n\nA simple CLI application that is used to run the OpenTripPlanner in \nan production environment without the required overhead of handling process IDs and struggling arround to run \nit as a deamon.\n\n## How it works\n\nThe application uses the unmodified releases of the OTP. It is just ab abstraction layer onto the CLI of the executable \n.jar file that is used to run the server and perform all the necessary operations.\nIt starts the application using [nohup](https://de.wikipedia.org/wiki/Nohup) to run it as a deamon. \nIt is stopped by just fetching the process ID of the running server and terminating the JVM that runs\nthe server. \n\n## System requirements\n\nThis application does not work in windows.\n\nYou will need: \n- Java 17\n- Linux/UNIX based operating system\n\n## How to use it\n\nFirst you will have to download the [latest release](https://github.com/MathisBurger/OpenTripPlanner-Starter/releases/tag/0.1.1) from the releases tab.\n\nAfter that you can add it to your `/usr/local/bin` folder or leave it in the directory.\nIf you decide to leave it in the directory you downloaded it into, you will be forced everytime to \nprovide the full path to the executable if you want to run it.\n\nAfter that go into the folder you want to use as your folder for the OTP installation\n\nThis folder should contain:\n- A version of OTP\n- A directory that contains all your data like GTFS files, etc.\n\nNow create a file named `otp-starter.toml` in this directory and use this configuration schema:\n\n```toml\n# The amount of memory that is assigned to the JVM that runs the OTP\nmemory_limit = \"10G\"\notp_jar = \"./otp-2.4.0-shaded.jar\"\n\n[http]\n# The HTTP port that uses the application\nport = 8081\n# The HTTPS port that uses the application\nsecure_port = 8083\n# The bind address that is required\nbind_address = \"0.0.0.0\"\n\n[path]\n# The relative/absolute path to the data directory\ndata_dir = \"./data\"\n# The relative/absolute path to the directory that contains\n# the graphs.\ngraph_dir = \"./graphs\"\n```\n\nNow you are ready to launch your application.\n\nIf you want to start it directly and build the graph on startup just run this command:\n\n```shell\notp-starter start -bos\n```\n\nIf you prefer to build a graph before use these commands:\n\n```shell\notp-starter buildGraph \u0026\u0026 otp-starter start\n```\n\n\nIf you want to stop all running OTP instances just use \n```shell\notp-starter stop\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathisburger%2Fopentripplanner-starter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmathisburger%2Fopentripplanner-starter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmathisburger%2Fopentripplanner-starter/lists"}