• The back end is developed using the Go language, using gin, a Web framework, and XORM, an ORM framework.
  • React+ Metrail-UI +React-Router4 is used on the front end.
  • Command line toolgithub.com/urfave/cliDevelopment.

The current function

  • The command line tool can upload, delete, and request articlesHostConfigure.
  • The server provides the basic add, delete, change and check interface for the article, usingsqliteData to store article titles, labels, categories, etc.
  • The front end simply displays a list of articles and article content, displaying related articles by tag or category.

screenshots

Start the project

  • The service side
go get -u "https://github.com/zachrey/my-blog-by-go"

cd $GOPATH/src/github.com/zachrey/my-blog-by-go/

go run main.goCopy the code

Port 8888 is enabled locally by default.

  • The front end
cd $GOPATH/src/github.com/zachrey/my-blog-by-go/front_web

yarn && yarn startCopy the code
  • Command line tool
cd $GOPATH/src/github.com/zachrey/my-blog-by-go/cmd

go run main.go --helpCopy the code

Here, the front and back end and command line tools are not compiled and are demonstrated directly in the development environment.

If there are dependencies in the Go project that can’t be downloaded, go to github and clone them to your SRC/Github folder.

Welcome to the discussion and star