12 lines
230 B
JavaScript
12 lines
230 B
JavaScript
import express from 'express';
|
|
|
|
const app = express();
|
|
const port = 3000;
|
|
|
|
app.use(express.static('public'));
|
|
app.use(express.json());
|
|
|
|
app.listen(port, () => {
|
|
console.log(`Server listening at http://localhost:${port}`);
|
|
});
|