Skip to content

iyuxy/shuoba

Repository files navigation

shouba

travis coverity

A useful comment system for blog or homepage

Overview

overview

Features

  • 跨终端的评论框&评论列表样式
  • 留言按层级展示
  • 评论和回复邮件提醒,让你时刻掌握博客上动态
  • 同时支持http和https

Quick Start

同时支持MongDB和SQLite,可以根据需要选择合适的类型,本文档以使用SQLite为例,查看MongDB使用

第一步:下载代码

 git clone https://github.com/yuyouwen/shuoba.git

第二步:安装依赖

cd shuoba && npm install

第三步:修改基础配置

打开bin/customConfig.js文件,修改站点地址(url)和邮件(personEmail)相关配置

var customConfig = {
    // 网站地址
    url: 'https://www.iyuxy.com',
    title: '喻小右',
    poweredby: '喻小右正在使用说吧',
    // 接受邮件通知邮箱
    personEmail: '962608051@qq.com',
    sendEmail: true,
    // 邮件配置
    mail: {
        from: 'shuoba@iyuxy.com'
        // 如不提供,将使用node启动邮件程序
        options: {
        	host: 'smtp.exmail.qq.com',
            port: 25,
            auth: {
            	// qq邮箱地址
               	user: '96232**222@qq.com', 
               	// qq邮箱密码
                pass:  '****'
            }
        }
    }
};

第四步:启动应用

npm start

第五步:在浏览器中打开demo示例

https://localhost:3001/demos.html