https://github.com/linehk/go-forum
go-forum is a simple forum web application that uses the database/sql and http packages in the standard library, with toml as the configuration file format and MySQL as the database.
https://github.com/linehk/go-forum
database forum go go-forum golang sql web
Last synced: 12 months ago
JSON representation
go-forum is a simple forum web application that uses the database/sql and http packages in the standard library, with toml as the configuration file format and MySQL as the database.
- Host: GitHub
- URL: https://github.com/linehk/go-forum
- Owner: linehk
- License: mit
- Created: 2019-07-10T12:00:57.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-01-15T01:22:46.000Z (about 1 year ago)
- Last Synced: 2025-03-28T05:31:42.643Z (about 1 year ago)
- Topics: database, forum, go, go-forum, golang, sql, web
- Language: Go
- Homepage:
- Size: 56.6 KB
- Stars: 51
- Watchers: 1
- Forks: 10
- Open Issues: 0
-
Metadata Files:
- Readme: README-zh.md
- License: LICENSE
Awesome Lists containing this project
README
# go-forum
[](https://github.com/linehk/go-forum/actions)
[](https://codecov.io/gh/linehk/go-forum)
[](https://goreportcard.com/report/github.com/linehk/go-forum)
[English](./README.md "English") | 简体中文
go-forum 是一个简单的论坛 Web 程序,主要使用标准库中的 `database/sql` 和 `http` 包实现,以 `toml` 为配置文件格式和以 `MySQL` 为数据库。
## 安装
```bash
git clone https://github.com/linehk/go-forum.git
```
建立数据库:
```bash
mysql -uroot -proot < model/setup.sql
```
在 `config.toml` 中填写配置选项。
然后进行编译:
```bash
go build -o go-forum
```
再运行:
```bash
./go-forum
```
## 使用
访问 `http://localhost:8080/`。
## 参与贡献
如果您觉得这个项目有什么需要改进的地方,欢迎发起 Pull Request。
如果有重大变化,请先打开一个 Issue,讨论您想要改变的内容。
## 开源许可证
[MIT License](./LICENSE "MIT License")