Skip to content

Instantly share code, notes, and snippets.

@qas612820704
Created March 14, 2018 15:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save qas612820704/18fcfc2454e592ef4f37bf09045d9a1d to your computer and use it in GitHub Desktop.
Save qas612820704/18fcfc2454e592ef4f37bf09045d9a1d to your computer and use it in GitHub Desktop.
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