暂无描述

ljoaquim d0f856af2d cpr 2 周之前
bin 906aaa2091 feat: add request validators to controllers 3 周之前
controllers d0f856af2d cpr 2 周之前
libs 61fba5e31a Inicial commit 4 周之前
middlewares 61fba5e31a Inicial commit 4 周之前
migrations d0f856af2d cpr 2 周之前
models 16829cbaf1 cpr route and test scripts 2 周之前
public d0f856af2d cpr 2 周之前
test d0f856af2d cpr 2 周之前
.env.example d0f856af2d cpr 2 周之前
.gitignore a431b88a56 debian package support 4 月之前
README.md 61fba5e31a Inicial commit 4 周之前
TODO.md 61fba5e31a Inicial commit 4 周之前
composer.json 906aaa2091 feat: add request validators to controllers 3 周之前
composer.lock 906aaa2091 feat: add request validators to controllers 3 周之前
php-api_1.0.0_all.deb a431b88a56 debian package support 4 月之前
routes.md 61fba5e31a Inicial commit 4 周之前
test_bash_executor.php 61fba5e31a Inicial commit 4 周之前

README.md

  1. run ./bin/setup

(cria banco de dados e aplica migrations; NOTA: company não está sendo seedada no setup, deve ser criado um usuario junto com a company com a rota /companyWithUser/create)

  1. run composer install (instala dependencias)

  2. run X_LISTEN=127.0.0.1:8000 php public/index.php (inicia servidor)

    fpm -s dir -t deb \
    -n php-api -v 1.0.0 \
    -C build/php-api \
    --prefix / \
    --description "API PHP php-api (SmartPay)" \
    --license "Proprietary" \
    --vendor "SmartPay" \
    --maintainer "lucas.joaquim@smartpay.com.vc" \
    --architecture all \
    --deb-no-default-config-files \
    --config-files /etc/php-api \
    --depends "php8.2-cli | php-cli (>= 8.2)" \
    opt/php-api etc/php-api var/log/php-api
    Created package {:path=>"php-api_1.0.0_all.deb"}