README.txt
author raph
Thu, 10 Dec 2009 15:07:25 +0100
changeset 42 82f6e2879e0a
parent 37 d62454bf4402
child 63 0a610af4033f
permissions -rw-r--r--
add tag filter to text share page
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     1
*******
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     2
Comt
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     3
*******
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     4
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     5
Presentation
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     6
============
36
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
     7
Comt is an open source Web-based text annotation platform.
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     8
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
     9
License
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    10
=======
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    11
GNU AFFERO GENERAL PUBLIC LICENSE
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    12
http://www.gnu.org/licenses/agpl.html
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    13
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    14
Dependencies
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    15
============
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    16
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    17
Environment
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    18
-------------
37
d62454bf4402 fix readme
raph
parents: 36
diff changeset
    19
- Postgresql 8.3 or Mysql 5+ or sqlite
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    20
- Python 2.5+
37
d62454bf4402 fix readme
raph
parents: 36
diff changeset
    21
- Openoffice 3.0+ (headless) & Pandoc
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    22
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    23
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    24
Requirements
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    25
------------
36
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    26
- python
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    27
- python magic
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    28
- python development headers
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    29
- python setuptools
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    30
- python uno
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    31
- pandoc
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    32
- headless openoffice
36
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    33
- git
aa4c2ed7533a remove licenses
raph
parents: 33
diff changeset
    34
- libyaml
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    35
(all other python dependencies will be downloaded by buildout)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    36
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    37
Installation (development install)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    38
============
31
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    39
1. Install python2.5+ and all required libraries
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    40
	(ubuntu users : 'sudo apt-get install python python-magic python-setuptools python-uno libyaml-0-1 python-dev git-core')
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    41
2. Install pandoc
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    42
	(ubuntu users : 'sudo apt-get install pandoc')
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    43
3. Install openoffice (headless mode) [used for document conversion]
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    44
	(ubuntu users : 'sudo apt-get install sun-java6-jre openoffice.org openoffice.org-headless xvfb)
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    45
4. Install/configure database [skip this step if you plan to use a sqlite database]
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    46
	4 a) Postgresql
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    47
		- Install and configure database server [skip this step if use an external database server] 
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    48
		(ubuntu users : 'sudo apt-get install postgresql')		
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    49
		- Install database client
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    50
		(ubuntu users : 'sudo apt-get install postgresql-client')		
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    51
		- Install python database connector: psycopg2
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    52
		(ubuntu users : 'sudo apt-get install python-psycopg2')		
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    53
	4 b) Mysql
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    54
		-  Install and configure mysql server [skip this step if use an external database server]
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    55
		(ubuntu users : 'sudo apt-get install mysql-server')		
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    56
		- Install database client
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    57
		(ubuntu users : 'sudo apt-get install mysql-client')
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    58
		- Install python database connector: mysqldb
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    59
		(ubuntu users : 'sudo apt-get install python-mysqldb')						
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    60
5. Create a database (we recommend UTF8 encoding) and a read/write access to it. [skip this step if you plan to use a sqlite database]
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    61
   The database account accessing the database MUST have administrative privileges when running the 'syncdb command' (step 8)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    62
   (The reason for that is that Postgresql requires such privileges to create the C-based stored procedure that we use for full text indexing)
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    63
   (ex. postgresql: 'sudo -u postgres createdb -E utf8 -e <db_name>)
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    64
6. Setup the project and get dependencies
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    65
   - `python bootstrap.py`
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    66
   - `./bin/buildout` 
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    67
7. Configure Comt to your settings
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    68
   - copy settings_local_sample.py to settings_local.py (this file will contain your personal settings)  
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    69
   - edit settings_local.py to suit your settings (search for 'YOUR_SETTINGS' occurrences, those are mandatory settings)
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    70
8. Create the database structure (and test your database connection)
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    71
   - `./bin/django syncdb --settings=settings`
31
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    72
   - `./bin/django migrate --settings=settings`
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    73
9. Create basic right management system
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    74
   - `./bin/django loaddata roles_generic --settings=settings`
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    75
10. Launch development server
17
a4be0b8a905d bug fix : can view own comment on comment add on mod priori
reno
parents: 0
diff changeset
    76
   - `./bin/django runserver --settings=settings`
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
    77
11. Access your Comt instance by pointing your browser to http://127.0.0.1:8000/
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    78
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    79
Installation (production environment)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    80
=============
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    81
If you'd like to install Comt on a production environment, check out django installation guide at http://www.djangoproject.com/documentation/modpython/
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
    82
31
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    83
Upgrade
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    84
=======
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    85
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    86
Normal upgrade
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    87
--------------
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    88
Upgrading you database should only need one command:
33
reno
parents: 31
diff changeset
    89
   - `./bin/buildout`
31
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    90
   - `./bin/django migrate --settings=settings`
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    91
   
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    92
Upgrade from alpha releases
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    93
----------------------------
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    94
If your database was created using comt alpha prior to the revision 29, here are the commands you should run:
33
reno
parents: 31
diff changeset
    95
   - `./bin/buildout`
reno
parents: 31
diff changeset
    96
   - `./bin/django syncdb`
reno
parents: 31
diff changeset
    97
   - `./bin/django migrate cm 0001_initial --fake`
reno
parents: 31
diff changeset
    98
   - `./bin/django migrate`
31
d4eaf4696b08 add upgrade scripts with south
raph
parents: 18
diff changeset
    99
0
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   100
Openoffice
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   101
==========
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   102
Comt uses openoffice to convert documents from ODT, MS Word, etc. to html.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   103
On a development setup, you should make sure no openoffice process is left and launch
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   104
`soffice -headless "-accept=socket,port=2002;urp;"` to start openoffice in background mode.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   105
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   106
Comt uses
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   107
============
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   108
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   109
Javascript libs used (and license) / shipped with the distribution
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   110
------------------------------------------------------------------
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   111
- Yahoo UI	http://developer.yahoo.com/yui/	BSD License
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   112
- JQuery	http://jquery.com/	MIT
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   113
- markItUp  http://markitup.jaysalvat.com/home/ MIT/GPL
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   114
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   115
Python libraries used (and license) / NOT shipped with the distribution
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   116
-----------------------------------------------------------------------
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   117
- django			http://www.djangoproject.com/					BSD License
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   118
- python magic		http://hupp.org/adam/hg/python-magic			permissive BSD style license
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   119
- Beautiful soup	http://www.crummy.com/software/BeautifulSoup/	PSF license
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   120
- python-chardet	http://chardet.feedparser.org/					LGPL 
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   121
- python-feedparser	http://feedparser.org/ 							"Permissive" custom license
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   122
- python-imaging	http://www.pythonware.com/products/pil/ 		http://www.pythonware.com/products/pil/license.htm
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   123
- python-pytz
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   124
- html5lib
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   125
- python-simplejson
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   126
- python-uno
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   127
- python-utidylib
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   128
- python-yaml
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   129
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   130
Icons 
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   131
-----
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   132
- Icons derived from FatCow Icon Set http://www.fatcow.com/free-icons/index.bml (Creative Commons Attribution 3.0 License)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   133
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   134
FAQ
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   135
====
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   136
Q: I get 'import error' when starting the server (step #9)
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   137
R: Make sure you installed all required python dependencies
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   138
                      
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   139
Community
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   140
=========
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   141
The Comt web site http://www.co-ment.org is the place to ask questions, report bugs, check out the source code or download the releases of Comt.
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   142
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   143
Credits
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   144
========
40c8f766c9b8 import from internal svn r 4007
raph
parents:
diff changeset
   145
We'd like to thank:
18
f0f9929a4900 add sudo in ubuntu examples for commands to be run as root
gibus
parents: 17
diff changeset
   146
- Kirill Miazine (http://km.krot.org/) for the norwegian translation