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

java - ImportError: No module named py4j.java_gateway -

python - Receiving "KeyError" after decoding json result from url -

.net - Creating a new Queue Manager and Queue in Websphere MQ (using C#) -