This repository has been archived by the owner on Jan 24, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
/
DEVELOPER.txt
114 lines (84 loc) · 4.53 KB
/
DEVELOPER.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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
**** CascadeLMS Develop Instructions *****
by Mike Helmick - mike.helmick@gmail.com
**** SOFTWARE LICENSE - New BSD License ****
Copyright (c) 2006-2010, Mike Helmick - mike.helmick@gmail.com
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
- Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer.
- Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
- Neither the name of the Mike Helmick, Miami University nor the names of its
contributors may be used to endorse or promote products derived from this
software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA,
OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
POSSIBILITY OF SUCH DAMAGE.
These instructions are for setting up a developer workstation for CascadeLMS.
It is best to develop on Mac OS X or Linux (even if it is in a virtual machine, or if Cygwin is used).
0) Install the Git client
http://git-scm.com/download
1) Install Ruby, Gems, and Rails
It is best to follow the instructions for your platform as described here -> http://rubyonrails.org/down
2) Install OpenLDAP -> http://www.openldap.org/ -- If you want to use LDAP
(For windows, it is easier to get a binary distro http://download.bergmans.us/openldap/openldap-2.2.29/)
3) Install MySql -> http://www.mysql.com
Latest version 5.x
4) Install the necessary Ruby Gems (add sudo before each command if on a unix(-like) platform )
sudo gem install daemons slave
sudo gem install gem_plugin mongrel mongrel_cluster --include-dependencies
sudo gem install mysql
sudo gem install RedCloth
sudo gem install diff-lcs
5) Install the Ruby LDAP library
** OpenSSL and LDAP development libraries must be installed already
cd ~/src
curl -O http://easynews.dl.sourceforge.net/sourceforge/ruby-ldap/ruby-ldap-0.9.7.tar.gz
tar -xzvf ruby-ldap-0.9.7.tar.gz
cd ruby-ldap-0.9.7
ruby extconf.rb
make
sudo make install
7) Grab the source and begin to configure the application
The repository is here -> http://github.com/mikehelmick/CascadeLMS/tree/master
8) Create mysql database and grant access to your user (fill in database username as appropriate)
* also, you may want to omit the identified by... part so that your DB doesn't need a password
mysqladmin -u root -p create cscourseware_dev
mysql -u root -p
grant all on cscourseware_production.* to DATABASEUSER@localhost identified by 'PASSWORD';
9) Change the cscw database configuration
cd ~/src/cscw/cscourseware/config
cp database.yml.todo database.yml
Edit the database.yml file and configure the development database appropriately
10) Load the database
cd ~/src/cscw/cscourseware/
rake db:migrate
11) Start the server
cd ~/src/cscw/cscourseware/
ruby script/server
12) Configure the app
Log in to CSCW using the
username: admin
password: password
Immediately click on "admin admin" in the upper right hand corner to change your password and assign
a valid email address to the admin user
Click on "Administration -> Settings"
* This will let you configure display options, title, organization, email addresses, etc...
******** Please configure an appropriate error reporting email address
Also be sure to configure the appropriate location of your Java compiler and JVM, as
well as the Ruby interpreter that can be called externally.
There is also a configuration option for external storage - be sure to
configure this and make it a secure location, we use
/srv/www/rails/CascadeLMS/storage
You can now create users and courses from the administration tab
13) Please see the application's Web site - www.CascadeLMS.org
for information on submitting patches