📚 Guora - Awesome Go Library for Software Packages

Go Gopher mascot for Guora

A self-hosted Quora like web application written in Go.

🏷️ Software Packages
📂 Software written in Go.
668 stars
View on GitHub 🔗

Detailed Description of Guora

ui

Guora

go-report codecov go-mod license

🖖🏻 A self-hosted Quora like web application written in Go

基于 Golang 类似知乎的私有部署问答应用 包含问答、评论、点赞、管理后台等功能

Quick Start (Docker Deploy)

$ docker-compose up --build

Development (Non-Dockerized Deploy)

1.Clone Source Code

$ git clone https://github.com/meloalright/guora

$ cd guora

2.Download Requirements

$ go mod download

3.Create Configuration

$ 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
ParamDescription备注
dbDatabase configure, supports sqlite3, mysql, postgres数据库配置: 驱动支持 sqlite3, mysql, postgres
redisRedis configureRedis 配置
adminAdministrator info管理员信息
secretkeySecret string for token signatureToken 密钥
langLanguages, such as en, zh语言: en 为英文; zh 为简体中文
addressListen address服务监听地址

4.Init and Run

$ (sudo) go run ./cmd/guora -init

5. Visit Website

visit localhost:8080 and log in as admin

mail (默认邮箱)mymail
password (默认密码)mypassword

Run Test

$ (sudo) go test ./cmd/guora

Source

Repository: guora

Author: meloalright

Contributors: contributors

ChangeLog

Documented in Releases

License

MIT