poetryclub backend
1.0.0
The back-end page and back-end code of Shici Xiaozhu's website are based on laravel + vue.js.
The front page of Shici Xiaozhu
laravel5.4 + passport + vue2 + element-ui + axios + stylus
git clone https://github.com/DragonFlyXD/poetryclub-backend
cd poetryclub-backend
composer install
php artisan migration
chmod -R 777 storage
/**
* 将生成的 ID 和 Secret 添加进 .env 文件中
* 如:
* PASSWORD_CLIENT_ID=3
* PASSWORD_CLIENT_SECRET=OdIzVLnICs7dXYz3QEe9xeo1ITr2ugpdrwR1xvGb
**/
php artisan passport:client --passport
Configure connection database information, using mysql by default.
# .env
DB_DATABASE=your_database
DB_USERNAME=your_username
DB_PASSWORD=your_password
To configure email sending information, use sendclound .
# .env
MAIL_FROM_ADDRESS=your_address // 如:[email protected]
MAIL_FROM_NAME=your_name // 如:诗词小筑
SEND_CLOUD_USER=your_user
SEND_CLOUD_KEY=your_key
Configure search function information, using algolia .
# .env
ALGOLIA_APP_ID=your_id
ALGOLIA_SECRET=your_secret
Configure image storage function information and use Qiniu Cloud .
# .env
QINIU_ACCESS_KEY=your_access_key
QINIU_SECRET_KEY=your_secret_key
QINIU_BUCKET=your_bucket
QINIU_DOMAIN=your_domain

