From e6435a0f5a4c7eab010ce3dcdd2572f2a4a7667a Mon Sep 17 00:00:00 2001 From: Lucas Tettamanti <757326+lkzwieder@users.noreply.github.com> Date: Thu, 1 Jan 2026 20:02:08 -0300 Subject: [PATCH] first commit --- index.js | 18 ++++++++++++++++++ package.json | 21 +++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 index.js create mode 100644 package.json diff --git a/index.js b/index.js new file mode 100644 index 0000000..9dc3c1c --- /dev/null +++ b/index.js @@ -0,0 +1,18 @@ +"use strict"; + +const express = require("express"); + +const app = express(); +const PORT = process.env.PORT || 3000; + +app.use(express.json()); + +app.get("/health", (_req, res) => { + res.json({ status: "ok" }); +}); + +app.listen(PORT, () => { + // Registrar puerto para facilitar el seguimiento en logs. + console.log(`Servidor escuchando en http://localhost:${PORT}`); +}); + diff --git a/package.json b/package.json new file mode 100644 index 0000000..3759825 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "botino", + "version": "1.0.0", + "description": "API base con Express", + "main": "index.js", + "type": "commonjs", + "scripts": { + "start": "node index.js", + "dev": "nodemon index.js" + }, + "keywords": [], + "author": "", + "license": "MIT", + "dependencies": { + "express": "^4.19.2" + }, + "devDependencies": { + "nodemon": "^3.0.3" + } +} +