Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/meloalright/guora
🖖🏻 A self-hosted Quora like web application written in Go 基于 Golang 类似知乎的私有部署问答应用 包含问答、评论、点赞、管理后台等功能
https://github.com/meloalright/guora
golang self-hosted
Last synced: 2 months ago
JSON representation
🖖🏻 A self-hosted Quora like web application written in Go 基于 Golang 类似知乎的私有部署问答应用 包含问答、评论、点赞、管理后台等功能
- Host: GitHub
- URL: https://github.com/meloalright/guora
- Owner: meloalright
- License: mit
- Created: 2020-08-13T16:05:08.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-01-31T15:11:26.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T19:48:40.789Z (5 months ago)
- Topics: golang, self-hosted
- Language: Go
- Homepage:
- Size: 10.3 MB
- Stars: 667
- Watchers: 17
- Forks: 103
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go-extra - guora - hosted Quora like web application written in Go 基于 Golang 类似知乎的私有部署问答应用 包含问答、评论、点赞、管理后台等功能|603|92|9|2020-08-13T16:05:08Z|2020-11-28T03:25:36Z| (Go Tools / Other Software)
- awesome-repositories - meloalright/guora - 🖖🏻 A self-hosted Quora like web application written in Go 基于 Golang 类似知乎的私有部署问答应用 包含问答、评论、点赞、管理后台等功能 (Go)
README
![ui](https://user-images.githubusercontent.com/11075892/90159118-80a65600-ddc2-11ea-91f4-b1afa0fe7818.png)
# Guora
[![go-report](https://goreportcard.com/badge/github.com/meloalright/guora)](https://goreportcard.com/report/github.com/meloalright/guora)
[![codecov](https://codecov.io/gh/meloalright/guora/branch/master/graph/badge.svg)](https://codecov.io/gh/meloalright/guora)
[![go-mod](https://img.shields.io/github/go-mod/go-version/meloalright/guora)](https://github.com/meloalright/guora)
[![license](https://img.shields.io/github/license/meloalright/guora)](https://opensource.org/licenses/MIT)🖖🏻 A self-hosted Quora like web application written in Go
基于 Golang 类似知乎的私有部署问答应用 包含问答、评论、点赞、管理后台等功能
## Quick Start (Docker Deploy)
```sh
$ docker-compose up --build
```## Development (Non-Dockerized Deploy)
### 1.Clone Source Code
```shell
$ git clone https://github.com/meloalright/guora$ cd guora
```### 2.Download Requirements
```shell
$ go mod download
```### 3.Create Configuration
```shell
$ touch /etc/guora/configuration.yaml
``````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 | 服务监听地址 |### 4.Init and Run
```shell
$ (sudo) go run ./cmd/guora -init
```### 5. Visit Website
visit [localhost:8080](http://localhost:8080) and log in as admin
| | |
| ------------------- | ---------- |
| mail (默认邮箱) | mymail |
| password (默认密码) | mypassword |## Run Test
```shell
$ (sudo) go test ./cmd/guora
```## Source
Repository: [guora](https://github.com/meloalright/guora)
Author: [meloalright](https://github.com/meloalright)
Contributors: [contributors](https://github.com/meloalright/guora/graphs/contributors)
## ChangeLog
Documented in [Releases](https://github.com/meloalright/guora/releases)
## License
[MIT](https://opensource.org/licenses/MIT)