-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.js
79 lines (75 loc) · 2.91 KB
/
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
var express = require('express');
var bodyParser = require('body-parser');
var path = require('path');
var favicon = require('serve-favicon');
var logger = require('morgan');
var cacheManifest = require('connect-cache-manifest');
var app = express();
app.use(bodyParser.urlencoded({extended: false}));
app.use(bodyParser.json());
app.use(cacheManifest({
manifestPath: '/cache.manifest',
cdn: ['https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.4/jquery.min.js'],
cdn: ['https://cdn.jsdelivr.net/foundation/6.2.1/foundation.min.js'],
cdn: ['https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.7/angular.js'],
cdn: ['https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.7/angular-animate.js'],
cdn: ['https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.5.7/angular-route.js'],
cdn: ['https://cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/1.3.3/ui-bootstrap-tpls.min.js'],
files: [{
file: __dirname + '/style/images/A17.jpg',
path: '/images/A17.jpg'
}, {
file: __dirname + '/style/images/wd.svg',
path: '/images/wd.svg'
}, {
file: __dirname + '/style/images/gwarancja10.svg',
path: '/images/gwarancja10.svg'
}, {
file: __dirname + '/style/images/gwarancja10.svg',
path: '/images/gwarancja10.svg'
}, {
file: __dirname + '/style/images/A25.jpg',
path: '/images/A25.jpg'
}, {
file: __dirname + '/style/images/A12.jpg',
path: '/images/A12.jpg'
}, {
file: __dirname + '/style/images/A14.jpg',
path: '/images/A14.jpg'
}, {
file: __dirname + '/style/images/A15.jpg',
path: '/images/A15.jpg'
}, {
file: __dirname + '/style/images/A24.jpg',
path: '/images/A24.jpg'
}, {
file: __dirname + '/style/images/A30.jpg',
path: '/images/A30.jpg'
}, {
file: __dirname + '/style/images/wds.svg',
path: '/images/wds.svg'
}, {
file: __dirname + '/style/fonty/roboto_medium/Roboto-Medium-webfont.woff',
path: '/fonty/roboto_medium/Roboto-Medium-webfont.woff'
}, {
file: __dirname + '/style/fonty/roboto_black/Roboto-Black-webfont.woff',
path: '/fonty/roboto_black/Roboto-Black-webfont.woff'
}, {
file: __dirname + '/style/fonty/roboto_bolditalic/Roboto-BoldItalic-webfont.woff',
path: '/fonty/roboto_bolditalic/Roboto-BoldItalic-webfont.woff'
}, {
file: __dirname + '/style/fonty/roboto_italic/Roboto-Italic-webfont.woff',
path: '/fonty/roboto_italic/Roboto-Italic-webfont.woff'
}, {
dir: __dirname + '/style/css',
prefix: '/css/'
}],
networks: ['*'],
fallbacks: []
}));
app.use(favicon(path.join(__dirname, '/style/images', 'favicon.ico')));
app.use(logger('dev'));
app.use(require('./controllers'));
var server = app.listen(3000, function () {
console.log('Server is permanently running on %d', server.address().port)
});