Skip to content

Latest commit

 

History

History
132 lines (93 loc) · 3.64 KB

english.md

File metadata and controls

132 lines (93 loc) · 3.64 KB

Feature

  1. backend
    http://yourdomain/admin backend url you can use php artisan account:admin to create your admin account.

  2. error wechat notice
    This feature implement by easywechat
    automatic report and notice from wechat when error throwed
    example
    template for reference:
    {{first.DATA}} error type:{{keyword1.DATA}} error url:{{keyword2.DATA}} IP Address:{{keyword3.DATA}} error traces:{{error.DATA}} {{remark.DATA}}

  3. sync post to wordpress
    how to use:

  4. modify .env file, set sync_wordpress true.

  5. run php artisan vendor:publish --provider=Tradzero\WPREST\WPRESTServiceProvider

  6. modify config/wordpress.php set wordpress endpoint and account info.

Install

Require

php > 7 any server, like: nginx apache (options)
composer
redis (cache posts)

Install Steps

  1. install composer

  2. clone project git clone [email protected]:tradzero/blog.git

  3. install dependency
    composer install

  4. copy .env.example to.env
    on Linux: cp .env.example .env
    on Windows: copy .env.example .env

  5. generate app key
    php artisan key:gen

  6. create a database
    create database xxx; # xxx is database name

  7. fill out environment config

DB_DATABASE= # database name
DB_USERNAME= # database connect username
DB_PASSWORD= # database connect password

REDIS_PASSWORD= # REDIS password
  1. run database migrate
    php artisan migrate

  2. config and run server
    it you don't have or wan't use regular servers, you can use php's UIlt-in server
    run php artisan serv via http://127.0.0.1:8000

  3. you can alse see laravel installation for reference

.env description

# [qiniu cloud](http://www-src.qiniu.com/) config, i used it for file upload as default .

QINIU_AK=     # qiniu storage AccessKey
QINIU_SK=     # qiniu storage SecretKey
QINIU_BUCKET= # qiniu storage bucket name
QINIU_URL=    # qiniu storage url domain

# wechat config , Blog used it for bug event push.
# i recommend use wechat sandbox account, untest in product account.
WECHAT_APPID=        # wechat appID
WECHAT_SECRET=       # wechat appsecret
WECHAT_TOKEN=        # wechat token(option)
WECHAT_AES_KEY=      # wechat aes_key(option)
WECHAT_USER_OPENID=  # wechat user OPENID for receive wechat notice
WECHAT_TEMPLATE=     # wechat notice feature template id
WECHAT_DEBUG=        # enable wechat debug notice, default false

# sync post to wordpress
sync_wordpress= # enable sync post to wordpress

Dependence

version: 5.5

markdown to HTML package

easywechat laravel package

qiniu php sdk

markdown web editor

backend UI template

javascript framework

frontend code highlight

markdown github style css component

frontend ui framework

wordpress post sync tools

License

This blog is licensed under the GNU General Public License v3.0

Contribution

Wecome issue, wecome star, any idea or problem can send email to me or contact me by any way.