Language | Framework | Platform |
---|---|---|
Go | NA | ServiceStage Web App, CCE Cluster |
This sample code helps get you started with a simple Go web application deployed by ServiceStage WebApp to a CCE Cluster.
This sample includes:
- README.md
- License.md
- Dockerfile - config file for building docker image
- main.go - main source file including the main entrypoint
- static - this directory contains static web page files
Clone your code repository and start developing your application on IDE of your choice
-
Install Go SDK and set GOROOT and GOPATH environment. See https://golang.org/doc/install for details.
-
Change to source file directory and build the application.
$ go build -o main
-
Run executable binary file 'main' to start HTTP server.
$ ./main &
-
Open http://{Server-IP}:8080/ in a web browser to view your application.
if you want to deploy the sample code on servicestage, View your CI/CD pipeline and service stack on ServiceStage and customize it as per your needs
See LICENSE.