Skip to content
This repository has been archived by the owner on Feb 19, 2021. It is now read-only.

peento/peento-blog

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

peento-blog

一个基于 peento 框架的博客系统。 peento-blog实际上是一个peento插件,通过以下方式使用:

1、安装依赖模块:

$ npm install peento peento-blog

2、创建MySQL表结构: 参考文件 install/tables.sql

4、新建配置文件 config.js

var config = exports;

// 是否开启调试模式
config.debug = true;

// 监听端口
config.port = 3000;

// MySQL数据库配置
config.mysql = {
  host: '127.0.0.1',
  port: 3306,
  user: 'peento',
  password: 'peento:ooxx=fuck',
  database: 'peento',
  pool: 5
};

5、新建启动文件 app.js

var peento = require('peento');

var app = peento(require('./config'));

// 载入peento-blog插件
app.use('blog');

app.start();

6、启动程序:

$ node app

7、打开URL: http://127.0.0.1:3000

peento-blog提供了以下服务:

授权协议

The MIT License

About

基于peento框架的博客系统

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published