initial commit
commit
40bbb7972e
@ -0,0 +1,3 @@
|
||||
node_modules/
|
||||
package-lock.json
|
||||
*.*.swp
|
||||
@ -0,0 +1,14 @@
|
||||
const express = require("express");
|
||||
|
||||
const app = express();
|
||||
const PORT = 3030;
|
||||
|
||||
app.use(express.json());
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
res.send("Sensor Logger API is running");
|
||||
});
|
||||
|
||||
app.listen(PORT, () => {
|
||||
console.log(`Server listening on port ${PORT}`);
|
||||
});
|
||||
@ -0,0 +1,20 @@
|
||||
{
|
||||
"name": "sensor_logger_api",
|
||||
"version": "1.0.0",
|
||||
"description": "",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
"test": "echo \"Error: no test specified\" && exit 1",
|
||||
"start": "node index.js",
|
||||
"dev": "nodemon index.js"
|
||||
},
|
||||
"keywords": [],
|
||||
"author": "",
|
||||
"license": "ISC",
|
||||
"dependencies": {
|
||||
"express": "^5.3.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"nodemon": "^3.1.14"
|
||||
}
|
||||
}
|
||||
Loading…
Reference in New Issue