mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/node-tutorial.git
synced 2026-08-19 20:44:16 +00:00
9 lines
301 B
Plaintext
9 lines
301 B
Plaintext
// This will be our application entry. We'll setup our server here.
|
|
const http = require('http');
|
|
const app = require('../app'); // The express app we just created
|
|
|
|
const port = parseInt(process.env.PORT, 10) || 8000;
|
|
app.set('port', port);
|
|
|
|
const server = http.createServer(app);
|
|
server.listen(port); |