Files
FloatApi/bin/www
T
2022-03-07 22:07:57 +07:00

12 lines
374 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, () => {
console.log(`The server is running at localhost:${port}`);
});