qiao / coffee-box Goto Github PK
View Code? Open in Web Editor NEWA blog engine built upon Node.js, Express, MongoDB and CoffeeScript.
Home Page: http://66.228.62.171:3000
A blog engine built upon Node.js, Express, MongoDB and CoffeeScript.
Home Page: http://66.228.62.171:3000
I cannot open http://66.228.62.171:3000/ , the demo page stated in README.md
what is the reason?
Hi, some of controllers are designated to be used with xhr, but it will be a barrier for implementing third-party themes. So I propose to use a convention to make them work under both XHR and browser POST request:
res.redirect 'back'
if doneif req.xhr
res.statusCode = 400
res.write err.message
res.end()
else
res.flash 'error',err.message
res.redirect 'back'
这个网站打不开
Here is the stack trace:
at Function.app.configure.app.use.express.errorHandler.dumpException (/Users/wukaixing/GitHub/coffee-box/config/config.coffee:28:25)
at Function.app.configure (/Users/wukaixing/GitHub/coffee-box/node_modules/express/lib/application.js:396:61)
localhost:coffee-box liuzhengming$ node index.js
coffee-box server listening on port 3000 in development mode
/Users/liuzhengming/github/coffee-box/node_modules/mongoose/lib/query.js:1312
if (!Array.isArray(arg[i])) throw new Error("Invalid sort() argument.");
^
Error: Invalid sort() argument.
at Query.sort (/Users/liuzhengming/github/coffee-box/node_modules/mongoose/lib/query.js:1312:41)
at Query.setOptions (/Users/liuzhengming/github/coffee-box/node_modules/mongoose/node_modules/mquery/lib/mquery.js:183:20)
at Query.setOptions (/Users/liuzhengming/github/coffee-box/node_modules/mongoose/lib/query.js:859:32)
at Query (/Users/liuzhengming/github/coffee-box/node_modules/mongoose/node_modules/mquery/lib/mquery.js:55:10)
at new Query (/Users/liuzhengming/github/coffee-box/node_modules/mongoose/lib/query.js:65:10)
at Function.find (/Users/liuzhengming/github/coffee-box/node_modules/mongoose/lib/model.js:938:12)
at /Users/liuzhengming/github/coffee-box/app/models/post.coffee:107:20
at Object. (/Users/liuzhengming/github/coffee-box/app/models/post.coffee:89:14)
at Object._onImmediate (/Users/liuzhengming/github/coffee-box/node_modules/mongoose/node_modules/mquery/lib/utils.js:137:16)
at processImmediate as _immediateCallback
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.