The project is using Docker and I was using Mac OS while I was working the project. So please run the docker and run the following command inside the project root folder to spin up the project.
docker-compose up -d
Then, please run the following command for database migration
docker-compose exec php-fpm php migrate.php
After you run the command, you can access project in the browser on localhost
on port 80.
To run all the unit test please run the following command.
docker-compose exec php-fpm php test.php
To run a certain test method, please run the following command.
docker-compose exec php-fpm php test.php {test method name}
Please run the following command to import the files into the database.
docker-compose exec php-fpm php import.php
The files are stored in import_file_structure
file in the project's root folder.
Please open report.md
.
Please let me know if you have any questions.
Best Regards,
Wai