PageSourceSearch

https://flomesh.io/component---src-pages-pipy-docs-operating-admin-gui-mdx-4e165d2808ce2b99259d.js

js flomesh.io collected 2026-10-02 11:14:31 UTC 5,041 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkthefront_js_gatsbyjs=self.webpackChunkthefront_js_gatsbyjs||[]).push([[231],{62772:function(e,n,t){t.r(n),t.d(n,{_frontmatter:function(){return r},default:function(){return m}});var i=t(63366),o=(t(67294),t(63497)),a=t(32557),l=["components"],r={},d={_frontmatter:r},p=a.default;function m(e){var n=e.components,t=(0,i.Z)(e,l);return(0,o.mdx)(p,Object.assign({},d,t,{components:n,mdxType:"MDXLayout"}),(0,o.mdx)("p",null,"Pipy comes with a built-in visual Web development environment, including an editor and graphical aided design tools to simplify script development and debugging."),(0,o.mdx)("h2",{id:"start-admin-console"},"Start Admin Console"),(0,o.mdx)("p",null,"Starting console is pretty straight-forward, as introduced in ",(0,o.mdx)("a",{parentName:"p",href:"/operating/cli/"},"Pipy CLI")," you can configure listening port to your specified needs by passing the ",(0,o.mdx)("inlineCode",{parentName:"p"},"--admin-port")," command line argument."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-shell"},"$ pipy --admin-port=6060 tutorial/03-proxy/proxy.js\n2022-02-16 14:44:22.042 [INF] [config]\n2022-02-16 14:44:22.042 [INF] [config] Module /proxy.js\n2022-02-16 14:44:22.042 [INF] [config] ================\n2022-02-16 14:44:22.042 [INF] [config]\n2022-02-16 14:44:22.042 [INF] [config]  [Listen on 8000 at 0.0.0.0]\n2022-02-16 14:44:22.042 [INF] [config]  -----\x3e|\n2022-02-16 14:44:22.042 [INF] [config]        |\n2022-02-16 14:44:22.042 [INF] [config]       demuxHTTP\n2022-02-16 14:44:22.042 [INF] [config]        |\n2022-02-16 14:44:22.042 [INF] [config]        |--\x3e [forward]\n2022-02-16 14:44:22.042 [INF] [config]              muxHTTP\n2022-02-16 14:44:22.042 [INF] [config]               |\n2022-02-16 14:44:22.042 [INF] [config]               |--\x3e [connection]\n2022-02-16 14:44:22.042 [INF] [config]                     connect --\x3e|\n2022-02-16 14:44:22.042 [INF] [config]                                |\n2022-02-16 14:44:22.042 [INF] [config]  <-----------------------------|\n2022-02-16 14:44:22.042 [INF] [config]\n2022-02-16 14:44:22.043 [INF] [listener] Listening on port 8000 at 0.0.0.0\n2022-02-16 14:44:22.070 [INF] [admin] Starting admin service...\n2022-02-16 14:44:22.071 [INF] [listener] Listening on port 6060 at ::\n")),(0,o.mdx)("p",null,"As displayed in console output, admin console is listening on port 6060. Open ",(0,o.mdx)("a",{parentName:"p",href:"http://localhost:6060"},"http://localhost:6060")," in your browser to access it:"),(0,o.mdx)("p",null,(0,o.mdx)("img",{parentName:"p",src:"/img/docs/operating/console.png",alt:null})),(0,o.mdx)("ol",null,(0,o.mdx)("li",{parentName:"ol"},"File system: displays the directory where the loaded script resides. You can perform operations on files"),(0,o.mdx)("li",{parentName:"ol"},"Displays all network interfaces that are currently being listened on"),(0,o.mdx)("li",{parentName:"ol"},"Log"),(0,o.mdx)("li",{parentName:"ol"},"Add File"),(0,o.mdx)("li",{parentName:"ol"},"Set selected file as an main entry script"),(0,o.mdx)("li",{parentName:"ol"},"Delete file"),(0,o.mdx)("li",{parentName:"ol"},"Save modifications"),(0,o.mdx)("li",{parentName:"ol"},"Start from the selected entry script"),(0,o.mdx)("li",{parentName:"ol"},"Stop"),(0,o.mdx)("li",{parentName:"ol"},"Reload"),(0,o.mdx)("li",{parentName:"ol"},"Open/Hide log console"),(0,o.mdx)("li",{parentName:"ol"},"File list"),(0,o.mdx)("li",{parentName:"ol"},"Script editor"),(0,o.mdx)("li",{parentName:"ol"},"Graphical aided Design tool: Shows traffic flow"),(0,o.mdx)("li",{parentName:"ol"},"Log panel")),(0,o.mdx)("h2",{id:"script-debugging"},"Script debugging"),(0,o.mdx)("p",null,"For script writing, please refer to ",(0,o.mdx)("a",{parentName:"p",href:"/reference/api/Configuration"},"Configuration API")," and ",(0,o.mdx)("a",{parentName:"p",href:"/tutorial/01-hello/"},"Tutorials")),(0,o.mdx)("p",null,(0,o.mdx)("img",{parentName:"p",src:"/img/docs/operating/debug.png",alt:null})),(0,o.mdx)("ol",null,(0,o.mdx)("li",{parentName:"ol"},"Modify response: Return ",(0,o.mdx)("inlineCode",{parentName:"li"},"Hi!")),(0,o.mdx)("li",{parentName:"ol"},"Save modifications"),(0,o.mdx)("li",{parentName:"ol"},"Reload")),(0,o.mdx)("p",null,"Script will listen on port ",(0,o.mdx)("inlineCode",{parentName:"p"},"8080")," , refer to ",(0,o.mdx)("a",{parentName:"p",href:"/getting-started/quick-start"},"Quick start")," to quickly starting with learning process. Once the script is running, you can invoke below shell command to verify the changes."),(0,o.mdx)("pre",null,(0,o.mdx)("code",{parentName:"pre",className:"language-sh"},"$ curl -x POST http://localhost:8080 -d 'hello world'\nHi!\n")),(0,o.mdx)("p",null,"At this point, script returns what we expect ",(0,o.mdx)("inlineCode",{parentName:"p"},"Hi!"),". In addition, the modified content is displayed in the file system in real time."))}m.isMDXComponent=!0}}]);
2//# sourceMappingURL=component---src-pages-pipy-docs-operating-admin-gui-mdx-4e165d2808ce2b99259d.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.