Skip to content

danteay/corephp-slim-scafold

Repository files navigation

Slim Scafold

This is a Slim preconfigured project to create a MVC or API projects based on the slim/Slim-Skeleton repository from Slim Framework.

Requirements

Dependendies

Container specifications

Namespaces

Namespace Route folder
Controllers src/app/controllers
Models src/app/models
Middlewares src/app/middlewares
Libraries src/app/libraries
Helpers src/app/helpers

Install the Application

Yu can install it from the slimcmd tool with this command:

slimcmd app:init [app-name]

Replace [app-name] with the desired directory name for your new application. You'll want to:

  • Point your virtual host document root to your new application's public/ directory.
  • Ensure logs/ is web writeable.

Install project

composer install

Run the aplication

docker-compose up

Deploy app with AWS Pipelines and AWS ECS

Configure yur build steps into buildspect.yml file with your AWS ECR information and setup the service configurations into imagedefinitios.json file according to the AWS Documentation