A dummy task tracker application to reacquaint myself with CodeIgniter 3.
- PHP 7.4
- MySQL 5.7
-
Run the Docker containers
docker compose up -d
-
Install PHP dependencies
docker compose exec app composer install -
Install frontend dependencies
docker compose exec app pnpm install -
Build frontend assets
docker compose exec app pnpm build -
Migrate the database
docker compose exec app composer run migrate:current -
Seed the database
- Creates three users with password of
password:admin@example.commanager@example.comuser@example.com
docker compose exec app composer run seed - Creates three users with password of
-
Navigate to http://localhost:8080 in your browser
All of these scripts are intended to be run inside the app container so they should be prefixed with:
docker compose exec appor run from inside the container:
docker compose exec app bash-
Migrate DB to the version in ./application/config/migration.php
composer run migrate:current
-
Migrate DB to the latest migration in ./application/migrations
composer run migrate:latest
-
Migrate DB to a specific version
composer run migrate:version 20260612131500
-
Seed the database with test data:
composer run seed
-
Run the Vite dev server:
pnpm dev
-
Build the frontend assets with Vite:
pnpm build
-
Check for formatting issues in frontend code with Prettier:
pnpm format:check
-
Fix formatting issues in frontend code with Prettier:
pnpm format