Last active
May 16, 2017 23:01
-
-
Save rgajrawala/8cdafeee8f74ddb757f9ca79063c1502 to your computer and use it in GitHub Desktop.
Express "Hello World" — http://expressjs.com/en/starter/hello-world.html
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
require('express')() | |
.get('/', (req, res) => res.send('Hello World!')) | |
.listen(3000, () => console.log(`Example app listening on port ${3000}!`)); |
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
{ | |
"name": "express-hello", | |
"version": "1.0.0", | |
"description": "Express hello-world", | |
"main": "app.js", | |
"scripts": { | |
"test": "true" | |
}, | |
"repository": { | |
"type": "git", | |
"url": "git+https://gist.github.com/8cdafeee8f74ddb757f9ca79063c1502.git" | |
}, | |
"keywords": [ | |
"express", | |
"hello", | |
"world" | |
], | |
"author": "Express", | |
"license": "ISC", | |
"bugs": { | |
"url": "https://gist.github.com/8cdafeee8f74ddb757f9ca79063c1502" | |
}, | |
"homepage": "https://gist.github.com/8cdafeee8f74ddb757f9ca79063c1502", | |
"dependencies": { | |
"express": "^4.15.2" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Don't do that.