The simple CodeIgniter4 project of TCSE 2023 workshop.
- 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 ci4_service php spark migrate
Command: docker-compose exec ci4_service php spark db:seed Members
Command: docker-compose exec ci4_service php spark db:seed TodoLists
Enter the http://localhost:8080/