The server is powered by a PostgreSQL database.
These installation and setup instructions are specially for Debian/Ubuntu systems, but can be adapted to other flavors of Linux easily.
Install PostgreSQL using the default package as root/sudo, along with postgresql-contrib, since the data model uses universally unique identifiers (UUIDs) for its table primary keys:
apt-get install -y postgresql postgresql-contrib
Once the packages have been installed, create the database user, database itself, and set the access level.
- Become or login as the postgres user:
su - postgres
- Create the database user (have a password ready):
createuser -P teamworkio
- Next, the database itself:
createdb teamworkdb
- Then apply the UUID extension:
psql -d teamworkdb
teamworkdb=# create extension "uuid-ossp";
CREATE EXTENSION
teamworkdb=# \q
exit
- Configure the client authentication (optional)
Stop the database server:
/etc/init.d/postgresql stop
Then edit the pg_hba.conf file with your desired settings.
Finally, restart the database server:
/etc/init.d/postgresql restart
With the database created and the postgres server running, install the tables.sql file from this folder, as any system user:
psql -d teamworkdb -U teamworkio < tables.sql
The psql tool will prompt for the password used in step 2, above:
Password for user teamworkio:
The database will respond with:
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE
CREATE TABLE