{"id":17861614,"url":"https://github.com/marcusbuffett/dev-forwarding-server","last_synced_at":"2025-07-01T14:08:43.051Z","repository":{"id":57618560,"uuid":"317751349","full_name":"marcusbuffett/dev-forwarding-server","owner":"marcusbuffett","description":"Split API and other requests to different ports","archived":false,"fork":false,"pushed_at":"2020-12-02T04:50:54.000Z","size":8,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-04T14:14:13.655Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","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/marcusbuffett.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-12-02T04:40:13.000Z","updated_at":"2022-04-13T17:32:20.000Z","dependencies_parsed_at":"2022-09-16T18:50:24.268Z","dependency_job_id":null,"html_url":"https://github.com/marcusbuffett/dev-forwarding-server","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/marcusbuffett/dev-forwarding-server","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusbuffett%2Fdev-forwarding-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusbuffett%2Fdev-forwarding-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusbuffett%2Fdev-forwarding-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusbuffett%2Fdev-forwarding-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/marcusbuffett","download_url":"https://codeload.github.com/marcusbuffett/dev-forwarding-server/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/marcusbuffett%2Fdev-forwarding-server/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262978708,"owners_count":23394013,"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":[],"created_at":"2024-10-28T08:46:36.375Z","updated_at":"2025-07-01T14:08:42.980Z","avatar_url":"https://github.com/marcusbuffett.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# dev-forwarding-server\n\n[![Crates.io](https://img.shields.io/crates/v/dev-forwarding-server)](https://crates.io/crates/dev-forwarding-server)\n\nOften when working on a web app I'll need to route `/api/*` requests to an API\nserver, and the rest to a web server. In production this is accomplished w/\nkubernetes, cloudfront, etc, but in development I use this tool.\n`dev-api-server` takes a port to run on, an API port, and a web port.\n\n## Installation\n\n`cargo install dev-forwarding-server`\n\nThis will install the `dev-forwarding-server` binary.\n\n## Usage\n\n```bash\ndev-forwarding-server --port 4300 --web-port 3000 --api-port 8000\n```\n\nThis will start up a server on port 4300, that will forward api requests to port\n8000, and other requests to port 3000.\n\n## Helptext\n\n```\nUSAGE:\n    dev-forwarding-server --api-port \u003capi-port\u003e --web-port \u003cweb-port\u003e --port \u003cport\u003e\n\nFLAGS:\n    -h, --help       Prints help information\n    -V, --version    Prints version information\n\nOPTIONS:\n    -a, --api-port \u003capi-port\u003e\n    -p, --port \u003cport\u003e\n    -w, --web-port \u003cweb-port\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcusbuffett%2Fdev-forwarding-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarcusbuffett%2Fdev-forwarding-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarcusbuffett%2Fdev-forwarding-server/lists"}