Copy src/.env.example
to src/.env
, run the install script and then the run script.
$ cd src
$ php composer.phar install
$ php -S localhost:8888 -t src/public
Build
$ docker build . -t nhtsa-php-api:latest
Run
$ docker run -p 8888:8888 nhtsa-php-api
PS: You can also use the Makefile
to run commands.
$ cd src
$ php phpunit.phar