full stack server.js
import express from 'express';
const app = express();
const PORT = 3000;
// Basic route
app.get('/', (req, res) => {
res.send('Hello, World!');
});
// Start the server
app.listen(PORT, () => {
console.log(`Server is running on http://localhost:${PORT}`);
});
Comments
Post a Comment