Last active
May 10, 2016 02:37
-
-
Save jacobbridges/7d01a48e86e11583820be6e99fb7573c to your computer and use it in GitHub Desktop.
This file contains 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
var express = require('express'); | |
var app = express(); | |
// Create a route for the base endpoint | |
app.get('/', (req, res) => { | |
res.send('Hello World!'); | |
}); | |
// Run the server | |
app.listen(3000, () => null); |
This file contains 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
$ npm init | |
$ npm install express | |
$ node server.js |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment