All Projects → LeetaoGoooo → peach-blog

LeetaoGoooo / peach-blog

Licence: MIT license
🍑 a blog based on flask

Programming Languages

python
139335 projects - #7 most used programming language
SCSS
7915 projects

Projects that are alternatives of or similar to peach-blog

hexo-leancloud-counter-security
A plugin to fix a serious security bug in leancloud visitor counter for NexT.
Stars: ✭ 31 (-43.64%)
Mutual labels:  hexo
hexo-tag-instagram
Embed instagram photo and movie tag plugin for Hexo.
Stars: ✭ 23 (-58.18%)
Mutual labels:  hexo
oalieno.github.io
oalieno.github.io/
Stars: ✭ 22 (-60%)
Mutual labels:  hexo
blog
«Pinlyu» – Leirock's Blog
Stars: ✭ 34 (-38.18%)
Mutual labels:  hexo
hexo-theme-chiangmai
A theme of Hexo Inspired by Chiang-Mai City 🇹🇭
Stars: ✭ 32 (-41.82%)
Mutual labels:  hexo
hexo-generator-searchdb
Seach data generator plugin for Hexo.
Stars: ✭ 44 (-20%)
Mutual labels:  hexo
blog
Source code of my blog
Stars: ✭ 64 (+16.36%)
Mutual labels:  hexo
butterfly-plugins
No description or website provided.
Stars: ✭ 36 (-34.55%)
Mutual labels:  hexo
houko
xiaomo's blog,please star if you like ✨-share technology and study record,about life。https://blog.xiaomo.info (personal share)
Stars: ✭ 3 (-94.55%)
Mutual labels:  hexo
iOS-MySQL-Client
iOS MySQL client
Stars: ✭ 26 (-52.73%)
Mutual labels:  mysql-database
flask-vue-project-seed
SPA quick start using Python Flask and Vue.js. Containerized with Docker.
Stars: ✭ 27 (-50.91%)
Mutual labels:  mysql-database
hexo-douban-card
在hexo文章中插入豆瓣读书,豆瓣电影,豆瓣音乐组件
Stars: ✭ 56 (+1.82%)
Mutual labels:  hexo
hexo-theme-miracle
🎉 A clean and lightweight single-column theme for Hexo.
Stars: ✭ 50 (-9.09%)
Mutual labels:  hexo
Library-Spring
The library web application where you can borrow books. It's Spring MVC and Hibernate project.
Stars: ✭ 73 (+32.73%)
Mutual labels:  mysql-database
hexo-theme-minima
An undoubtedly simple and lightweight dark/light theme for Hexo.js
Stars: ✭ 161 (+192.73%)
Mutual labels:  hexo
HIMS
Hospital Information Management System create using Node Js
Stars: ✭ 41 (-25.45%)
Mutual labels:  mysql-database
vmdashboard
web-based open source virtualization management interface for QEMU and KVM virtual machines
Stars: ✭ 66 (+20%)
Mutual labels:  mysql-database
action-hexo
No description or website provided.
Stars: ✭ 28 (-49.09%)
Mutual labels:  hexo
hexo-bilibili-bangumi
hexo 番剧页面插件,可选数据源:Bilibili, Bangumi
Stars: ✭ 252 (+358.18%)
Mutual labels:  hexo
hornhuang.github.io
🚀This is my personal homepage, it my honor to show yours my interstind life, best wishes to your ~
Stars: ✭ 12 (-78.18%)
Mutual labels:  hexo

Peach-Blog

Build Status codecov

Peach Blog 是基于 Flask 的博客平台,目的是为了提供一种更加纯粹的内容写作与发布平台,通过几个简单命令,可以帮助用户无痛的从 Hexo 切换到 Peach Blog

Features

  1. support export hexo's posts into database
  2. support export database's posts into hexo-format markdown file
  3. add new dashboard base on flask-admin
  4. add markdown support to flask-admin

Screenshots

Usages

environment

pip install -r requirements.txt

init database

before you execute following lines,make sure you have already create database

flask shell

you'are supposed to see, something like follow one:

Python 3.6.5
App: app [development]
Instance: path\to\instance

then

>>> from app import db
>>> db.create_all()
# create super user
>>> from app.models import User
>>> user = User(user_name='your name',password='your password', level=1)
>>> db.session.add(user)
>>> db.session.commit()

export hexo's posts into database

if you want to export hexo posts into database, change the value of config.py on line 14 (where the hexo's posts store),then

flask hexo g 

clean the posts,just use flask hexo c simplely

create log dir

mkdir logs

run the server

flask run

export database's posts into hexo-format markdown files

login in peach-blog admin, and step into post list pages, and then (see the picture)

the expoted post will generate under the directory where you set in config.py

About Dev

欢迎各种 PR.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].