forked from jrseti/seti
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
75 lines (45 loc) · 2.34 KB
/
README.txt
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
setiQuest Explorer
==================
There are several Flex projects and a Rails project.
Rails Project
-------------
Requires Ruby 1.8.7 and Rails 3. We all work in OSX.
If you don't have the latest version of Ruby and Rails, then do this:
ruby -v
sudo gem update --system
ruby -v
sudo gem update
To build, run these commands in the rails directory
bundle
If you are on windows and do not have sqllite previously installed, go here: http://www.sqlite.org/download.html and grab:
1. sqlite-shell-win32-x86-3070500.zip
2. sqlite-dll-win32-x86-3070500.zip
3. sqlite-analyzer-win32-x86-3070500.zip
or the latest versions of those files.
Extract them and place all files into your ruby/bin dir.
rake db:migrate
All authentication is external, and uses omniauth. We did not check in the config file, because it contains the secret keys to our apps with Facebook and Twitter. So you will need to create /rails/config/initializers/omniauth.rb, and populate it with this code:
Rails.application.config.middleware.use OmniAuth::Builder do
# //provider :facebook, '***APP_ID***', '***APP_SECRET***', :display=>:touch
# //provider :twitter, '***APP_ID***', '***APP_SECRET***'
provider :openid, nil, :name => 'google', :identifier => 'https://www.google.com/accounts/o8/id', :method => :get
end
Once that's set up, launch the server:
rails server
Then point your browser to http://localhost.seti.hg94.com:3000/
Then log in using your Google credentials
If you get this error:
SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
If you are also running Ruby 1.9.x then there is a monkeypatch that may fix this issue. In the root rails dir there is a file named monkeypatch. Copy this file into rails/config/initializers. Then rename it to have a .rb extension.
restart the rails server. and try again.
Once you're logged in the first time, you will need to give yourself admin privileges in order to actually do anything. So go back to the rails directory and do this:
rails console
u = User.first
u.role = :admin
u.save
exit
Now refresh your browser. You should get admin controls and be able to see the Flex app.
To implement any test code, the controller test must have "login_as_administrator" in the setup block.
Flex Projects
-------------
The Flex projects require the Flex 4.5 prerelease i6 build of the Flex SDK.