Created
June 24, 2017 15:49
-
-
Save bmorelli25/ec53a9eb291b4b8c8d99488758f8011d to your computer and use it in GitHub Desktop.
weather website partial
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'); | |
| const app = express() | |
| app.use(express.static('public')); | |
| app.set('view engine', 'ejs') | |
| app.get('/', function (req, res) { | |
| res.render('index'); | |
| }) | |
| app.listen(3000, function () { | |
| console.log('Example app listening on port 3000!') | |
| }) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment