Tagged Questions

Express is a MVC framework for Node.js, also called ExpressJS. Main features include routing, templates, view helpers and high performance. Express is based on the connect middleware. The official website of Express is http://expressjs.com.

learn more… | top users | synonyms (1)

0
votes
0answers
13 views

Node.js DRY with MySQL clients

so here's a quick question. Basically I'm making an express application that connects to a MySQL server. Pretty simple. But how do I stop adding all the connection code between files so I don't have ...
1
vote
2answers
24 views

Nodejs Expressjs URI characters

Is there a way to restrict allowed uri characters in Expressjs. like set a variable of characters: allowed_uri_chars = 'a-zA-Z0-9'; etc
1
vote
2answers
26 views

How can use mongoose/express with ringojs

I have tried nodejs for a month, but finally, I'm don't like asynchronous-style programming. I just found ringojs which seems synchronous-style. I wonder if I can use mongoose and express with it?
2
votes
1answer
26 views

Upload Image from triggerio to express.js fails

I'm trying to post a file from a mobile triggerio app to a nodejs service. The request hits the post method, but the fails because the form object is null in the request obj. (TypeError: Cannot call ...
2
votes
1answer
32 views

Proper way to get data from javascript callback

I'm converting an api server from a plain nodejs script to one using the express framework for much better stability. One of my problems is the fact that you can't return values from a callback ...
2
votes
3answers
66 views

Javascript making the return of a function into a variable

How can I make this app.locals.user to be the return value instead of a function? Right now I have to run app.locals.user().name. How can I make it so I can just run app.locals.user.name? ...
1
vote
1answer
17 views

How to obtain Express sessionID on .findOrCreateUser of Everyauth?

I try to obtain Express sessionID on .findOrCreateUser of Everyauth. Backgroud of this question: Basically, I try to integrate Socket.IO and Express, and reading socket.io and Express. Tying it all ...
1
vote
1answer
33 views

What is the correct way to use express with a second div that needs data

I have the following layout.jade file: !!! 5 html head body #left #leftbody #center #centerbody #container!= body #right ...
3
votes
1answer
28 views

How come app.address() is null when HOST is set in app.listen(PORT, HOST);

When 127.0.0.1 below is omitted app.address() is not null, but when a host is set, it is null. var express = require('express'), app = express.createServer(); app.use(express.logger()); ...
1
vote
0answers
14 views

Using node-passport with subdomains

I have a node.js app using express connect-redis to store sessions. I'm also using vhost for a password protected user app: app.use(express.vhost('users.mydomain.com', require('./users/app'))); This ...
1
vote
1answer
20 views

How can I intercept a multipart file stream in Express.js?

Following the example https://github.com/visionmedia/express/blob/master/examples/multipart/app.js Express.js seems to do all the work behind the scenes and saves the file and gives it to you whole. ...
1
vote
1answer
38 views

node.js + express.js + dust.js issues

The quick question: why won't express.js run with dust.js? I know it's not officially supported, but dust.js even has issues with my node.js version. Node won't even start due to require.path issues. ...
1
vote
1answer
19 views

Managing client side scripts with npm

Is it possible with NPM to manage the same dependencies for backend and the client-side scripts? I'm building a node.js application with express. When installing all dependencies, those scripts are ...
1
vote
1answer
14 views

Routers loading in express

I'm interested in loading of my routers in nodejs express application. I saw the two approach: The first is loading an all routers in a boot place of application like as the following: ...
2
votes
3answers
82 views

in nodejs, how to stop a FOR loop until mongodb call returns

Please look at the code snippet below. I have an array of JSON objects called 'stuObjList'. I want to loop thru the array to find specific JSON objects with a certain flag set, and then make a db call ...

1 2 3 4 5 77
15 30 50 per page