simple node app to test

This commit is contained in:
tusuii
2026-03-11 22:25:37 +05:30
commit 9c8f811cd4
8 changed files with 947 additions and 0 deletions

16
index.js Normal file
View File

@@ -0,0 +1,16 @@
const express = require('express');
const dotenv = require('dotenv');
dotenv.config();
const app = express();
const port = process.env.PORT || 3000;
const message = process.env.MESSAGE || 'Hello, World!';
app.get('/', (req, res) => {
res.send(message);
});
app.listen(port, () => {
console.log(`Application is running on http://localhost:${port}`);
});