look it is running already, in log book this issue occurs this issue occurs when I have snap of following code, #!/usr/bin/env node const express = require('express'); const app = express(); const port = 3000; app.get('/', (req, res) => { res.send('Hello, Express by exd!22'); }); app.listen(port, () => { console.log(`Server is listening on port ${port}`); }); app.get('/items', (req, res) => { const items = ['Item 1', 'Item 2', 'Item 3']; res.json(items); }); function helloWorld() { setInterval(() => console.log('Hello World from Exd2', new Date().toUTCString()), 1000) }; helloWorld(); But before it, without express and APIs snap was runing properly and showing console.log in logbook #!/usr/bin/env node const express = require('express'); const app = express(); const port = 3000; function helloWorld() { setInterval(() => console.log('Hello World from Exd2', new Date().toUTCString()), 1000) }; helloWorld(); but now let me ask you a question what is this above error about ? and secondly How I can access following routes? like app.get('/items', (req, res) => { const items = ['Item 1', 'Item 2', 'Item 3']; res.json(items); }); if i have 1000 routes written in my code, it will start automatically all routes??? as you said earlier ?
... View more