Questionnaire-of-the-Facebo.../app.js

21 lines
457 B
JavaScript
Raw Normal View History

2021-03-10 19:01:44 +00:00
// Entry point for the application
// express application
var express = require('express');
// require the controller we make
var surveyController = require('./surveyController');
var app = express();
// set up template engine
app.set('view engine', 'ejs');
// static file serving
app.use(express.static('./public'));
// fire function from surveyController
surveyController(app);
// listen to port
app.listen(3000);
console.log('listening port 3000');