A blog management project based on CodeIgniter4 PHP framework.
- docker
Command: docker-compose up
Command: docker-compose exec ci4_service composer install
From env
file
# database.default.hostname = localhost
# database.default.database = ci4
# database.default.username = root
# database.default.password = root
# database.default.DBDriver = MySQLi
# database.default.DBPrefix =
# database.default.port = 3306
To .env
file
database.default.hostname = ci4_DB
database.default.database = example
database.default.username = root
database.default.password = root
database.default.DBDriver = MySQLi
database.default.DBPrefix =
database.default.port = 3306
Command: docker-compose exec blogger_service php spark migrate
Command: docker-compose exec blogger_service php spark db:seed MemberAndTodoConstructionCaller
Command: docker-compose exec blogger_service php spark db:seed TodoLists
Visit http://localhost:8080/
Command: docker-compose exec ci4_service composer require --dev phpunit/phpunit ^9.6
Command: docker-compose exec ci4_service ./vendor/bin/phpunit