Guest User

Untitled

a guest
Dec 13th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. var express = require('express');
  2. var app = express();
  3.  
  4. app.use(express.static(__dirname + '/public'));
  5. app.set('view engine', 'ejs');
  6.  
  7. app.listen(3000, function() {
  8. console.log('listening on PORT 3000');
  9. })
  10.  
  11. app.get('/', function(req, res){
  12. res.send('Home page!')
  13. })
  14.  
  15. app.get('/events', function(req, res){
  16. res.render('eventForm')
  17. })
  18.  
  19. -Project
  20. -node_modules
  21. -public
  22. index.html
  23. -views
  24. eventForm.html
  25.  
  26. Error: Failed to lookup view "eventForm" in views directory "/Users/username/LearnProgramming/api_playground/stubhub/views"
Add Comment
Please, Sign In to add comment