Initial project setup (node)

This commit is contained in:
ufo6849
2026-03-19 19:44:54 +09:00
parent 7a4aacb0c3
commit c7690a0fd8
7 changed files with 214 additions and 0 deletions

15
server.js Normal file
View File

@@ -0,0 +1,15 @@
const express = require('express');
const app = express();
const PORT = process.env.PORT || 3000;
app.get('/', (req, res) => {
res.json({ app: 'test-node', status: 'running', time: new Date().toISOString() });
});
app.get('/health', (req, res) => {
res.json({ status: 'ok' });
});
app.listen(PORT, '0.0.0.0', () => {
console.log(`test-node running on port ${PORT}`);
});