Learn Go best practice – simple answer question system Guora

Guora

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

Golang-based zhihu-like private deployment q&A application includes q&A, comments, likes, management background and other functions

Quick Start

1.Clone Source Code

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

$ cd guora
Copy the code

2.Download Requirements

$ go mod download
Copy the code

3.Edit Configuration

Open the configuration.yaml and edit your redis config.

Open configuration.yaml to edit your Redis environment configuration.

4.Init and Run

$ (sudo) go run init/init.go

$ (sudo) go run main.go
Copy the code

5.Visit localhost:8080 and Log in as Admin

Mail (default mailbox) admin@localhost
Password (default password) mypassword

Run Test

$ (sudo) go run init/init.go

$ (sudo) go test
Copy the code

Source

Repository: Guora

Author: Meloalright

License

MIT