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

简单版多人博客系统MongoDB+express | My practice of a blog system with express+mongodb

Notifications You must be signed in to change notification settings

YinanZhaoXometry/simple-express-mongo-blog

Repository files navigation

简单版多人博客系统 MongoDB + Express

想做一个自己的博客项目,这个项目作为练手,学习学习项目逻辑。该项目是多人博客系统(评论统计出了点问题,找时间改改),欢迎来踩😃:

项目部署地址🚀:http://blog-practice.herokuapp.com/

安装

  1. 安装依赖:
cd <project-name>
  
npm install
  1. 启动:
npm start

如启动遇到问题可尝试删除 node_modules 文件夹和 package-lock.json 后重复上述步骤。

技术栈:

  • 服务器、路由:express
  • 数据库:MongoDB => Mongoose
  • 头像显示:Gravatar
  • Markdown格式转换成HTML:marked
  • 部署服务器:Heroku

功能:

  • 支持注册、登陆
  • 支持发表文章、给文章加标签
  • 支持上传图片
  • 支持阅读、评论统计
  • 支持用markdown发表文章和评论
  • 支持按照标题搜索文章。

需优化:

  • 路由代码过于臃肿。
  • 评论计数不对。

首页:

文章页:

用户页:

登陆/注册:


practice-express-mongo-blog

My practice of a blog system with express+mongodb

How to use:

  1. Install dependencies:
cd <project-name>
  
npm install
  1. Start:
npm start

If not working properly, try deleting: package-lock.json file node_modules folder, and npm install again.

About

简单版多人博客系统MongoDB+express | My practice of a blog system with express+mongodb

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published