This is a tiny simple PHP (Codeignitor 4) / Bootstrap 5 / Vanilla JS website (a tier 3 app) that I ended up making within the scope of a course I've taken.
I thought it was polished enough (read: visually pretty enough & having enough, though basic, features to explore) to put it up on my personal page, because why not?
For a set of preview screenshots, please refer to the readme in ./preview/
.
Ensure there is a ./codeigniter/.env
file, derived from ./codeigniter/env
.
The bare minimum are these properties being set:
database.default.hostname = localhost
database.default.database = app
database.default.username = root
database.default.DBDriver = MySQLi
database.default.DBPrefix =
database.default.port = 3306
Then from the root folder:
cd ./codeigniter
composer install
In the root folder:
docker-compose build
docker-compose up
To initialise the database with some basic test data, create a database app
(or whatever name was configured in the .env
file) in the container and then send a get request to /seed
or use the command line seeder as described here
The database (assuming recent version of docker and container running):
docker container exec webprogramming_proj-app-1 mysql -uroot -e "create database app"
Or replace webprogramming_proj-app-1
with the container ID.
The seeder name is AppSeeder
. So e.g.
php spark db:seed AppSeeder
Username: [email protected]
Password: myPassword123
Username: [email protected]
Password: anotherPasswrod323
Username: [email protected]
Password: anotherPasswrod323
Username: [email protected]
Password: anotherPasswrod323
Username: [email protected]
Password: anotherPasswrod323
MIT