- Nginx 1.8+ (Nginx reverse proxy)
- Golang 1.10+
- MySQL 5.5+
- Redis 3.0+
export GOPATH=$HOME/go
export PATH=$HOME/bin:$GOPATH/bin:$PATH
export GO15VENDOREXPERIMENT=1
Glide: Vendor Package Management for Golang https://glide.sh
Install
curl https://glide.sh/get | sh
go get github.com/cong5/persimmon
cd $GOPATH/src/github.com/cong5/persimmon
glide install
To conf directory move conf/app.conf.example
to conf/app.conf
cd $GOPATH && revel run github.com/cong5/persimmon
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.
Argument -importPath required.
./bin/persimmon -importPath=github.com/cong5/persimmon -runMode=prod -port=9100
More see https://revel.github.io/manual/tool.html
backend url
Default user.
UserName: [email protected]
Password: Persimmon2018
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
File and Image storage Qiniu .
Post title to uri translate Baidu Translate .
A spam fighting service for Comment Akismet .