forked from Wai-Yan/Proximity
-
Notifications
You must be signed in to change notification settings - Fork 3
/
server.js
27 lines (23 loc) · 875 Bytes
/
server.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
var express = require("express");
var bodyParser = require("body-parser");
var exphbs = require("express-handlebars");
var app = express();
var PORT = process.env.PORT || 8080;
var db = require("./models");
var cookieParser = require("cookie-parser");
app.use(bodyParser.urlencoded({ extended: true }));
app.use(bodyParser.json());
app.use(express.static(__dirname + "/public"));
app.use(cookieParser());
// app.engine("handlebars", exphbs({ defaultLayout: "main" }));
// app.set("view engine", "handlebars");
// require("./routes/recruiterPost-routes.js")(app);
require("./routes/html-routes.js")(app);
require("./routes/jobSearch-routes.js")(app);
require("./routes/registration-routes.js")(app);
require("./routes/login-routes.js")(app);
db.sequelize.sync().then(function() {
app.listen(PORT, function() {
console.log("App listening on PORT " + PORT);
});
});