nodejs-template / index.js
tomayac's picture
Update index.js
9fafc41 verified
raw
history blame
316 Bytes
import express from 'express';
const app = express();
const port = 7860;
console.log(require('express/package.json').version)
app.get('/', (req, res) => {
res.send(`Running Node.js ${process.version} with Express.js`);
});
app.listen(port, () => {
console.log(`Example app listening on port ${port}`);
});