Skip to content

Instantly share code, notes, and snippets.

@sangkyoonnam
Last active January 27, 2023 00:01
Show Gist options
  • Save sangkyoonnam/9128870 to your computer and use it in GitHub Desktop.
Save sangkyoonnam/9128870 to your computer and use it in GitHub Desktop.
Node.js Hello World with Express.js
/**
* Module Dependencies
*/
var express = require('express');
var app = express();
/**
* Configuration
*/
/**
* Routes
*/
app.get('/', function(req, res) {
res.send('Hello World!\n');
});
/**
* Start Server
*/
app.listen(3000);
console.log('Express listening on port 3000...');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment