-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
84 lines (51 loc) · 2.67 KB
/
README
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
Goldmine is a Data Management System designed for Palaeoclimate timeseries datasets.
Dependencies
------------
Via package managers:
$ sudo apt-get install git-core build-essentials
$ sudo apt-get install python-setuptools python-dev python-configobj python-bcrypt python-cherrypy3 python-numpy
If using PostgreSQL for the RDBMS:
$ sudo apt-get install python-psycopg2 postgresql-server postgresql-8.4 postgresql-client
Via PYPI:
$ sudo pip install termcolor storm
In STORM 0.18 release, there is a bug in the UUID handling, apply the following fixes:
https://code.launchpad.net/~jkakar/storm/uuid-bug-fixes
For debugging purposes, the installation of "python-observer" can be productive, to restart the HTTP service when code changes
$ sudo pip install observer
$ autorestart ./http_server.py # run like this to auto restart server
Installation
------------
Install the dependencies above
Clone this project into a directory called "server"
$ git clone git://github.com/goldmine-dms/server.git
Also clone the WWW client into the directory "clients/www"
$ mkdir client; git clone git://github.com/goldmine-dms/client-www.git client/www
Now create a new database for the server
$ sudo useradd goldmine # setup a linux user to own the DB
$ sudo su - postgres # become the postgresql superuser
postgres$ psql template1 # open a SQL command interface
template1=# CREATE USER goldmine WITH PASSWORD 'goldmine';
template1=# CREATE DATABASE goldmine;
template1=# GRANT ALL PRIVILEGES ON DATABASE goldmine to goldmine;
template1=# \q
postgres$ exit # return to the regular user
Then edit the configuration of config.ini to correspond to the above users and passwords
cd server
cp loadschema.sh.example loadschema.sh
cp config.ini.example config.ini
And populate the schema to the database and start the server
./loadschema.sh
./http_service.py
License and copyright
---------------------
goldmine (c) Christian Panton 2011-2012
This program is free software: you can redistribute it and/or modif
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.