1 2 3 4 5 6 7
const express = require('express'); const app = express(); const PORT = process.env.PORT || 3000; app.listen(PORT, () => console.log(`Server started on port ${PORT}`));