Created
March 6, 2017 15:06
-
-
Save rotemtam/f1a57f6ffb3f67c81bc54b83fd2f6860 to your computer and use it in GitHub Desktop.
Express.js Hello World
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Source: express.js website: https://expressjs.com/en/guide/routing.html | |
var express = require('express') | |
var app = express() | |
// respond with "hello world" when a GET request is made to the homepage | |
app.get('/', function (req, res) { | |
res.send('hello world') | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment