@EnriqueDiaz/

Client Server example @ HC MDE

Nodejs

Client Server example @ HC MDE

fork
loading
Files
  • index.js
  • package-lock.json
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
const express = require('express');

const app = express();

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

app.get('/quechimbamedallo', (req, res) => {
  res.send('¡Que chimba medallo app!')

});

app.listen(3000, () => {
  console.log('server started');
});
node v10.16.0