Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

StudentCWZ/bubble

Folders and files

NameName
Last commit message
Last commit date

Latest commit

History

2 Commits

Repository files navigation

bubble

仓库内容

  • Go Web 基础教程 bubble 项目,提供如下功能:
    • 利用 Gin 框架 + MySQL 搭建一套通用的 Go Web 开发通用脚手架
    • 用户可以新建提醒清单,以及查询自己的提醒清单
    • bubble 项目具体代码详解可见 Go Web 基础教程,建议使用之前进行阅读

项目目录

  • bubble 项目目录如下:
├── controller
│  └── controller.go
├── dao
│  └── mysql.go
├── go.mod
├── go.sum
├── main.go
├── models
│  └── todo.go
├── routers
│  └── routers.go
├── static
│  ├── css
│  │  ├── app.8eeeaf31.css
│  │  └── chunk-vendors.57db8905.css
│  ├── fonts
│  │  ├── element-icons.535877f5.woff
│  │  └── element-icons.732389de.ttf
│  └── js
│  ├── app.007f9690.js
│  └── chunk-vendors.ddcb6f91.js
└── templates
 ├── favicon.ico
 └── index.html

使用准备

  • 克隆代码并进入 bubble 文件夹:
git clone git@github.com:StudentCWZ/bubble.git
cd bubble

使用要求

常规方式

  • 这里使用常规方式来运行服务,常规方式要求有 Golang 环境、MySQL 环境,具体要求如下:
    • Golang >= 1.14
    • MySQL

MySQL 安装配置

  • 本地安装 MySQL、Docker 启动 MySQL、远程 MySQL 都是可以的,只要能正常连接使用即可,这里建议用 Docker 起一个 MySQL 。
  • 需要在 MySQL 数据库中新建 bubble 库 。

Golang 环境安装

安装依赖包

  • 要求:bubble 项目目录下
  • 运行相关命令
go mod tidy

运行服务

  • 第一种:
go run main.go
  • 第二种:
go build
bubble

About

Go Web 基础课程项目 -- 源自李文周

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

Contributors

AltStyle によって変換されたページ (->オリジナル) /