# beego **Repository Path**: lisgroup/beego ## Basic Information - **Project Name**: beego - **Description**: beego练手 - **Primary Language**: Go - **License**: MulanPSL-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 2 - **Forks**: 1 - **Created**: 2020-10-04 - **Last Updated**: 2024-10-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: beego ## README ### 使用方法 #### 1. 修改数据库配置 配置文件在: `conf/app.conf` ```shell script DB_HOST=localhost DB_PORT=3306 DB_DATABASE=test DB_USERNAME=root DB_PASSWORD=root ``` #### 2. 启动服务 ```shell script bee run ``` > 默认端口 8080,配置在 `conf/app.conf` 文件的 `httpport=8080` #### 3,浏览器访问 打开浏览器访问:http://localhost:8080/ 愉快的玩耍吧。 #### 4. 构建文件 ```shell go build -ldflags '-w -s' -o main ```