简介:含注册、登录功能,可查看,发表,修改,删除文章(增删改有权限限制)。
- 注册、登录
- JWT 处理用户身份信息
- bcrypt 加密用户密码
- nodemailer 发送激活邮件
- 文章CURD
- ejs 服务端渲染
- vue 客户端渲染
- marked、highlight 支持 Markdown
- 数据库 MongoDB
- Node.js v8.x
- MongoDB
安装 MongoDB,推荐使用Docker,创建一个 MongoDB 的容器。
MacOS 用户可参考:MacOS 安装 Docker、MongoDB。
git clone https://github.com/Rushan-Chen/blog.git
复制/src/config-default.js
到同个文件夹(/src
)下,并重命名为config.js
,然后修改config.js
里的配置。
安装依赖包:
npm install
运行开发环境:
npm run dev
build:
npm run build