Top "Express" questions

Express is a minimal and flexible Node.

Node.js: socket.io close client connection

How can I close the socket connection on the client side? I am using: socket.io 0.9 node.js 0.10.15 express 3.3.4 i.…

javascript node.js express socket.io
How to set custom favicon in Express?

I recently started working in Node.js and in the app.js file there is this line: app.use(express.…

javascript node.js express favicon
Express-js wildcard routing to cover everything under and including a path

I'm trying to have one route cover everything under /foo including /foo itself. I've tried using /foo* which work for …

node.js express
adding .css file to ejs

im working on node.js(express) with ejs and im not able to include a .css file to it.i …

css node.js express ejs
Express: How to pass app-instance to routes from a different file?

I want to split up my routes into different files, where one file contains all routes and the other one …

node.js express
How to provide a mysql database connection in single file in nodejs

I need to provide the mysql connection for modules. I have a code like this. var express = require('express'), app = …

mysql node.js express node-modules
How to create global variables accessible in all views using Express / Node.JS?

Ok, so I have built a blog using Jekyll and you can define variables in a file _config.yml which …

node.js express sails.js template-engine ejs
Using routes in Express-js

So I'm starting to use Node.js. I saw the video with Ryan Dahl on Nodejs.org and heard he …

node.js url-routing express
Cannot enqueue Handshake after invoking quit

I have implemented the following code: module.exports = { getDataFromUserGps: function(callback) { connection.connect(); connection.query("SELECT * FROM usergps", function(err, …

node.js express
How do I get the domain originating the request in express.js?

I'm using express.js and i need to know the domain which is originating the call. This is the simple …

javascript node.js express