peento-blog

0.0.1 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i peento-blog

Weekly Downloads

1

Version

0.0.1

License

MIT

Last publish

Collaborators

  • leizongmin