Không có mô tả

EduLascala 61fba5e31a Inicial commit 4 tuần trước cách đây
bin 61fba5e31a Inicial commit 4 tuần trước cách đây
controllers 61fba5e31a Inicial commit 4 tuần trước cách đây
libs 61fba5e31a Inicial commit 4 tuần trước cách đây
middlewares 61fba5e31a Inicial commit 4 tuần trước cách đây
migrations 61fba5e31a Inicial commit 4 tuần trước cách đây
models 61fba5e31a Inicial commit 4 tuần trước cách đây
public 61fba5e31a Inicial commit 4 tuần trước cách đây
.env.example 61fba5e31a Inicial commit 4 tuần trước cách đây
.gitignore a431b88a56 debian package support 4 tháng trước cách đây
README.md 61fba5e31a Inicial commit 4 tuần trước cách đây
TODO.md 61fba5e31a Inicial commit 4 tuần trước cách đây
composer.json 7c9e58bfe7 php rest api template 5 tháng trước cách đây
composer.lock 7c9e58bfe7 php rest api template 5 tháng trước cách đây
php-api_1.0.0_all.deb a431b88a56 debian package support 4 tháng trước cách đây
routes.md 61fba5e31a Inicial commit 4 tuần trước cách đây
test_bash_executor.php 61fba5e31a Inicial commit 4 tuần trước cách đây

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"}