{"id":13494059,"url":"https://github.com/meloalright/guora","last_synced_at":"2025-12-30T08:56:46.082Z","repository":{"id":56080436,"uuid":"287324029","full_name":"meloalright/guora","owner":"meloalright","description":"🖖🏻 A self-hosted Quora like web application written in Go  基于 Golang 类似知乎的私有部署问答应用 包含问答、评论、点赞、管理后台等功能","archived":false,"fork":false,"pushed_at":"2023-01-31T15:11:26.000Z","size":10778,"stargazers_count":668,"open_issues_count":7,"forks_count":103,"subscribers_count":17,"default_branch":"master","last_synced_at":"2024-10-31T08:37:35.429Z","etag":null,"topics":["golang","self-hosted"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/meloalright.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-13T16:05:08.000Z","updated_at":"2024-09-03T08:59:16.000Z","dependencies_parsed_at":"2023-02-16T20:31:56.548Z","dependency_job_id":null,"html_url":"https://github.com/meloalright/guora","commit_stats":null,"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meloalright%2Fguora","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meloalright%2Fguora/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meloalright%2Fguora/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/meloalright%2Fguora/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/meloalright","download_url":"https://codeload.github.com/meloalright/guora/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246037484,"owners_count":20713422,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["golang","self-hosted"],"created_at":"2024-07-31T19:01:21.377Z","updated_at":"2025-12-30T08:56:46.036Z","avatar_url":"https://github.com/meloalright.png","language":"Go","funding_links":[],"categories":["Go","Software Packages","Go Tools","软件包","Go 工具","Other Software"],"sub_categories":["Other Software","其他软件","其他软件库和软件包"],"readme":"![ui](https://user-images.githubusercontent.com/11075892/90159118-80a65600-ddc2-11ea-91f4-b1afa0fe7818.png)\n\n# Guora\n\n[![go-report](https://goreportcard.com/badge/github.com/meloalright/guora)](https://goreportcard.com/report/github.com/meloalright/guora)\n[![codecov](https://codecov.io/gh/meloalright/guora/branch/master/graph/badge.svg)](https://codecov.io/gh/meloalright/guora)\n[![go-mod](https://img.shields.io/github/go-mod/go-version/meloalright/guora)](https://github.com/meloalright/guora)\n[![license](https://img.shields.io/github/license/meloalright/guora)](https://opensource.org/licenses/MIT)\n\n🖖🏻 A self-hosted Quora like web application written in Go\n\n基于 Golang 类似知乎的私有部署问答应用 包含问答、评论、点赞、管理后台等功能\n\n## Quick Start (Docker Deploy)\n\n```sh\n$ docker-compose up --build\n```\n\n## Development (Non-Dockerized Deploy)\n\n### 1.Clone Source Code\n\n```shell\n$ git clone https://github.com/meloalright/guora\n\n$ cd guora\n```\n\n### 2.Download Requirements\n\n```shell\n$ go mod download\n```\n\n### 3.Create Configuration\n\n```shell\n$ touch /etc/guora/configuration.yaml\n```\n\n```yaml\n# configuration for dev\ndb:\n  driver: sqlite3\n  addr: ./guora.db\n  # driver: mysql\n  # addr: user:password@/dbname?charset=utf8\u0026parseTime=True\u0026loc=Local\n  # driver: postgres\n  # addr: host=myhost user=gorm dbname=gorm sslmode=disable password=mypassword\nredis:\n  addr: localhost:6379\n  password:\n  db: 0\nadmin:\n  name: Development (开发账号)\n  mail: mymail\n  password: mypassword\nsecretkey: JustWriteSomethingWhatYouLike\nlang: en\n#lang: zh\naddress: :8080\n```\n\n| Param     | Description                                           | 备注                                          |\n| --------- | ----------------------------------------------------- | --------------------------------------------- |\n| db        | Database configure, supports sqlite3, mysql, postgres | 数据库配置: 驱动支持 sqlite3, mysql, postgres |\n| redis     | Redis configure                                       | Redis 配置                                    |\n| admin     | Administrator info                                    | 管理员信息                                    |\n| secretkey | Secret string for token signature                     | Token 密钥                                    |\n| lang      | Languages, such as en, zh                             | 语言: en 为英文; zh 为简体中文                |\n| address   | Listen address                                        | 服务监听地址                                  |\n\n### 4.Init and Run\n\n```shell\n$ (sudo) go run ./cmd/guora -init\n```\n\n### 5. Visit Website\n\nvisit [localhost:8080](http://localhost:8080) and log in as admin\n\n|                     |            |\n| ------------------- | ---------- |\n| mail (默认邮箱)     | mymail     |\n| password (默认密码) | mypassword |\n\n## Run Test\n\n```shell\n$ (sudo) go test ./cmd/guora\n```\n\n## Source\n\nRepository: [guora](https://github.com/meloalright/guora)\n\nAuthor: [meloalright](https://github.com/meloalright)\n\nContributors: [contributors](https://github.com/meloalright/guora/graphs/contributors)\n\n## ChangeLog\n\nDocumented in [Releases](https://github.com/meloalright/guora/releases)\n\n## License\n\n[MIT](https://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeloalright%2Fguora","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmeloalright%2Fguora","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmeloalright%2Fguora/lists"}