在安装前请先在你的server上安装好mongoDB,并启动
git clone https://github.com/yuyouwen/shuoba.git
cd shuoba && npm install
打开bin/config.js文件,修改mongoDB地址和collection地址
var shuobaConfig = {
MongoClient: MongoClient,
DB_CONN_STR : 'mongodb://localhost:27017/iyuxy',
collection: 'shuoba'
};
打开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
https://localhost:3001/demos.html