Code Monkey home page Code Monkey logo

yublog's Introduction

YuBlog

介绍

使用文档

功能强大的个人博客,功能齐全的管理后台,简洁大气的前端页面。 支持markdown文章编辑,代码高亮以及优雅美观的评论栏。

...

安装

$ git clone [email protected]:yokonsan/yublog.git  # 下载项目
$ cd yublog
$ pip install -r requirements.txt  # 安装依赖

环境准备

安装mysql数据库,如需启用redis缓存,需安装redis

缓存选项:

  • simple: 使用本地Python字典缓存,非线程安全。
  • redis: 使用Redis作为后端存储缓存值
  • filesystem: 使用文件系统来存储缓存值

配置文件 yublog/config.py

私密环境变量配置文件 .env

启动

$ flask init-db  # 初始化数据库
$ flask deploy  # 生成默认数据
$ flask run  # 启动

默认地址:127.0.0.1:5000

管理后台地址:127.0.0.1:5000/admin

账户密码:

账户:如未配置,默认 yublog
密码:如未配置,默认 password

Docker

$ docker-compose up -d

默认地址:127.0.0.1:9001

管理后台地址:127.0.0.1:9001/admin

账户密码:

账户:如未配置,默认 yublog
密码:如未配置,默认 password

停止运行:

$ docker-compose down

查看日志:

$ docker-compose logs  # 查看总的容器日志
$ docker-compose logs yublog_web  # 查看web应用运行日志

安装示例

yublog-installation-example

Enjoy it.

yublog's People

Contributors

yokonsan avatar dependabot[bot] avatar freedeaths avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.