This system aims to control billings and manage payments of these billings.
- PHP 8.3 with Laminas
- MySQL 8.0.32
- RabbitMQ 3.10.1
Clone project in your projects folder.
$ git clone [email protected]:fatorx/billing.git && cd billingCopy .env.dist to .env and adjust values in the .env file to your preferences.
cp .env.dist .env Add permissions to folder data (MySQL and RabbitMQ) and api/data (logs, storage files), this is where the persistence files will be kept.
chmod -R 755 datachmod -R 755 api/storageMount the environment based in docker-compose.yml.
docker-compose up -d --buildRun composer
docker exec app-billing-php-fpm php composer.phar installRun migrate
docker exec app-billing-php-fpm php artisan migratedocker-compose up -dTest to send a file:
curl --location '0.0.0.0:8009/api/billings/upload' \
--form 'file=@"/home/yourpath/projects/billing/temp/test_length_ok.csv"'docker exec -it app-billing-php-fpm php artisan test