| const express = require('express'); | |
| const app = express(); | |
| const PORT = process.env.PORT || 7860; | |
| const startTime = Date.now(); | |
| app.get('/', (req, res) => { | |
| const uptimeSeconds = Math.floor((Date.now() - startTime) / 1000); | |
| res.send(`I'm (from node yaaaa) alive for: ${uptimeSeconds} seconds`); | |
| }); | |
| app.listen(PORT, '0.0.0.0', () => { | |
| console.log(`✅ Server running on http://0.0.0.0:${PORT}`); | |
| }); |