User Tools

Site Tools


bwnjsejs:building_a_hello_express_application
var express = require('express');

var app = express();

app.get('/', function(req, res) {
  res.send('<h1>๐Ÿ˜</h1><p>Hello !</p>')
})

var server = app.listen(3000, function() {
  console.log('Listening on port 3000.');
})

โ†’ http://expressjs.com/en/4x/api.html

bwnjsejs/building_a_hello_express_application.txt ยท Last modified: 2016/05/08 14:58 by leo