-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
29 lines (24 loc) · 773 Bytes
/
app.js
File metadata and controls
29 lines (24 loc) · 773 Bytes
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
28
29
// The application is built ontop of the express framework
// Docs: http://expressjs.com/api.html
var express = require('express');
app = express();
// Use Jade Template engine
app.set('views', __dirname + '/app/views');
app.set('view engine', 'jade');
// Setup common middleware
app.use(express.logger());
app.use(express.compress());
app.use(express.methodOverride());
app.use(express.bodyParser());
app.use(express.cookieParser());
app.use(express.static(__dirname + '/public'));
app.use(app.router);
// Setup some application level variables
app.set('appName', 'Picture Board');
app.set('emails', {
support: 'support@conect.ac'
});
// Setup application routes
require('./routes');
// Start listening for incoming requests
app.listen(process.env.PORT || 5000);