github.com/tickoalcantara12/micro/v3@v3.0.0-20221007104245-9d75b9bcbab9/docs/v2/framework/web.md (about) 1 --- 2 title: Web Dashboard 3 keywords: web, dashboard 4 tags: [web, dashboard] 5 sidebar: home_sidebar 6 permalink: /web 7 summary: Micro Web provides a dashboard to visualise and explore services 8 --- 9 10 The web dashboard provides a visual tool for explorings services and a built-in web proxy for 11 web based micro services. 12 13 ## Usage 14 15 ```bash 16 micro web 17 ``` 18 Browse to localhost:8082 19 20 ## Use ACME 21 22 The micro web dashboard supports ACME via Let's Encrypt. It automatically gets a TLS certificate for your domain. 23 24 ``` 25 micro --enable_acme web 26 ``` 27 28 Optionally specify a host whitelist 29 30 ``` 31 micro --enable_acme --acme_hosts=example.com,api.example.com web 32 ``` 33 34 ## Set TLS Certificate 35 36 The dashboard supports serving securely with TLS certificates 37 38 ```bash 39 micro --enable_tls --tls_cert_file=/path/to/cert --tls_key_file=/path/to/key web 40 ``` 41 42 ## Web Services 43 44 The web dashboard has a built-in proxy for web services. This is the idea of building web applications 45 as micro services which you can do via the [go-micro/web](https://pkg.go.dev/github.com/micro/go-micro/v2/web) package. 46 47 ### Routing 48 49 Web services are much like API services in the sense that they are namespaced. The default namespace is "go.micro.web". 50 51 When a request such as `/foo` hits the web proxy, it will route to the service `go.micro.web.foo`. This is what 52 your service should be called; `namespace + path`. 53 54 ## Screenshots 55 56 <img src="images/web1.png"> 57 58 <img src="images/web2.png"> 59 60 <img src="images/web3.png"> 61 62 <img src="images/web4.png"> 63 64