This code will connect redis server to mysql database. The data will be fetched from html webpage and the data will be stored in redis cache through mysql database.
Operating System: Ubuntu 18.04. Later releases of Ubuntu may also be compatible with these instructions.
Install/configure the following applications:
- git (install instructions)
- Don't forget to correctly set your git credentials:
git config --global user.name "FirstName LastName"
git config --global user.email "my@example.com"
- docker (install instructions)
- Make sure you can run docker as a non-root user (instructions).
Note you will need to reboot your machine for the group changes (
groupadd
) to work.
- Make sure you can run docker as a non-root user (instructions).
Note you will need to reboot your machine for the group changes (
- docker-compose (install instructions)
Get the code and get set up:
git https://github.com/Vikas14Web/c51_sym.git
cd c51_sym
# Run
docker-compose up -d
docker-compose exec app bash
You may now run those scripts by using composer csfix
, composer cscheck
and composer phpstan
!
csfix: this script will try to fix as many errors as possible
cscheck: this script will checks potential errors in your code
composer phpstan: PHPStan focuses on finding errors in your code without actually running it