Skip to content
Snippets Groups Projects
Select Git revision
  • f962fdaf84759659f12b98d9d56f6ce653d65a2b
  • master default protected
2 results

helloworld.js

Blame
  • Forked from Quentin Briand / IFI Express TP
    Source project has a limited visibility.
    helloworld.js 275 B
    
    const express = require('express')
    const app = express()
    
    const hostname = '127.0.0.1';
    const port = 8080;
    
    app.get('/', function (req, res) {
      res.send('Hello World!\n')
    })
    
    app.listen(port, function () {
      console.log(`Server running at http://${hostname}:${port}/`)
    })