first commit

This commit is contained in:
Lucas Tettamanti
2026-01-01 20:02:08 -03:00
commit e6435a0f5a
2 changed files with 39 additions and 0 deletions

18
index.js Normal file
View File

@@ -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}`);
});

21
package.json Normal file
View File

@@ -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"
}
}