-
Notifications
You must be signed in to change notification settings - Fork 2
/
app.js
22 lines (17 loc) · 579 Bytes
/
app.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
var express = require('express');
var todoController = require('./controllers/todoControllerNew.js');
var cookieParser = require('cookie-parser');
LocalStrategy=require("passport-local");
passportLocalMongoose=require("passport-local-mongoose");
var app = express();
app.set('view engine', 'ejs');
app.use('/assets', express.static('assets'));
app.use(cookieParser());
app.use(require("express-session")({
secret:"Love hates fear",
resave:false,
saveUninitialized:false
}));
todoController(app);
app.listen(3000);
console.log("You are listening to port 3000");