Skip to content

Commit cfad3bd

Browse files
committed
adding server.js and build ts
1 parent 866fa22 commit cfad3bd

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

server.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"use strict";
2+
var __importDefault = (this && this.__importDefault) || function (mod) {
3+
return (mod && mod.__esModule) ? mod : { "default": mod };
4+
};
5+
Object.defineProperty(exports, "__esModule", { value: true });
6+
var express_1 = __importDefault(require("express"));
7+
var app = express_1.default();
8+
var PORT = 9898;
9+
app.get('/', function (req, res) {
10+
res.send('Welcome to typescript backend!');
11+
});
12+
app.listen(PORT, function () {
13+
console.log("The application is listening on port http://localhost:" + PORT);
14+
});

0 commit comments

Comments
 (0)