{"id":15540457,"url":"https://github.com/poteto/reverse_proxy","last_synced_at":"2025-04-23T17:04:10.159Z","repository":{"id":148477083,"uuid":"65108742","full_name":"poteto/reverse_proxy","owner":"poteto","description":"Terraform demo - incrementally replace your API with Phoenix","archived":false,"fork":false,"pushed_at":"2017-06-05T17:03:15.000Z","size":83,"stargazers_count":51,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-23T17:03:58.788Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://github.com/poteto/terraform","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/poteto.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-08-07T00:53:21.000Z","updated_at":"2024-06-12T16:11:33.000Z","dependencies_parsed_at":"2023-05-01T22:01:39.019Z","dependency_job_id":null,"html_url":"https://github.com/poteto/reverse_proxy","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/poteto%2Freverse_proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poteto%2Freverse_proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poteto%2Freverse_proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/poteto%2Freverse_proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/poteto","download_url":"https://codeload.github.com/poteto/reverse_proxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250477810,"owners_count":21437049,"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-02T12:13:48.575Z","updated_at":"2025-04-23T17:04:10.146Z","avatar_url":"https://github.com/poteto.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ReverseProxy\n\n## What is this?\n\n[Terraform](https://github.com/poteto/terraform) is a simple Plug that intercepts requests to missing routes, and forwards them along to somewhere else of your choosing. The main use-case for this is to incrementally replace an API with Phoenix.\n\n## Demo\n\n```\nmix do deps.get, deps.compile\niex -S mix phoenix.server\n```\n\nTry to do a `GET` to `localhost:4000/v1/{foo,bar,baz}` – they should work as normal.\n\nThen, try a `GET` to `localhost:4000/v1/gifs/search?q=funny+cat\u0026api_key=dc6zaTOxFJmzC` – this should forward the request to Giphy's public API and respond accordingly with funny cats.\n\nYou can also try a `GET` to `localhost:4000/v1/hello-world`, which is an example of directly matching a request by path.\n\n![](https://i.imgur.com/nC4RhB3.png)\n![](https://i.imgur.com/tivzp13.png)\n\n## Setup\n\nTo start your Phoenix app:\n\n  * Install dependencies with `mix deps.get`\n  * Start Phoenix endpoint with `mix phoenix.server`\n\nNow you can visit [`localhost:4000`](http://localhost:4000) from your browser.\n\nReady to run in production? Please [check our deployment guides](http://www.phoenixframework.org/docs/deployment).\n\n## Learn more\n\n  * Official website: http://www.phoenixframework.org/\n  * Guides: http://phoenixframework.org/docs/overview\n  * Docs: https://hexdocs.pm/phoenix\n  * Mailing list: http://groups.google.com/group/phoenix-talk\n  * Source: https://github.com/phoenixframework/phoenix\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoteto%2Freverse_proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpoteto%2Freverse_proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpoteto%2Freverse_proxy/lists"}