Implementation of a Logs Service with PHP 8.3, Symfony 7 and MySQL 8. The purpose of the service is to save a remote log file into the local database.
- git
- docker-compose
Clone the git repository:
git clone [email protected]:freelancerwebro/logs-service.git
In order to build the service, run the command:
./deploy.sh
Run code analysis:
composer cs
Run tests:
composer test
API usage:
- GET `/count`: Fetch information about the log counter
- DELETE `/delete`: Truncate the log database
In order to import the logs the following command has to be run in the PHP container:
php bin/console app:save-logs