/*servidor.ts*/
import express = require('express');
const app: express.Application = express();
app.get('/', function (req, res) {
res.send('Hola, mundo!');
});
app.listen(5000, function () {
console.log('Estamos escuchando desde el puerto 5000');
});
Typescript + Express JS
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.