forked from jyby/repositorium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathREADME.txt
150 lines (116 loc) · 4.74 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
* Repositorium
Web Engine for Collective Repositories. Based principally on CakePHP and MySQL
Initiated and mainly directed by Jérémy Barbay.
Participating students listed in Section [[*%20Academic%20History][(Academic) History]]
* Installation
** Requirements
+ MySQL 5.1
+ PHP 5.3 (any php5 should work fine too)
+ Apache 2.2
** Getting the source
Open a console and get the source
=git clone git://github.com/mquezadav/repositorium.git=
** Configuration
Then you’ll have a copy of the source at local.
Create the following folders and give these permissions (some of them
already exist):
- =chmod o+w app/tmp=
- =chmod o+w app/tmp/cache=
- =chmod -R o+w app/tmp/cache/persistent=
- =chmod -R o+w app/tmp/cache/models=
- =chmod -R o+w app/tmp/logs=
Copy =database.php.default= to =database.php=, and =core.php.default=
to =core.php=, and =bootstrap.php.default= to =bootstrap.php= in =app/config=.
Edit =database.php=:
#+BEGIN_SRC php
var $default = array(
'driver' => 'mysql',
'persistent' => false,
'host' => '<HOST>',
'login' => '<LOGIN>',
'password' => '<PASSWORD>',
'database' => '<DBNAME>',
'prefix' => '',
);
#+END_SRC
Change =<HOST>=, =<LOGIN>=, =<PASSWORD>= and =<DBNAME>= (database name) to the correspoding values in your system
** Initial DB Dump
1) To load the dump file (=repositorium.sql=) with initial data (users: admin and anonymous). It contains no documents and no criteria.
=mysql -u <LOGIN> -p <PASSWORD> <DBNAME> < repositorium.sql=
2) Now you have 2 users: anonymous and admin. The *admin* user has the following atributes
- Login: [email protected]
- Password: password
3) Then add a criteria, and then some documents or users.
** Security
At =core.php= file (=app/config/=), at lines 204 and 209, randomly modify some alphanumeric characters of the corresponding Salt and Cypher Seed.
Example:
=Configure::write('Security.salt', '<SOME LONG RANDOM STRING>');=
This changes’ll avoid keeping the same session at different app clones, and for security sake.
* (Academic) History:
1. 2011A: Initial project
- Project for course "CC5401 - Ingenieria de software"
Departamento de Ciencias de la Computacion (DCC), University
of Chile
- Staff:
1. Jérémy Barbay -jyby@github (course client)
2. Hernan Fierro (project manager)
3. Pablo Estefo - pestefo@github (analyst)
4. Felipe Banados - fbanados@github (designer)
5. Nicolas Perez - thomaslight@github (developer)
6. Mauricio Quezada - mquezadav@github (developer)
7. David Contreras - dcontrer@github (tester)
- Object:
- creation of the first version of the prototype:
- only text fragments
- simple parameterized quality control
- one single repository per server
2. 2011A: Multi community
- Internship
- Staff:
1. Jérémy Barbay - jyby@github (advisor)
2. Mauricio Quezada - mquezadav@github (developer)
- Object:
- Clean the code and correct some bugs
- Extend the engine to support multiple repositories, each
with its own parameters and url.
- install an instance of the engine at http://repositorium.cl
3. 2011B: Repositorium for Students
- Internship
- Staff:
1. Jérémy Barbay - jyby@github (advisor)
2. Carlos Gajardo - cgajardo@github (developer)
- Object:
- Add support for file attachments
- fill a repository with education files (e.g. pdf of past
exams) for students, inspired by the project =Sensei= (now
collapsing for lack of participation)
- propose to some students to use the new repository
- survey student usage of the new repository
4. 2011B: Repositorium for Professors
- Internship
- Staff:
1. Jérémy Barbay - jyby@github (advisor)
2. Hernan Fierro (developer)
- Object:
- correction of various bugs
- implementation of the bug and feature management
- Add support of visualisation features (e.g. LaTeX, HTML,
etc...)
- fill some repositories with pedagogical material
(e.g. solved problems to compose assignments and exams) for
professors, inspired by existing ad-hoc repositories
(without quality control nor incentive to contribute)
- propose to some professors to use the new repositories
- survey professor usage of the new repositories.
5. 2011B
- Project for course "CC5401 - Ingenieria de software"
Departamento de Ciencias de la Computacion (DCC), University
of Chile
- Staff:
1. Jérémy Barbay -jyby@github (course client)
- Object:
- Detection and management of duplicated material
- Main aim to counteract the simplest attack consisting to
resubmit exact copies or minor variants of documents
already in the repository.
- DOES NOT aim to implement advanced "plagiarism" detection.