-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.js
90 lines (68 loc) · 2 KB
/
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
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
80
81
82
83
84
85
86
87
88
89
90
// server.js
// load the things we need
var express = require('express');
var app = express();
//set up node-sass https://www.npmjs.com/package/node-sass
// set the view engine to ejs
app.set('views', __dirname + '/views')
app.set('view engine', 'ejs');
// index page
app.get('/', function(req, res) {
res.render('pages/index');
});
// work page
app.get('/work', function(req, res) {
res.render('pages/work');
});
app.get('/work/ocular', function(req, res) {
res.render('pages/work/ocular');
});
app.get('/work/deliverance', function(req, res) {
res.render('pages/work/deliverance');
});
app.get('/work/deliverance-full', function(req, res) {
res.render('pages/work/deliverance-full');
});
app.get('/work/liquidlight', function(req, res) {
res.render('pages/work/liquidlight');
});
app.get('/work/accessnyc', function(req, res) {
res.render('pages/work/accessnyc');
});
app.get('/work/brainrhythms', function(req, res) {
res.render('pages/work/brainrhythms');
});
app.get('/work/responsibly', function(req, res) {
res.render('pages/work/responsibly');
});
app.get('/work/pinocchio', function(req, res) {
res.render('pages/work/pinocchio');
});
app.get('/work/shaders', function(req, res) {
res.render('pages/work/shaders');
});
app.get('/work/dress', function(req, res) {
res.render('pages/work/dress');
});
app.get('/work/glitch', function(req, res) {
res.render('pages/work/glitch');
});
app.get('/work/fogg', function(req, res) {
res.render('pages/work/fogg');
});
app.get('/work/crystal', function(req, res) {
res.render('pages/work/crystal');
});
app.get('/work/hipchat', function(req, res) {
res.render('pages/work/hipchat');
});
app.get('/work/longboard', function(req, res) {
res.render('pages/work/longboard');
});
app.get('/wantstodostuff', function(req, res) {
res.render('pages/bucketlist');
});
app.use(express.static('public'));
app.use('/blog', express.static('blog/public'));
app.listen(8000);
console.log('8000 is the magic port');