Skip to content
This repository was archived by the owner on May 6, 2019. It is now read-only.

Commit b993ef8

Browse files
committed
Issue #12 - Setup this project on webfactor hosting via git clone, configure project accordingly
1 parent 88a32de commit b993ef8

File tree

4 files changed

+16
-6
lines changed

4 files changed

+16
-6
lines changed

README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ Setting up this project on Windows
88

99
1. Extract `third_party/redisbin.zip` to a folder on your Desktop
1010
2. Copy `third_party/redis-win/redis.conf` to that same folder on your Desktop
11-
3. Run redis-server passing in the command line: redis.conf
11+
3. Run redis-server passing in the command line: redis.conf (listens on port 10226)
1212
4. Install node.js (Current Version: v0.10.20)
1313
5. Run node index
14-
6. Once the server is running visit localhost:8088/initData
15-
7. Browser to localhost:8088 to see all of the data or localhost:8088/slug to see a specific video
14+
6. Once the server is running visit localhost:22935/initData
15+
7. Browser to localhost:22935/videos to see all of the data or localhost:22935/slug to see a specific video
1616

1717
Versions
1818
========

index.js

+7-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ var app = express();
44
var dump = console.log;
55
var redis = require("redis");
66
var async = require("async");
7-
var client = redis.createClient();
7+
var client = redis.createClient(10226);
88

99
client.on("error", function (err) {
1010
console.log("Error " + err);
@@ -84,6 +84,11 @@ app.get('/initData', function(req, res) {
8484

8585
// URL: codefirefox.com/
8686
app.get('/', function(req, res) {
87+
res.render('inDevelopment', { pageTitle: 'In Development', id: "in-dev", bodyID: 'in_dev'});
88+
});
89+
90+
// URL: codefirefox.com/videos
91+
app.get('/videos', function(req, res) {
8792
DB.getAll("category", function(err, categories) {
8893
if (err) {
8994
res.render('notFound', { pageTitle: 'Code Firefox Videos', id: "Couldn't find video", bodyID: 'body_not_found'});
@@ -112,4 +117,4 @@ app.get('/:category/:video', function(req, res, next) {
112117
});
113118
});
114119

115-
app.listen(8088);
120+
app.listen(22935);

third_party/redis-win/redis.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pidfile /var/run/redis.pid
2222

2323
# Accept connections on the specified port, default is 6379.
2424
# If port 0 is specified Redis will not listen on a TCP socket.
25-
port 6379
25+
port 10226
2626

2727
# If you want you can bind a single interface, if the bind option is not
2828
# specified all the interfaces will listen for incoming connections.

views/inDevelopment.jade

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
extends layout
2+
3+
block mainContent
4+
h1 In Development
5+

0 commit comments

Comments
 (0)