Based on blog VienBlog Laravel support of markdown

Blog-Laravel #
Vien Blog - based on a laravel5.8 development, support markdown editing and drag and drop to upload pictures blog system, SEO-friendly

## cheap domain name

[Namesilo] (https://viencoding.com/article/187) super-cheap, less than six knives a year, renewals are also cheaper, a lot cheaper than some of the domestic registered yet.

 

## low-cost server

[Bandwagon] ( https://viencoding.com/bandwagonhost ) discount code is updated daily

[Vultr] ( https://viencoding.com/a rticle / 114) to send the new user registration tool 50

 

## bloggers website

- [VienBlog] (https://vienblog.com)
- [Here are a few little secret] (https://viencoding.com)

## project Github Address

Github: [laravel-blog](https://github.com/luvvien/laravel-blog) ,欢迎Star。

## blog highlights

- interface is simple and adaptation pc and mobile, has a good visual experience
- Support for markdown, and you can drag or paste upload a picture, split-screen real-time preview
- SEO friendly: support custom paper slug, support title Meta, the Description, keywords
- custom navigation, custom sidebar, ready to get rid of unnecessary modules
- support labeling, sorting, top, sharing, Friends of the chain blog basic attributes
- support for AdSense
- support for Baidu automatic and manual link submission submit link

## blog show

Demo Demo Address: [This is a DEMO] (https://vienblog.com)

### Backstage management

#### Article list

The main operational inquiries, creation, editing, top, Delete (soft delete)
[Laravel Markdown Blog Admin list of articles - VienBlog]! (/ Storage / images / article / 20190412 / LIn93Jcw8cOmxSKRLEVYyDolRcVbxqS2AAXQiNOg.png)

#### authoring and editing

Creation and editing pages
! [Laravel Markdown Blog Admin to add a new article - VienBlog] (/ storage / images / article / 20190406 / G8zTereQphzI0ZO3qlpl58z8Ufz0uPfPHfP2WrtL.png)

Markdown Editor: Paste supports drag and drop upload pictures, preview, full screen, split screen preview
[Laravel Markdown Blog Admin Markdown editor - VienBlog] (/ storage / images / article / 20190406 / WtKU7tsblKvBMgaFROx3WFdwmD6GPEtZcw2tY1QG.png)!

### front-end display

Referring [This is a DEMO] (http://39.106.108.23)

> Read Demo, if you still feel decent, want to use a try with it, and quickly Kanwo down.

---

## Use blog

### Installation

##### Get the source

```
git clone [email protected]:luvvien/laravel-blog.git
```

After ##### into the project directory, use `composer` install dependencies

```
composer install
```

##### generates a file `.env`

```
cp .env.example .env
```

##### generated key

```
php artisan key:generate
```

##### create a MySQL database `vienblog`, character set uses` utf8mb4`, `utf8mb4_general_ci`

##### edit `.env` file` vim .env`, modify the MySQL database connection configuration, set `DB_HOST`,` DB_PORT`, `DB_USERNAME`,` DB_PASSWORD` into your database configuration.

```
[...]

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=vienblog
DB_USERNAME=root
DB_PASSWORD=root

[...]
```

##### data migration and data fill

```
php artisan migrate
php artisan db:seed
```

Create a soft link storage #####

```
php artisan storage:link
```

##### Set directory permissions

```
chmod -R 755 storage/
chown -R www-data:www-data storage/
```

### use

You can choose a temporary preview, you can also use Nginx Deployment Services

#### a temporary preview

```
php artisan serv
```

Open a browser to access `127.0.0.1: 8000`

#### using Nginx

Nginx configuration, `root` point` public` directory of the project, check with `pwd` directory, and change your directory, do not directly copy paste.

```
root /app/laravel-blog/public;
```

Full configuration

`` `
Server {
the listen the default_server 8088;
the listen [::]: the default_server 8088;

the root / Apps / vien_blog / public;
index the index.php index.html index.htm;
server_name _;

LOCATION / {
try_files $ $ URI URI / / ? $ index.php the QUERY_STRING;
}
LOCATION ~ \ .php $ {
the include Snippets / FastCGI-php.conf;
fastcgi_pass UNIX: /run/php/php7.2-fpm.sock; # FPM, the different paths will be different because the version here please change you, do not know the path may execute php-fpm will show
# fastcgi_pass 127.0.0.1:9000; # cgi
}
}
`` `

Open a browser to access `127.0.0.1: 8088`

#### background login

- Address `/ admin`
- the default admin account management is` vien @ byteinf.com` password is `vienblog`, the administrator can modify the information into the console

#### Baidu using automatic push and push initiative

Please configure in the `config / vienblog.php` comment in accordance with the relevant information is automatically pushed when pushing web access, the initiative to push the code will not execute the following link to submit submitted to Baidu

`` `
Included in the php artisan Push: to Baidu
` ``

## discussion groups

- QQ is permanently sealed! Tencent ... garbage
- micro letter: luvvien

## contact me

Email: [email protected]

## License

- Use [Vien Blog] (https://vienblog.com) build the application, you must be retained ** Powered by Vien Blog ** words and [Links] in the footer (https://vienblog.com)
- In compliance with the above the case of the rules, you can enjoy the authorization is equivalent to `MIT License` agreement.
- Use [Vien Blog] (https://vienblog.com) and comply with the protocol users can enjoy [Vien Blog] (https://vienblog.com) of the blog navigation, contact me to add your blog address to the [ Vien Blog] (https://vienblog.com) Web site navigation.

Guess you like

Origin www.cnblogs.com/luvvien/p/laravel58-markdown-blog.html