'use strict'

console.log("Welcome to Chatcat");

'use strict'

const express = require('express');
const app = express();

app.set('port', process.env.PORT || 3000);

app.get('/', (req, res, next) => {
  res.send('<h1>Hello Express!</h1>');
});

app.get('/dashboard', (req, res, next) => {
  res.send('<h1>This is the dashboard page</h1>');
});

app.listen(app.get('port'), () => {
  console.log('Chatchat running on port:' + app.get('port'));
});

Complete lecture 31: add express application and base routing functionalities
Complete lecture 31: add express application and base routing functionalities
