What is Gin?

Gin is a Web framework based on the Go language. It is a Martini like API, but the performance is said to be Martini 40X.

The 21 Cloud Box provides a very simple way to deploy Gin projects. You can deploy on the 21 Cloud Box by using the Go runtime environment.

How w do I deploy the Go Gin project to the server?

  1. Register as a member of 21 Cloud Box
  2. Start the template at Gitee Fork Go Gin
  3. Create a cloud service on cloud box 21 and give cloud Box 21 access to your code base
  4. Create with the following configuration
The environment Go
Build commands ./build.sh
Start the command ./app

Point advanced configuration to configure environment variables:

KEY VALUE explain
PORT 10000 21 The default read port of the cloud box is 10000

The Go Gin startup template is a live chat project implemented using Gin, using Server-sent Events (SSEs) to broadcast messages (not Websockets).

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

Why choose 21 Cloud box?

Free operations.

21 Cloud Box Build lets you implement cloud deployment right out of the box!

2 minutes online, end-to-end Web platform for Agile teams!

What are the differences between 21 Cloud Box and these foreign cloud service platforms? For reference:

  • Cloud Box vs Heroku
  • Cloud Box vs Netlify
  • Cloud Box vs. Vercel
  • 21 The Cloud Box vs Gatsby Cloud
  • 21 Cloud Box vs Github Pages
  • Cloud Box vs. Surge. Sh
  • Comparison in feature and price: 21 Cloud Box vs Heroku, Netlify, Vercel

From 21 cloud box official blog: www.21yunbox.com/blog/soluti…