-
Notifications
You must be signed in to change notification settings - Fork 6
/
app.js
27 lines (21 loc) · 797 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
23
24
25
26
27
var express = require("express"),
app = express(),
bodyParser = require("body-parser");
var homeRoutes = require("./routes/home"),
programRoutes = require("./routes/programs"),
contactRoutes = require("./routes/contact"),
aboutRoutes = require("./routes/about"),
corporateRoutes = require("./routes/corporate"),
donateRoutes = require("./routes/donate");
app.use(bodyParser.urlencoded({extended: true}));
app.set("view engine", "ejs");
app.use(express.static(__dirname + '/public'));
app.use(homeRoutes);
app.use(programRoutes);
app.use(contactRoutes);
app.use(aboutRoutes);
app.use(corporateRoutes);
app.use(donateRoutes);
app.listen(3000, function() {
console.log('BudhaCeo app has started on port 3000');
});