Files
hello-world/index.js
T
host-db 354e691ceb
CI/CD Pipeline / lint-test (push) Failing after 2m5s
CI/CD Pipeline / build-push (push) Has been skipped
CI/CD Pipeline / deploy (push) Has been skipped
feat: initial hello-world app with CI/CD pipeline
2026-06-20 11:57:31 +02:00

16 lines
376 B
JavaScript

const express = require('express');
const app = express();
const PORT = process.env.PORT || 3000;
app.get('/', (req, res) => {
res.json({ message: 'Hello World from Gitea CI/CD!', timestamp: new Date().toISOString() });
});
app.get('/health', (req, res) => {
res.json({ status: 'ok' });
});
app.listen(PORT, () => {
console.log(`Server running on port ${PORT}`);
});