Development configuration of KNIT API written in PHP, deployed using docker.
Requirements to work with project: git
, docker
, docker-compose
$ git clone https://github.com/knit-pk/api-v1-php.git knit-api
$ cd knit-api
$ docker-compose up
Stop project
$ docker-compose stop
Stop project with destroying all its data
$ docker-compose down -v
Rebuild and run docker images
$ docker-compose build --pull
$ docker-compose up -d
Follow log output from containers
$ docker-compose logs --follow
Feed database with default data.
$ docker-compose exec api make fixtures-reload
Clean and rebuild application cache.
$ docker-compose exec api make cache-warmup-docker
Running feature tests
$ docker-compose exec api composer behat
Run swoole sever locally
$ bin/console swoole:server:run
# or
$ bin/console s:s:r
Docker images:
PHP Stack:
Always for newest version: https://www.getpostman.com/collections/07d9bde930835627078a