tseho / symfony-api-skeleton

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Symfony API Skeleton

How to use the skeleton

composer create-project --ignore-platform-reqs tseho/symfony-api-skeleton [directory]

Production

build the docker image:

DOCKER_IMAGE_NAME=foo DOCKER_IMAGE_VERSION=latest make docker-image

launch apache+php on port 8080:

docker run -d -p 127.0.0.1:8080:8080/tcp $DOCKER_IMAGE_NAME:$DOCKER_IMAGE_VERSION

Development

Start the project in 3 steps

  1. Create your local .env file
make .env
  1. Edit the values in .env, if necessary
  2. Start the development environment:
make up

Useful commands

make up # build & start the containers
make down # stop the containers
make destroy # remove all containers, all volumes, all docker images

make tests # launch all the tests

docker-compose run --rm php bin/console [cmd] # execute a symfony command
docker-compose run --rm composer [cmd] # execute a composer command

About

License:MIT License


Languages

Language:PHP 69.2%Language:Makefile 16.4%Language:Dockerfile 14.4%