DBAdventure, the backend api!
- PHP 7.0 or higher;
- PDO-PgSQL PHP extension enabled;
- and the usual Symfony application requirements.
Alternatively, you can configure a fully-featured web server like Nginx or Apache to run the application.
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
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