Created
March 14, 2018 15:21
-
-
Save qas612820704/18fcfc2454e592ef4f37bf09045d9a1d to your computer and use it in GitHub Desktop.
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
const express = require('express'); | |
app = express(); | |
app.get('/', function(req, res) { | |
const dbData = ['foo', 'bar', 'data', 'log', 'lorm']; | |
data.forEach(function(el) { | |
res.write('<p>' + el + '</p>'); | |
}) | |
res.end(); | |
}); | |
app.listen(3000, console.log('App start at localhost:3000!')); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment