banah
Version:
Start up your Node.js projects with ease. No need to install express, cors, or the basic things you need for a Node.js project. We got you covered.
17 lines (16 loc) • 579 B
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const express_1 = __importDefault(require("express"));
const dotenv_1 = __importDefault(require("dotenv"));
dotenv_1.default.config();
const app = (0, express_1.default)();
const PORT = process.env.PORT || 3000;
app.get("/", (req, res) => {
res.send("Hello from Banah!");
});
app.listen(PORT, () => {
console.log(`Server is running on port ${PORT}`);
});