Skip to content

基于Golang Revel 的开发的博客系统,代号:Persimmon

Notifications You must be signed in to change notification settings

skyzhp/persimmon

Repository files navigation

Persimmon Blog

macbook

run environment

  • Nginx 1.8+ (Nginx reverse proxy)
  • Golang 1.10+
  • MySQL 5.5+
  • Redis 3.0+

First Set Golang System ENV

export GOPATH=$HOME/go
export PATH=$HOME/bin:$GOPATH/bin:$PATH
export GO15VENDOREXPERIMENT=1

Golang Vendor Package Management Tool

Glide: Vendor Package Management for Golang https://glide.sh

Install

curl https://glide.sh/get | sh

Base Installation

go get github.com/cong5/persimmon

Install Package

cd $GOPATH/src/github.com/cong5/persimmon
glide install

Edit config file

To conf directory move conf/app.conf.example to conf/app.conf

Run APP

cd $GOPATH && revel run github.com/cong5/persimmon

build binary deploy

Build persimmon binary exec file to current directory.

cd $GOPATH/src/github.com/cong5/persimmon
go build -o ./bin/persimmon github.com/cong5/persimmon/app/tmp

Or revel cmd build, recommend

revel build github.com/cong5/persimmon ./bin/persimmon prod

Or

revel package github.com/cong5/persimmon prod

And publish deploy directory to your server.

run persimmon

Argument -importPath required.

./bin/persimmon -importPath=github.com/cong5/persimmon -runMode=prod -port=9100

More see https://revel.github.io/manual/tool.html

backend

backend url

http://example.com/backend

Default user.

UserName: [email protected]

Password: Persimmon2018

Frontend install tool

Admin modules frontend code use ES6 + VueJS + IViewUI Home modules frontend code use ES6 + VueJS

1). install node.js

To https://nodejs.org/en/ down release version.

2). npm install

npm install

In china, Can use Taobao NPM mirror:http://npm.taobao.org/

3). Run Dev mode

First cd to project directory.

cd $GOPATH/src/github.com/cong5/persimmon

Admin Module

# run dev
npm run backend-watch

Home Module

# run dev
npm run home-watch

4). Run Prod mode

Admin Module

# run prod
npm run backend-production

Home Module

# run prod
npm run home-production

Third-Party Cloud Service

File and Image storage Qiniu .

Post title to uri translate Baidu Translate .

A spam fighting service for Comment Akismet .

About

基于Golang Revel 的开发的博客系统,代号:Persimmon

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published