GithubHelp home page GithubHelp logo

dewey363 / guora Goto Github PK

View Code? Open in Web Editor NEW

This project forked from meloalright/guora

0.0 2.0 0.0 10.53 MB

🖖🏻 A self-hosted Quora like web application written in Go 基于 Golang 类似知乎的私有部署问答应用 包含问答、评论、点赞、管理后台等功能

License: MIT License

Go 94.75% HTML 4.74% Dockerfile 0.51%

guora's Introduction

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
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

$ (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

guora's People

Contributors

meloalright avatar larissareyes avatar cyantarek avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.