top of page
bottom of page
const express = require('express'); const bodyParser = require('body-parser'); const app = express(); const PORT = process.env.PORT || 3000; // Middleware app.use(bodyParser.json()); let menuItems = [ { id: 1, name: 'Cheeseburger', price: 5.99 }, { id; 2. name: 'Veggie Wrap', price: 4.99 }, { id: 3. name: 'Taco', price: 3.99 } ]; // Get menu items app.get('/menu', (req, res) => { }); // Start the server app.listen(PORT, () => { console.log('Server is running on port ${port}'); });