siworks/slim3-siworks-skeleton

Simple implementation of Slim3 with Doctrine

dev-master 2017-10-15 23:09 UTC

This package is auto-updated.

Last update: 2024-03-29 03:09:32 UTC


README

Installation

Clone the repository and access the directory:

$ git clone git@github.com:siworksit/slim3-siworks-skeleton.git && cd slim3-siworks-skeleton

If you don't have the container docker-hosts-updater running, you can execute that:

$ docker run -d --restart=always --name docker-hosts-updater -v /var/run/docker.sock:/var/run/docker.sock -v /etc/hosts:/opt/hosts grachev/docker-hosts-updater

It will automatically map the hostnames of the containers to the corresponding IPs. This mapping can be done manually through the hosts of the machine.

Execute the composer:

$ docker-compose run --rm composer

Run the web service with docker-compose:

$ docker-compose up -d web

Create the schema to mysql:

$ docker exec -t dev-skeleton-web vendor/bin/doctrine orm:schema-tool:create

Access url http://dev.skeleton.siworks.com.br