Skip to content

Latest commit

 

History

History
53 lines (34 loc) · 1.12 KB

README.md

File metadata and controls

53 lines (34 loc) · 1.12 KB

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