{"id":25303502,"url":"https://github.com/codesignal/learn_preview-proxy","last_synced_at":"2025-04-07T02:30:18.722Z","repository":{"id":277054701,"uuid":"931187235","full_name":"CodeSignal/learn_preview-proxy","owner":"CodeSignal","description":"A proxy we can use to control the preview in CodeSignal Learn","archived":false,"fork":false,"pushed_at":"2025-02-11T21:33:51.000Z","size":7,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-02-11T22:29:37.488Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/CodeSignal.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":"2025-02-11T21:22:45.000Z","updated_at":"2025-02-11T21:38:00.000Z","dependencies_parsed_at":"2025-02-11T22:40:24.463Z","dependency_job_id":null,"html_url":"https://github.com/CodeSignal/learn_preview-proxy","commit_stats":null,"previous_names":["codesignal/learn_preview-poxy"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSignal%2Flearn_preview-proxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSignal%2Flearn_preview-proxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSignal%2Flearn_preview-proxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CodeSignal%2Flearn_preview-proxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CodeSignal","download_url":"https://codeload.github.com/CodeSignal/learn_preview-proxy/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247581368,"owners_count":20961762,"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":"2025-02-13T07:36:16.465Z","updated_at":"2025-04-07T02:30:18.696Z","avatar_url":"https://github.com/CodeSignal.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Preview Proxy\n\nA simple proxy server that shows a loading page until the target application is ready.\n\n![Demo of the Preview Proxy](./proxy-example.gif)\n\n## Features\n\n- Shows a customizable loading page until the target application signals readiness\n- Proxies all requests to a target port once ready\n- Configurable redirect path when application is ready\n- Customizable loading screen messages\n\n## Usage\n\n```bash\nnpm install\nnode proxy.js [options]\n```\n\n### Options\n\n- `--server-port \u003cport\u003e`: Set the port for the proxy server (default: 3000)\n- `--proxy-port \u003cport\u003e`: Set the port for the target application (default: 3001)\n- `--redirect-path \u003cpath\u003e`: Set the path to redirect to when the application is ready (default: \"/\")\n- `--heading-message \u003ctext\u003e`: Set the heading text for the loading page (default: \"Loading Application\")\n- `--subheading-message \u003ctext\u003e`: Set the subheading text for the loading page (default: \"Please wait while we initialize your session...\")\n- `is-ready`: Start in the ready state and skip the loading page\n\n### Installing Node.js\nSome environments require installing Node.js manually.  Use the `install_node.sh` script to install the correct version of Node.js for this project. It will start by installing `nvm` and then installs Node.js.\n\n### A common scenario:\nTo use this proxy, simply clone the repo, install Node.js if necessary, and start the proxy.\n\n```bash\ngit clone --depth 1 --branch v0.0.1 https://github.com/codesignal/learn_preview-proxy.git  \u003e /dev/null 2\u003e\u00261\ncd learn_preview-proxy\nbash ./install_node.sh\nsource ~/.bashrc\nnode proxy.js\n```\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesignal%2Flearn_preview-proxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodesignal%2Flearn_preview-proxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodesignal%2Flearn_preview-proxy/lists"}