-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathREADME
More file actions
73 lines (45 loc) · 1.7 KB
/
README
File metadata and controls
73 lines (45 loc) · 1.7 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
67
68
69
70
71
72
73
# dependencies
# database:
mongodb (download from mongodb.org the stable version)
quickstart: http://www.mongodb.org/display/DOCS/Quickstart+OS+X
# python stuff:
python 2.6+ (if python 2.5, please install simplejson)
django 1.2+
pymongo 1.7+
(can use "easy_install package_name" for easy installation )
other dependencies are loaded at runtime and can be found in
~apps and ~libs directories
above dependencies can be downloaded and safely put in
~libs directory
# running django dev server
# settings.py:
if mongodb has username and password
update "mongoengine.connect()" in settings.py
# run django as standard:
Please note that mongodb must be running before django
type 'mongod' in terminal
cd into riverid folder
type 'python manage.py runserver'
RiverID then is running at http://127.0.0.1:8000
# fishing for fun
to add initial data:
go to http://127.0.0.1:8000/feedfish (only if there is no user)
then login with user/user or admin/admin or dev/dev (username/password)
to clear data:
go to http://127.0.0.1:8000/killoil (need admin access)
# testing oauth
cd into riverid folder
type 'python oauth_client.py'
just following prompts in the terminal
in oauth_client.py API key and secret are preconfigured based on
the initial key added in by "feeding fish"
if you want to test with other combinations, please change accordingly
# dev notes
search for #m instances for modificaitons, to-dos and notes
# thanks tons to
Harry Marr (http://hmarr.com) of MongoEngine and for great base layout
Jesper Noehr (http://noehr.org/) of Django Piston
Django Team
MongoDB Team
Ushahidi, Swift & Google for this opportunity
my eldest youngest sister and my parents