Skip to content

A simple skeleton of silex application using ddd arquitecture

License

Notifications You must be signed in to change notification settings

danitome24/silex-ddd-skeleton

Repository files navigation

Silex ddd skeleton

This is a simple project to improve my DDD skills and learn a little of Silex Php framework.

Getting started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes.

Prerequisites

You must have installed docker on your local machine to run it easily. To install docker and docker-compose

Installing

Open your command line interface and write:

docker-compose up -d

This will build the docker image and start needed container in background.

Download composer packages with the next command:

docker run --rm -v $(pwd):/app -u $(id -u):$(id -g) composer/composer install

Running the tests

Use the following command:

vendor/phpunit/phpunit/phpunit

Another useful Docker commands

# List containers
docker-compose ps

# View logs
docker-compose logs

# Restart containers
docker-compose restart

# Stop containers
docker-compose stop

# Stop and remove containers.
docker-compose down

# Start a terminal session for php-apache container
docker-compose exec silexdddskeleton_web_1 bash

# Execute command into mysql container
docker-compose exec silexdddskeleton_db_1 mysql -uroot -p -e 'COMMAND'

Built with

Author

Me, Daniel Tomé Fernández [email protected] Javi Sabalete [email protected]

License

This project is licensed under the MIT License - see the LICENSE.md file for details

About

A simple skeleton of silex application using ddd arquitecture

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published