Categories

Tags

Gin Framework Official Website
Gin Framework Official Website

What is it Go Gin?

Gin is a web framework developed based on the Go language. It is an API like Martini, but the performance is said to be 40x better than Martini’s.

21YunBox provides a very simple Gin project deployment method. You can deploy on the 21YunBox by using the Go operating environment.

How to Deploy a Go Gin Project to a Server?

  1. Register to become a 21YunBox member
  2. On Gitee Fork Go Gin launch template
  3. Create a Cloud Service on 21YunBox, and allow 21YunBox to access your code base
  4. Create with the following configuration
Environment Go
Build Command ./build.sh
Start command ./app

Click Advanced Configuration to configure environment variables:

KEY. VALUE Explanation
PORT 10000 21YunBox default read port 10000

Go Gin Startup Template is a real-time chat project implemented using Gin, using server-sent events (SSEs) to broadcast messages (not websockets).

When the deployment is successful, you can access the Gin project at app_id.21yunbox.com.

Go Gin live chat example screenshot
Go Gin live chat example screenshot

Why Choose 21YunBox?

21YunBox specializes in helping foreign businesses to host their websites in China. We deliver everything you and your team needs to build, run, and scale websites and apps in China.


Talk to an Expert

Create Professional Solutions for Your Industry and Business

or