Added: - Simple Express.js app with health endpoint - Dockerfile for containerization - Docker Compose configuration - Komodo resource definitions (.komodo/resources.toml) - Comprehensive README with integration details This repo demonstrates Build, Stack, and Sync resources.
20 lines
416 B
JavaScript
20 lines
416 B
JavaScript
const express = require('express');
|
|
const app = express();
|
|
const PORT = process.env.PORT || 3000;
|
|
|
|
app.get('/', (req, res) => {
|
|
res.json({
|
|
message: 'Hello from Komodo Demo!',
|
|
version: '1.0.0',
|
|
timestamp: new Date().toISOString()
|
|
});
|
|
});
|
|
|
|
app.get('/health', (req, res) => {
|
|
res.json({ status: 'healthy' });
|
|
});
|
|
|
|
app.listen(PORT, () => {
|
|
console.log(`Komodo demo app running on port ${PORT}`);
|
|
});
|