21 lines
437 B
JavaScript
21 lines
437 B
JavaScript
const express = require('express');
|
|
const app = express();
|
|
const PORT = 3000;
|
|
|
|
// Basic middleware
|
|
app.use(express.json());
|
|
|
|
// Simple health check
|
|
app.get('/health', (req, res) => {
|
|
res.json({
|
|
success: true,
|
|
message: 'Test server is running'
|
|
});
|
|
});
|
|
|
|
// Start server
|
|
app.listen(PORT, () => {
|
|
console.log(`🚀 Test server running on port ${PORT}`);
|
|
console.log(`🔗 Health check: http://localhost:${PORT}/health`);
|
|
});
|