diff options
-rw-r--r-- | app.js | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -4,7 +4,7 @@ const express = require('express'); const bodyParser = require('body-parser'); const app = express(); -const PORT = 4000; +const PORT = 7777; // set the public folder to public acess and added a body parser app.use(express.static('public')); @@ -25,5 +25,4 @@ app.get('/visit', visit); app.post('/search', search); // app start -app.listen(PORT); -console.log('Server is listening on port ' + PORT); +app.listen(PORT);
\ No newline at end of file |