actimeo / simmage-backend

Variation v2 (SIMMAGE project) postgreSQL backend
GNU Affero General Public License v3.0
1 stars 1 forks source link

Build Status

simmage-backend

Variation v2 (SIMMAGE project) postgreSQL backend.

The backend is composed of a PostgreSQL database, divided in several schemas, and PL/PgSQL procedures.

For a normal usage, the database should not be accessed directly with SQL requests, but PL/PgSQL procedures should be used.

The PgProcedures (https://github.com/actimeo/pgproc) PHP module can be used to access PL/PgSQL procedures from PHP.

Prerequisites:

Install

$ git clone https://github.com/actimeo/simmage-backend.git
$ cd simmage-backend
postgres$ psql
postgres=# create user simmage password 'apassword';
$ sudo su postgres -c ./scripts/update.sh

Run tests

./vendor/bin/phpunit --stop-on-error src/

Import arrangement

./scripts/import.php /path/to/arrangement/directory