-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
66 lines (50 loc) · 1.67 KB
/
Copy pathREADME
File metadata and controls
66 lines (50 loc) · 1.67 KB
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
#################
directions:
#################
///
install nodejs 0.4.12
///
*best to install without using sudo via git
(make sure to check out the right version, latest stable is best)
see: https://gist.github.com/579814
if you use github to get node, after cloning, do
git checkout [latest stable tag from previous command, e.g., v0.2.5]
in terminal
///
install npm tools
instal mongodb 0.2.0
///
///
edit git exclude setup
///
after you checkout the pump code from github:
in the project directory, go to .git/info/exclude
and add
node_modules/*
on the bottom line
we want to ignore this directory during checkin/outs since we will use npm to install all the modules - they might be slightly different depending on nodejs setup
to install all the necessary modules, in termina, in project directory enter:
npm install -d
(this will install all the dependencies)
to run gifpumper locally via gifpumper.net:
in app.js, switch gifpumper.com to gifpumper.net
///
�dit /etc/hosts file
in terminal, enter
sudo vi /etc/hosts
press 'i' to edit
on the bottom line add
127.0.0.1 gifpumper.net
then 'esc' then 'wq'
we need to do this the address gifpumper.net is redirected to the localhost
this is for the cookies/login to work
to run server enter
sudo node app.js
oh yeah, you also need to make sure mongodb is running and call some function to populate the database:
first go to gifpumper.net running the browser. go to the chrome debugger and in the console, enter:
ajax.ajaxFunction('refresh')
this will fill out the pages
after that you might have to restart the server again
you can then you can register as a new user
after that you should be able to edit pages, profile etc
thats it!