Use replit to build a free personal cloud server

When I met replit for the first time, I was attracted by its free hosting and domain name service. What is replit? After some experimentation, I found that this thing is quite interesting, and I admire foreigners for their strong imagination and innovation. It is really nice to be able to build a personal cloud server and even have a domain name. For individual developers, even cloud servers are saved. Those who want to build a personal website or develop and test without a cloud environment can use this, it is easy to use and free. Here is a recommendation, and how to use replit to build a free cloud server.

Introduction

Official website address: Replit: the collaborative browser based IDE - Replit

Replit is a place for newbies to start programming, building, deploying and hosting applications that work together. There is a saying that it is like the Figma of programming. It provides everything you need to program, all in the browser, with built-in real-time collaboration, and it's easy enough for beginners to master in minutes.

Replit is an innovative product, we can simply understand it as Figma or Google Docs in the programming field, which is a browser-based cloud collaborative development platform.

Through it, we don't need to install or configure any software locally, and we can write code, build, deploy and host applications on the web page very simply, and almost all processes, such as applications, can also realize real-time collaboration in it. Similar to Roblox in the software field, because in addition to the entire development process, you can also sell the products you develop in Replit.

So it is not just a simple developer tool, but gradually formed a complete platform from development to transaction, so in its vision, these software developers are called software creators.

Replit was not aimed at those very mature developers at the beginning, but more for beginners or hobbyists of programming, so that everyone can learn programming very easily. It wants to be a place where people start programming and release their first products .

It hopes to lead the transition of software creation from a stacked model to a networked model, and create the world's first large-scale distributed collaborative operating system.

That means giving new software creators everything they need to get started, accessible from anywhere by anyone with a laptop, tablet or phone. Ultimately, Replit will become the world's first massively distributed collaborative operating system, an open, extensible platform on which anyone can build and plug in to improve the platform itself and make money through it. The more people who code, the more people improve the platform, the richer the ecosystem is, a strong positive-sum network effect.

how to use

Not to mention applying for registration, just follow the prompts.

Here is how to build a personal cloud server, which is actually very simple.

Applications running on replit will be automatically hosted, and a free https third-level domain name (in the format: project.username.repl.co) will be automatically generated. This means that anyone can use Replit's cloud server to create their own website without going to a cloud service provider to purchase cloud server resources.

for example:

I applied for a user name of yangqq, so if I develop an application and launch it, others can access me through yangqq.repl.co.

But there is a problem with this, that is, public projects, everyone can see and visit you and see your code. If you don't want to open source, you can create an organization and set it as an internal private project. It can still be accessed from the public network. For example, if I created an organization called k1213 and a project called weixin, you can still access me through weixin.k1213.repl.co.

Welcome to visit me: https://weixin.k1213.repl.co/

Let's do a test next:

The following is the team I built, the team name is k12,

 A simple test, open port 80 service. (It should be noted that the port in the application can be opened arbitrarily, and it is not necessary to specify port 80. It can be accessed through the domain name. For example, if you open port 8088, it can still be accessed through the domain name.)

package main
import (
  "net/http"
 
  "github.com/gin-gonic/gin"
)
 
func setupRouter() *gin.Engine {
  // 初始化 Gin 框架默认实例,该实例包含了路由、中间件以及配置信息
  r := gin.Default()
 
  // Ping 测试路由
  r.GET("/hi", func(c *gin.Context) {
    c.String(http.StatusOK, "hello world!")
  })
  r.GET("/", func(c *gin.Context) {
    c.String(http.StatusOK, "hello,this is index page!")
  })
 
  return r
}
 
func main() {
  // 设置路由信息
  r := setupRouter()
  // 启动服务器并监听 80 端口
  r.Run(":80")
}

 Extranet access results:

Visited my homepage.

Next, play freely, haha. I will first connect my daily weather and chatbot service to the WeChat official account, and push a message to me every morning at 7 o'clock, right as an alarm clock, to experience the speed and stability.

The following is to connect the popular gpt robot, ask questions, and search the code is convenient.

If you have any questions, please leave a comment.

other resources

Log In - Replit

Replit builds a Typecho personal blog - a nanny-level tutorial that even beginners can learn_哔哩哔哩_bilibili

You can experience the powerful functions of Alist even without a server, Replit builds an Alist network disk_哔哩哔哩_bilibili

Replit's ambition: Let Web3 creators write code as easy as writing an article-Metaverse Internal Reference

[Tutorial] How to build a PHP+MySQL website with Replit's free cloud server for free

Guess you like

Origin blog.csdn.net/qq8864/article/details/129327815