Skip to content
用nodejs、express、mongodb搭建的个人网站
JavaScript CSS HTML
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
controller
models
operator
public
views
README.md
admin-router.js
app.js
config.js
multerUtil.js
package-lock.json
package.json
web-router.js

README.md

myblog

闲得无聊,想做一个为自己收集整理的资源方便以后查阅的网站。会一点前端技能,以前做淘客的时候用过很多CMS系统,大多是PHP的。反正闲着也是闲着就干脆用了NODEJS。从零开始,花了20来天时候算是基本成型,分享出来大家一起学习交流。

特点

只会皮毛技能,初学者一看就明白,高手一看就知道bug,清晰明了。

在线演示

http://www.tensweets.com (这里就是用本套搭建的)

node+express+mongodb

  • "body-parser": "^1.18.3",
  • "connect-mongo": "^2.0.1",
  • "cookie-parser": "^1.4.3",
  • "ejs": "^2.6.1",
  • "express": "^4.16.3",
  • "express-favicon": "^2.0.1",
  • "express-session": "^1.15.6",
  • "jquery": "^3.3.1",
  • "markdown-it": "^8.4.2",
  • "moment": "^2.22.2",
  • "mongoose": "^5.2.7",
  • "multer": "^1.3.1",
  • "serve-favicon": "^2.5.0",
  • "sha1": "^1.1.1",
  • "validator": "^10.5.0"

本地查看方法

# git clone git@github.com:webskys/myblog.git
# cd myblog
# npm install
# node app.js
# localhost:3000
# localhost:3000/admin

进入后台自己添加一个账号吧,我也不知道怎么初始化一个管理员

You can’t perform that action at this time.