init source
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
// 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, () => {
|
||||
console.log(`The server is running at localhost:${port}`);
|
||||
});
|
||||
Reference in New Issue
Block a user