13 lines
232 B
JavaScript
13 lines
232 B
JavaScript
import express from 'express';
|
|
|
|
const app = express();
|
|
const port = 3000;
|
|
|
|
app.get('/', (req, res) => {
|
|
res.send('Server is running');
|
|
});
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Server running on http://localhost:${port}`);
|
|
});
|