mirror of
https://github.com/aleleba/run-app-from-cdn.git
synced 2025-04-11 08:17:49 -06:00
18 lines
690 B
JavaScript
18 lines
690 B
JavaScript
"use strict";
|
|
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"));
|
|
const index_1 = require("./routes/index");
|
|
dotenv_1.default.config();
|
|
const app = (0, express_1.default)();
|
|
const PORT = process.env.PORT || 3000;
|
|
app.use(express_1.default.json());
|
|
app.use(express_1.default.urlencoded({ extended: true }));
|
|
(0, index_1.setRoutes)(app);
|
|
app.listen(PORT, () => {
|
|
console.log(`Servidor corriendo en http://localhost:${PORT}`);
|
|
});
|