tseho/symfony-api-skeleton

v2.0.0 2021-11-29 22:13 UTC

This package is auto-updated.

Last update: 2024-03-29 04:46:07 UTC


README

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