hubwiz / example-node Goto Github PK
View Code? Open in Web Editor NEWnode.js example project.
node.js example project.
添加一件商品到购物车后然后结算,结算了之后他的cStatus就变成true了,然后再返回来添加刚才添加的商品就不显示了
否则下载下来,配置mongodb还经常报错,还以为是这个示例程序出错了。我把几个细节记录了下来,提供给需要的人,http://www.jianshu.com/p/33843b74807f
真心下了好多demo,你的终于跑出来了。感谢啊!
but,可能是 nodejs版本问题,我启动的时候报错
express-session deprecated undefined resave option; provide resave option app.js
后来我调整了2个地方:
app.use(session({
secret:'secret',
cookie:{
maxAge:10006030
}, resave: true, saveUninitialized: true
}));
添加了 , resave: true, saveUninitialized: true
依赖的地方:package.json "express-session": "*",
然后跑起来了,真不容易啊(我之前是做web后端的)
app.js line46:原代码 require('./routes')(app);应该修改为require('./routes/index')(app);
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.