module
Version:
v0.10.0
Opens a new window with list of versions in this module.
Published: Mar 4, 2019
License: MIT
Opens a new window with license information.
README
¶
GoDiscourse
GoDiscourse is a 100% open source, discourse-like forum written in Go. For demo, please visit https://live.godiscourse.com/
Built With
- Go version go1.11.4 darwin/amd64
- postgres (PostgreSQL) 11.1
- react ^16.7.0
Features
- REST API back-end written in Golang
- React-based frontend
- PostgreSQL, one of the best open source, flexible database
- Social login (OAuth 2.0) only support Github now
- JSON Web Tokens (JWT) are used for user authentication in the API
- Markdown supported topic and comment
- Model tested
Structure
./api
is back-end service, which is Rails like structure.
./web
is front-end service, contains React, Parcel and etc.
./deploy
contains example of deploy, nginx and systemd.
Getting Started
cd ./api
, copy config/test.cfg
to config/config.go
. Replace config with yours.
- Prepare and start database, the database schema under
./api/models/schema.sql
, how to install postgresql.
cd ./web
and run npm install
to prepare front-end.
cd path/to/api && go build && ./api
to start Golang server
cd path/to/web && npm run dev
to run front-end, and open http://localhost:1234
License
Directories
¶
Click to show internal directories.
Click to hide internal directories.