microblog:微博--BAE版

#Microblog - BAE 《node.js开发指南》的Mircroblog案例应用,能完美部署到BAE上运行.在部署到BAE上遇到2个问题,都完美解决了. 2个问题db auth mongodb数据库的用户名和密码验证参考了BAE的mongodb连接的node.js代码,轻松能解决session使用mongodb来存储session,此操作是长连接,BAE不允许长连接,会到出现500或501错误在多番查找和研究,把connect-mongo和session-mongoose两个模块的github文档来了一偏又一遍来研究如何短连接或断开后重连.尽管我一开始用connect-mongo,都改成用session-mongoose,因为看到session-mongoose有interval参数但使用session-mongoose的连接数据库方式是mongodb://loc
zip
microblog-master.zip 预估大小:34个文件
folder
microblog-master 文件夹
folder
public 文件夹
folder
images 文件夹
file
logo.png 3KB
folder
stylesheets 文件夹
file
bootstrap.min.css 97KB
file
bootstrap-theme.min.css 13KB
file
bootstrap-theme.css 14KB
file
bootstrap.css 120KB
file
style.css 897B
folder
fonts 文件夹
file
glyphicons-halflings-regular.ttf 40KB
file
glyphicons-halflings-regular.eot 20KB
file
glyphicons-halflings-regular.svg 61KB
file
glyphicons-halflings-regular.woff 23KB
folder
javascripts 文件夹
file
jquery.min.js 91KB
file
bootstrap.js 57KB
file
bootstrap.min.js 27KB
folder
views 文件夹
file
reg.ejs 1KB
file
say.ejs 451B
file
index.ejs 655B
file
userlist.ejs 52B
file
posts.ejs 381B
file
user.ejs 160B
file
template.ejs 3KB
file
login.ejs 729B
file
admin.ejs 185B
folder
models 文件夹
file
user.js 2KB
file
post.js 2KB
file
db.js 344B
file
app.conf 781B
file
app.js 3KB
file
LICENSE 10KB
file
README.md 2KB
file
settings.js 295B
folder
routes 文件夹
file
user.js 107B
file
userlist.js 164B
file
index.js 3KB
file
package.json 445B
zip 文件大小:191.08KB