Spaces:
Runtime error
Runtime error
| const express = require('express'); | |
| const path = require('path'); | |
| const app = express(); | |
| // Serve static files from the 'public' directory | |
| app.use(express.static(path.join(__dirname, 'public'))); | |
| // ... your other routes and middleware ... | |
| const port = 7860; | |
| app.listen(port, () => { | |
| console.log(`Server running on port ${port}`); | |
| }); |