node.js - Referencing the App server -


New to node and build an ExpressJS app.

An HTTP server and port reference to an ExpressJS route, how can I do this?

Cheers.

If you create it like

  var express = expected ( 'Express'), app = express (), server = ('http') is required. Server (app);   

You can use server IP and port

  server.address () // {address: '0.0.0.0', family : 'IPv4', Port: 3000}    

Comments

Popular posts from this blog

Out of index C/C++ -

regex - PatternSyntaxException: while using String.ReplaceAll function in java? -

java - Projects which are accessed via multiple (different) IDEs: Ant or Maven? -