After cloning this repository to your local machine only a couple of setup actions are required. Knowledge of Composer and Docker is assumed.
- Git
- Docker
- Composer
git clone git@github.com:falconsmilie/Circunomics-hiring_backendcodechallenge_shane.git
Run the following composer command from the source/ folder of the application. This will also create the .env for
the application.
composer install
Run the following docker-compose commands from the source/ folder of the application.
docker-compose build
docker-compose up -d
From a terminal within your app container run the following command to setup the database tables. This command will drop
the table if it exists, which is handy for resetting the database during development.
php database/migrate.php
NB if you get connection refused errors for this command, please wait a few seconds and try again.
For your convenience phpMyAdmin is included. It can be accessed at:
The credentials are listed in the project's .env-development file.
When in the source/ folder, PHPUnit is available at:
vendor/bin/phpunit
vendor/bin/phpunit --coverage-html coverage-report