Guest User

Untitled

a guest
Jul 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. const express = require('express');
  2.  
  3. const app = express();
  4.  
  5. require('@google-cloud/profiler').start();
  6.  
  7.  
  8. app.get('/', (req, res) => {
  9. res.status(200).send('Hello, world!').end();
  10. });
  11.  
  12. // Start the server
  13. const PORT = process.env.PORT || 8080;
  14. app.listen(PORT, () => {
  15. console.log(`App listening on port ${PORT}`);
  16. console.log('Press Ctrl+C to quit.');
  17. });
Add Comment
Please, Sign In to add comment