代码拉取完成,页面将自动刷新
🖖🏻 A self-hosted Quora like web application written in Go
基于 Golang 类似知乎的私有部署问答应用 包含问答、评论、点赞、管理后台等功能
$ docker-compose up --build
$ git clone https://github.com/meloalright/guora
$ cd guora
$ go mod download
$ touch /etc/guora/configuration.yaml
# configuration for dev
db:
driver: sqlite3
addr: ./guora.db
# driver: mysql
# addr: user:password@/dbname?charset=utf8&parseTime=True&loc=Local
# driver: postgres
# addr: host=myhost user=gorm dbname=gorm sslmode=disable password=mypassword
redis:
addr: localhost:6379
password:
db: 0
admin:
name: Development (开发账号)
mail: mymail
password: mypassword
secretkey: JustWriteSomethingWhatYouLike
lang: en
#lang: zh
address: :8080
Param | Description | 备注 |
---|---|---|
db | Database configure, supports sqlite3, mysql, postgres | 数据库配置: 驱动支持 sqlite3, mysql, postgres |
redis | Redis configure | Redis 配置 |
admin | Administrator info | 管理员信息 |
secretkey | Secret string for token signature | Token 密钥 |
lang | Languages, such as en, zh | 语言: en 为英文; zh 为简体中文 |
address | Listen address | 服务监听地址 |
$ (sudo) go run ./cmd/guora -init
visit localhost:8080 and log in as admin
mail (默认邮箱) | mymail |
password (默认密码) | mypassword |
$ (sudo) go test ./cmd/guora
Repository: guora
Author: meloalright
Contributors: contributors
Documented in Releases
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
1. 开源生态
2. 协作、人、软件
3. 评估模型