run
docker build -f .docker/Dockerfile -t renderer .
docker run -d -p 8000:8000 -t --name renderer renderer
In order to render template call endpoint:
localhost:8000/api/render?context=
You can choose one of the following contexts:
- table
- row
So, the final endpoint will look as following:
localhost:8000/api/render?context=table
localhost:8000/api/render?context=row
In order to run tests, please execute the following command after successful composer install
command:
php artisan test --testsuite=Unit