Skip to content

DBAdventure/api

Repository files navigation

DBAdventure Build Status

DBAdventure, the backend api!

Requirements

Configuration

Alternatively, you can configure a fully-featured web server like Nginx or Apache to run the application.

Installation

You must have created a pgsql database.

$ ./scripts/setup.sh
$ psql -U DB_USER -W DB_NAME < var/sql/schema.sql
$ psql -U DB_USER -W DB_NAME < var/sql/map.sql
$ psql -U DB_USER -W DB_NAME < var/sql/data.sql
$ psql -U DB_USER -W DB_NAME < var/sql/todo.sql # Currently spells 

Tests

Execute this command to run tests:

$ ./scripts/test.sh

To run static tests (PHPMD, PHPCS)

$ ./scripts/test.sh static

To run unit tests

$ ./scripts/test.sh unit

Releases

No releases published

Packages

No packages published