It's a simple blog application build from scratch. I've used composer here only for PSR-4 autoloading and to install routing and template engine packages.
You can start this application easily using docker-compose, so you've to pre-install docker and docker-compose before running it
- [CHECK NOTES PLEASE] to start this application please, run this command
make run
ordocker-compose up -d
- go to the homepage using your browser on from http://127.0.0.1:8100 or http://localhost:8100
- to stop this application please, run this command
make stop
ordocker-compose stop
-
I've faced some problems while using docker-compose the web container can access the mysql container through it's gateway not using it's service name. I will fix this soon and get back to you but for now you can use your own server or after running
make run
usedocker inspect mysql | grep "Gateway"
it will be like this172.27.0.1
and change host inDatabase.php
file :D sorry for that. -
Database can be found in the database directory it's name is backup_blog.sql
-
I'm using SonarLint and it did not produce any problem for my code except to finish the TODOs.
-
I've put some TODOs just because the lake of time to describe fast how can I finish the task.