gblog is an easy blog, built with Laravel and Vue.js. https://godruoyi.com
gblog is easy blog build with laravel5.5
and vue2.*
, The front-end
styles from laravel-news, Back-end
styles from voyager.
- Beautiful dashboard (Voyager, The Missing Laravel Admin)
- Categorize manage
- Manage users and articles
- Multi-language switching
- Markdown Editor
- PHP >= 7.0.0
- Node >= 6.x
- OpenSSL PHP Extension
- PDO PHP Extension
- Mbstring PHP Extension
- XML PHP Extension
go to https://godruoyi.com
git clone https://github.com/godruoyi/gblog
or
git clone https://github.com/godruoyi/gblog.git
Install laravel
framework dependent
composer install
cp .env.example .env
Edit the .env
file and set the database
or api
config. By default, we use ADMIN_DOMAIN
to represent the management domain name, use HOME_DOMAIN
to represent the home domain name.
php artisan gblog:install
The command will run the
migrate
command, if you whant generate test data, you can append--test
option on command end.
php artisan gblog:install --test
You can run the following command to generate an administrator account, he will prompt you to complete step by step.
php artisan gblog:adduser
You can login management background to $ADMIN_DOMAIN/login.
Install the front-end environment dependent.
npm install
Or
yarn install
change /resources/assets/js/config.js
setting:
export const ApibaseURI = (process.env.NODE_ENV === 'production'
? 'https://api.godruoyi.com/'
: 'http://api.godruoyi.test/')
export const AcceptHerader = 'application/vnd.godruoyi.v1+json'
Next, you can start compiling js
file.
npm run dev
//or
npm run watch-poll
//or
npm run prod
The project is open-sourced software licensed under the MIT license.