Skip to content

Latest commit

 

History

History
43 lines (27 loc) · 1.57 KB

CONTRIBUTING.md

File metadata and controls

43 lines (27 loc) · 1.57 KB

Repository Pattern

El patron de desarrollo que usaremos para esta API se conoce como ADR ( Action-Domain-Response ), les dejo una lectura en este link https://odan.github.io/slim4-skeleton/architecture.html https://en.wikipedia.org/wiki/Action%E2%80%93domain%E2%80%93responder

REST API CREATION

-En la carpeta 'src/Domain' creamos una carpeta con el nombre del Dominio -Crear una Interface/Repositorio en el folder 'src/Domain/' -Crear un Modelo en la carpeta 'src/Infrastructure/Persistence' -Crear las Actions en la carpeta 'src/Application/Actions' -Mapear un repositorio a un modelo en el archivo 'app.repositories.php' -Crear las rutas en el archivo 'app.routes.php'

  1. Crear una class 'EntidadAction'

  2. Crear el

  3. Create a 'repository name' folder in the path 'src/Domain/' folder

  4. Whithin the created folder, create a 'repository name' file

  5. Create a 'repository name' file the path 'src/Intrastructure/Persistence'

  6. Create a Folder in the path 'src/Intrastructure/Persistence'

  7. Create a file with the

How to Contribute

Pull Requests

  1. Fork the Repository
  2. Create a new branch for each feature or improvement
  3. Send a pull request from each feature branch to the 4.x branch

It is very important to separate new features or improvements into separate feature branches, and to send a pull request for each branch. This allows us to review and pull in new features or improvements individually.

Style Guide

All pull requests must adhere to the PSR-2 standard.